diff options
Diffstat (limited to 'net/rp-pppoe/files/patch-if.c')
-rw-r--r-- | net/rp-pppoe/files/patch-if.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/net/rp-pppoe/files/patch-if.c b/net/rp-pppoe/files/patch-if.c deleted file mode 100644 index cf9dc48817f5..000000000000 --- a/net/rp-pppoe/files/patch-if.c +++ /dev/null @@ -1,33 +0,0 @@ ---- if.c.orig 2020-05-27 00:29:37 UTC -+++ if.c -@@ -277,7 +277,7 @@ initFilter(int fd, UINT16_t type, unsigned char *hwadd - * traffic on this network. - ***********************************************************************/ - int --openInterface(char const *ifname, UINT16_t type, unsigned char *hwaddr) -+openInterface(char const *ifname, UINT16_t type, unsigned char *hwaddr, UINT16_t *mtu) - { - static int fd = -1; - char bpfName[32]; -@@ -288,7 +288,12 @@ openInterface(char const *ifname, UINT16_t type, unsig - int i; - - /* BSD only opens one socket for both Discovery and Session packets */ -+#if defined(__FreeBSD__) -+ /* Confirmed for FreeBSD 4.8-R [SeaD] */ -+ if (!hwaddr) { -+#else - if (fd >= 0) { -+#endif - return fd; - } - -@@ -397,6 +402,8 @@ openInterface(char const *ifname, UINT16_t type, unsig - ifname); - rp_fatal(buffer); - } -+ -+ if (mtu) *mtu = ifr.ifr_mtu; - - syslog(LOG_INFO, "Interface=%.16s HWaddr=%02X:%02X:%02X:%02X:%02X:%02X Device=%.32s Buffer size=%d", - ifname, |