summaryrefslogtreecommitdiff
path: root/sbin/dhclient/bpf.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-02-23 18:21:16 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-02-23 18:21:16 +0000
commitaa171f839dc3734233c08266daea7eac39e38429 (patch)
treeaeb5c400faf464bdadb1b8ca84feed863218022d /sbin/dhclient/bpf.c
parent8c5481132c3aeb12b862013f71d22eda9c8f7297 (diff)
dhclient always uses bpf on openbsd no matter what, it works, and we don't
need to fallback to their raw socket code suddenly dhclient is so fast... pb tested and sez ok
Diffstat (limited to 'sbin/dhclient/bpf.c')
-rw-r--r--sbin/dhclient/bpf.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/sbin/dhclient/bpf.c b/sbin/dhclient/bpf.c
index aacddb8291e..df1f8350591 100644
--- a/sbin/dhclient/bpf.c
+++ b/sbin/dhclient/bpf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bpf.c,v 1.5 2004/02/07 17:59:22 henning Exp $ */
+/* $OpenBSD: bpf.c,v 1.6 2004/02/23 18:21:15 henning Exp $ */
/* BPF socket interface code, originally contributed by Archie Cobbs. */
@@ -223,10 +223,6 @@ send_packet(struct interface_info *interface, struct packet *packet,
struct iovec iov[2];
int result;
- 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,
@@ -369,16 +365,3 @@ can_receive_unicast_unconfigured(struct interface_info *ip)
{
return (1);
}
-
-void
-maybe_setup_fallback(void)
-{
- struct interface_info *fbi;
-
- fbi = setup_fallback();
- if (fbi) {
- if_register_fallback(fbi);
- add_protocol("fallback", fallback_interface->wfdesc,
- fallback_discard, fallback_interface);
- }
-}