pkgsrc/net/rp-pppoe/patches/patch-ai
martin a8911c661d Update rp-pppoe to 3.8: various internal changes, some of them bogus
and reverted by patches, some of them were already present in (now
removed) patches; plus:

- Changed the names of commands from adsl-* to pppoe-* to more logically
  name the scripts.

- Make the userland pppoe daemon run as "nobody" if possible, once session
  has started.

- Make userland pppoe program somewhat safe if it is installed SUID or
  SGID.  Note that I still do *NOT* recommend a SUID/SGID pppoe.

- Fix long-standing bug in pppoe-server that passed arguments to pppd in the
  wrong order.
2006-11-01 15:17:13 +00:00

13 lines
515 B
Text

$NetBSD: patch-ai,v 1.1 2006/11/01 15:17:14 martin Exp $
--- src/if.c.orig 2006-04-02 16:29:42.000000000 +0200
+++ src/if.c 2006-11-01 12:15:52.000000000 +0100
@@ -99,7 +99,7 @@
static unsigned char *bpfBuffer; /* Packet filter buffer */
static int bpfLength = 0; /* Packet filter buffer length */
-static int bpfSize = 0; /* Number of unread bytes in buffer */
+int bpfSize = 0; /* Number of unread bytes in buffer */
static int bpfOffset = 0; /* Current offset in bpfBuffer */
#endif