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

Fix a few references from if_ether to the ip stack

parent 4846ff75
No related branches found
No related tags found
No related merge requests found
......@@ -24,3 +24,9 @@ int copyinstr(const void *uaddr, void *kaddr, size_t len, size_t *done)
// FIXME: implement
return (0);
}
int priv_check(struct thread *td, int priv)
{
return 1;
}
......@@ -92,6 +92,13 @@ static VNET_DEFINE(int, arp_maxhold) = 1;
#define V_arpstat VNET(arpstat)
#define V_arp_maxhold VNET(arp_maxhold)
/* FIXME: remove this...
* Bring some defines from ip_input.c,
* for not porting the ip stack and socket layer */
VNET_DEFINE(u_long, in_ifaddrhmask); /* mask for hash table */
VNET_DEFINE(struct in_ifaddrhead, in_ifaddrhead); /* first inet address */
VNET_DEFINE(struct in_ifaddrhashhead *, in_ifaddrhashtbl); /* inet addr hash table */
#if 0
SYSCTL_VNET_INT(_net_link_ether_inet, OID_AUTO, max_age, CTLFLAG_RW,
&VNET_NAME(arpt_keep), 0,
......@@ -779,11 +786,18 @@ reply:
goto drop;
sin.sin_addr = itaddr;
#if 0
/* XXX MRT use table 0 for arp reply */
rt = in_rtalloc1((struct sockaddr *)&sin, 0, 0UL, 0);
#else
/* FIXME: OSv: in_rtalloc1 implemented in in_rmx.c is implemented by
* calling rtalloc1_fib directly (from route.c)
*/
rt = rtalloc1_fib((struct sockaddr *)&sin, 0, 0UL, 0);
#endif
if (!rt)
goto drop;
/*
* Don't send proxies for nodes on the same interface
* as this one came out of, or we'll get into a fight
......@@ -806,8 +820,16 @@ reply:
*/
sin.sin_addr = isaddr;
#if 0
/* XXX MRT use table 0 for arp checks */
rt = in_rtalloc1((struct sockaddr *)&sin, 0, 0UL, 0);
rt = in_rtalloc1((struct sockaddr *)&sin, 0, 0UL, 0);
#else
/* FIXME: OSv: in_rtalloc1 implemented in in_rmx.c is implemented by
* calling rtalloc1_fib directly (from route.c)
*/
rt = rtalloc1_fib((struct sockaddr *)&sin, 0, 0UL, 0);
#endif
if (!rt)
goto drop;
if (rt->rt_ifp != ifp) {
......
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