1
0
mirror of https://github.com/PDP-10/klh10.git synced 2026-02-09 01:31:33 +00:00

Remove bridge creating code for Linux, since it's useless.

If $KLH_NET_BRIDGE is set, does bridge it to that bridge.
Use $KLH_NET_DEFAULT_IF as default interface, if given.
This commit is contained in:
Olaf Seibert
2016-01-10 22:54:03 +01:00
parent e23aaab39a
commit 447155ef02
2 changed files with 96 additions and 86 deletions

View File

@@ -265,8 +265,13 @@
#define HAVE_GETIFADDRS 1 /* assume this for now */
#define HAVE_LIBPCAP 1 /* assume this for now */
#define HAVE_LIBPCAP_SET_IMMEDIATE_MODE 1
#if HAVE_LIBPCAP
# undef BPF_MAJOR_VERSION /* some stupid linux header defines this:
* <linux_filter.h> included from
* <linux/if_tun,h>; only in SOME versions.
*/
# define USE_LIBPCAP 1
# include <pcap/pcap.h>
# include <pcap/bpf.h>