diff options
author | tegge <tegge@FreeBSD.org> | 1997-05-11 18:05:39 +0000 |
---|---|---|
committer | tegge <tegge@FreeBSD.org> | 1997-05-11 18:05:39 +0000 |
commit | 6ea632b44dfc80a6f21f88c5f84427f063bee17c (patch) | |
tree | d7cfe39e13dc35c119f55fcde1109a1b3dea8481 /sys/netinet | |
parent | 621252fef12f7c44a308ff711c0ebf0c7eae96a8 (diff) | |
download | FreeBSD-src-6ea632b44dfc80a6f21f88c5f84427f063bee17c.zip FreeBSD-src-6ea632b44dfc80a6f21f88c5f84427f063bee17c.tar.gz |
Bring in some kernel bootp support. This removes the need for netboot
to fill in the nfs_diskless structure, at the cost of some kernel
bloat. The advantage is that this code works on a wider range of
network adapters than netboot. Several new kernel options are
documented in LINT.
Obtained from: parts of the code comes from NetBSD.
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_input.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index eb7fb7b..538d1c8 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ip_input.c 8.2 (Berkeley) 1/4/94 - * $Id: ip_input.c,v 1.1.1.2 1997/04/03 10:39:25 darrenr Exp $ + * $Id: ip_input.c,v 1.61 1997/04/03 10:47:10 darrenr Exp $ * $ANA: ip_input.c,v 1.5 1996/09/18 14:34:59 wollman Exp $ */ @@ -386,6 +386,10 @@ tooshort: if (IA_SIN(ia)->sin_addr.s_addr == ip->ip_dst.s_addr) goto ours; +#ifdef BOOTP_COMPAT + if (IA_SIN(ia)->sin_addr.s_addr == INADDR_ANY) + goto ours; +#endif if (ia->ia_ifp && ia->ia_ifp->if_flags & IFF_BROADCAST) { if (satosin(&ia->ia_broadaddr)->sin_addr.s_addr == ip->ip_dst.s_addr) |