freebsd-ports/net/rp-pppoe/files/patch-pppoe.h
Matthias Andree 7905ffa3d3 - Update to new upstream release 3.11.
- Convert to Options NG (for NOPORTDOCS -> DOCS)

- Rediff patches.

- Fix a few omissions in the upstream BPF-related source,
  the upstream no longer maintains *BSD.

- Fix a bug in MD5 that does not completely zero out its
  work area - this is an omnipresent bug.

Warning: only discovery against a Linux-based PPPoE server v3.8 was tested,
not server-mode or running a session.
2012-09-23 15:33:15 +00:00

18 lines
485 B
C

--- ./pppoe.h.orig 2012-08-17 20:31:25.000000000 +0200
+++ ./pppoe.h 2012-09-23 17:27:26.000000000 +0200
@@ -72,10 +72,14 @@
#include <net/if_ppp.h>
#endif
+#ifdef __FreeBSD__
+#include <sys/types.h>
+#include <net/ethernet.h>
+#endif
+
#ifdef USE_BPF
extern int bpfSize;
struct PPPoEPacketStruct;
-void sessionDiscoveryPacket(struct PPPoEPacketStruct *packet);
#define BPF_BUFFER_IS_EMPTY (bpfSize <= 0)
#define BPF_BUFFER_HAS_DATA (bpfSize > 0)
#define ethhdr ether_header