diff options
| author | Garrett Wollman <wollman@FreeBSD.org> | 1994-12-22 21:56:22 +0000 |
|---|---|---|
| committer | Garrett Wollman <wollman@FreeBSD.org> | 1994-12-22 21:56:22 +0000 |
| commit | dd2e4102219ce94f36901e8659a56f321933b0ba (patch) | |
| tree | dd986184c8951fb36a642ae622be3def3ec5b792 /sys/netinet | |
| parent | 186c582fdfcb3cb667af79150b6decea3a35e760 (diff) | |
Notes
Diffstat (limited to 'sys/netinet')
| -rw-r--r-- | sys/netinet/if_ether.c | 13 | ||||
| -rw-r--r-- | sys/netinet/if_ether.h | 3 | ||||
| -rw-r--r-- | sys/netinet/in.c | 11 |
3 files changed, 15 insertions, 12 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c index 5790eb6671fb..b2c22cfc7175 100644 --- a/sys/netinet/if_ether.c +++ b/sys/netinet/if_ether.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)if_ether.c 8.1 (Berkeley) 6/10/93 - * $Id: if_ether.c,v 1.7 1994/11/02 00:58:29 wollman Exp $ + * $Id: if_ether.c,v 1.8 1994/12/13 22:32:44 wollman Exp $ */ /* @@ -632,3 +632,14 @@ arpioctl(cmd, data) { return (EOPNOTSUPP); } + +void +arp_ifinit(ac, ifa) + struct arpcom *ac; + struct ifaddr *ifa; +{ + ac->ac_ipaddr = IA_SIN(ifa)->sin_addr; + arpwhohas(ac, &ac->ac_ipaddr); + ifa->ifa_rtrequest = arp_rtrequest; + ifa->ifa_flags |= RTF_CLONING; +} diff --git a/sys/netinet/if_ether.h b/sys/netinet/if_ether.h index 147bee684488..26c13c00ab02 100644 --- a/sys/netinet/if_ether.h +++ b/sys/netinet/if_ether.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)if_ether.h 8.1 (Berkeley) 6/10/93 - * $Id: if_ether.h,v 1.4 1994/08/21 05:27:24 paul Exp $ + * $Id: if_ether.h,v 1.5 1994/10/11 23:16:38 wollman Exp $ */ #ifndef _NETINET_IF_ETHER_H_ @@ -154,6 +154,7 @@ void arpintr __P((void)); int arpresolve __P((struct arpcom *, struct rtentry *, struct mbuf *, struct sockaddr *, u_char *, struct rtentry *)); void arp_rtrequest __P((int, struct rtentry *, struct sockaddr *)); +void arp_ifinit __P((struct arpcom *, struct ifaddr *)); int ether_addmulti __P((struct ifreq *, struct arpcom *)); int ether_delmulti __P((struct ifreq *, struct arpcom *)); diff --git a/sys/netinet/in.c b/sys/netinet/in.c index 534348512f59..9aa8ddb4bbf4 100644 --- a/sys/netinet/in.c +++ b/sys/netinet/in.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)in.c 8.2 (Berkeley) 11/15/93 - * $Id: in.c,v 1.6 1994/10/02 17:48:37 phk Exp $ + * $Id: in.c,v 1.7 1994/11/03 21:04:21 wollman Exp $ */ #include <sys/param.h> @@ -49,9 +49,7 @@ #include <netinet/in.h> #include <netinet/in_var.h> #include <netinet/if_ether.h> -#include <ether.h> -#ifdef INET /* * Return the network number from an internet address. */ @@ -427,12 +425,6 @@ in_ifinit(ifp, ia, sin, scrub) ia->ia_addr = oldaddr; return (error); } -#if NETHER > 0 - if (ifp->if_output == ether_output) { /* XXX: Another Kludge */ - ia->ia_ifa.ifa_rtrequest = arp_rtrequest; - ia->ia_ifa.ifa_flags |= RTF_CLONING; - } -#endif splx(s); if (scrub) { ia->ia_ifa.ifa_addr = (struct sockaddr *)&oldaddr; @@ -631,4 +623,3 @@ in_delmulti(inm) } splx(s); } -#endif |
