diff options
author | 2014-07-11 09:42:27 +0000 | |
---|---|---|
committer | 2014-07-11 09:42:27 +0000 | |
commit | 84d8c0490a01f97e4ce467a7c833d1cfccb94e06 (patch) | |
tree | 2e35a2f0ed9b65e56f5fbf6b9ad1417af18b62dc /usr.sbin/dhcpd/bpf.c | |
parent | More e_os2.h clean up. Also move the includes inside the guard. (diff) | |
download | wireguard-openbsd-84d8c0490a01f97e4ce467a7c833d1cfccb94e06.tar.xz wireguard-openbsd-84d8c0490a01f97e4ce467a7c833d1cfccb94e06.zip |
Add -u option to bind UDP port as a socket to answer DHCPINFORM from
the clients on non ethernet interfaces (eg. tun(4) or pppx(4)).
input krw
ok krw
Diffstat (limited to 'usr.sbin/dhcpd/bpf.c')
-rw-r--r-- | usr.sbin/dhcpd/bpf.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/dhcpd/bpf.c b/usr.sbin/dhcpd/bpf.c index e63c9efe5d6..fc146a31649 100644 --- a/usr.sbin/dhcpd/bpf.c +++ b/usr.sbin/dhcpd/bpf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bpf.c,v 1.10 2013/04/05 19:31:36 krw Exp $ */ +/* $OpenBSD: bpf.c,v 1.11 2014/07/11 09:42:27 yasuoka Exp $ */ /* BPF socket interface code, originally contributed by Archie Cobbs. */ @@ -52,6 +52,9 @@ #define BPF_FORMAT "/dev/bpf%d" +ssize_t send_packet (struct interface_info *, struct dhcp_packet *, + size_t, struct in_addr, struct sockaddr_in *, struct hardware *); + /* * Called by get_interface_list for each interface that's discovered. * Opens a packet filter for each interface and adds it to the select @@ -81,6 +84,7 @@ if_register_bpf(struct interface_info *info) error("Can't attach interface %s to bpf device %s: %m", info->name, filename); + info->send_packet = send_packet; return (sock); } |