From aa171f839dc3734233c08266daea7eac39e38429 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Mon, 23 Feb 2004 18:21:16 +0000 Subject: 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 --- sbin/dhclient/bpf.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'sbin/dhclient/bpf.c') 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); - } -} -- cgit v1.2.3