diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 1999-02-11 12:40:22 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 1999-02-11 12:40:22 +0000 |
commit | b02401bdd6455578fb36dc5eed002b83d88e4954 (patch) | |
tree | 1ab69d6be8758743eebe6650b959ea559178112b /contrib/isc-dhcp/common/upf.c | |
parent | cd2d014aab8332077aba9b0f6e0d06678fbe1aff (diff) |
Virgin import of ISC-DHCP v2.0b1pl11vendor/isc-dhcp/2.0b1-pl.11
Notes
Notes:
svn path=/vendor/isc-dhcp/dist/; revision=43892
svn path=/vendor/isc-dhcp/2.0b1-pl.11/; revision=43894; tag=vendor/isc-dhcp/2.0b1-pl.11
Diffstat (limited to 'contrib/isc-dhcp/common/upf.c')
-rw-r--r-- | contrib/isc-dhcp/common/upf.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/contrib/isc-dhcp/common/upf.c b/contrib/isc-dhcp/common/upf.c index 498b6e6cde1b..7da9aff62ee8 100644 --- a/contrib/isc-dhcp/common/upf.c +++ b/contrib/isc-dhcp/common/upf.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: upf.c,v 1.3 1997/10/20 21:47:15 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; +"$Id: upf.c,v 1.3.2.1 1998/12/20 18:29:48 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -232,6 +232,10 @@ ssize_t send_packet (interface, packet, raw, len, from, to, hto) unsigned char buf [256]; struct iovec iov [2]; + if (!strcmp (interface -> name, "fallback")) + return send_fallback (interface, packet, raw, + len, from, to, hto); + /* Assemble the headers... */ assemble_hw_header (interface, buf, &bufp, hto); assemble_udp_ip_header (interface, buf, &bufp, from.s_addr, @@ -295,4 +299,20 @@ ssize_t receive_packet (interface, buf, len, from, hfrom) memcpy (buf, &ibuf [bufix], length); return length; } + +int can_unicast_without_arp () +{ + return 1; +} + +void maybe_setup_fallback () +{ + struct interface_info *fbi; + fbi = setup_fallback (); + if (fbi) { + if_register_fallback (fbi); + add_protocol ("fallback", fallback_interface -> wfdesc, + fallback_discard, fallback_interface); + } +} #endif |