Skip to content
Snippets Groups Projects
Commit eff57822 authored by Guy Zana's avatar Guy Zana
Browse files

Enable an interface in the net driver test

parent 2df8a514
No related branches found
No related tags found
No related merge requests found
......@@ -872,6 +872,7 @@ arp_ifinit(struct ifnet *ifp, struct ifaddr *ifa)
if (ntohl(IA_SIN(ifa)->sin_addr.s_addr) != INADDR_ANY) {
arprequest(ifp, &IA_SIN(ifa)->sin_addr,
&IA_SIN(ifa)->sin_addr, (u_char *)IF_LLADDR(ifp));
#if 0
/*
* interface address is considered static entry
* because the output of the arp utility shows
......@@ -886,6 +887,9 @@ arp_ifinit(struct ifnet *ifp, struct ifaddr *ifa)
"entry for interface address\n");
else
LLE_RUNLOCK(lle);
#else
lle = NULL;
#endif
}
ifa->ifa_rtrequest = NULL;
}
......
......@@ -17,6 +17,9 @@
/* Global ifnet */
struct ifnet* pifp;
/*
* This function should invoke ether_ioctl...
*/
static int
lge_ioctl(struct ifnet *ifp,
u_long command,
......@@ -26,10 +29,20 @@ lge_ioctl(struct ifnet *ifp,
return (0);
}
/*
* Main transmit routine.
*/
static void
lge_start(struct ifnet* ifp)
{
struct mbuf *m_head = NULL;
TLOG("lge_start\n");
IF_DEQUEUE(&ifp->if_snd, m_head);
if (m_head != NULL) {
/* Send packet */
}
}
static void
......@@ -103,7 +116,7 @@ int main(void)
*/
if_attachdomain(NULL);
// set_address();
set_address();
destroy_if();
TLOG("BSD Net Driver Test\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment