]> git.ozlabs.org Git - ppp.git/commit
Updates and fixes for the rp-pppoe plugin
authorPaul Mackerras <paulus@samba.org>
Mon, 9 Jun 2008 08:34:23 +0000 (08:34 +0000)
committerPaul Mackerras <paulus@samba.org>
Mon, 9 Jun 2008 08:34:23 +0000 (08:34 +0000)
commit427e3d851c86e35655e14f1dfa9c831a8fab94d9
treeeb0589b9e3ff8be38b09c861e4cdb04b464caa76
parent24e466be1406bfedce7be9ca2dba21c9323f4e4e
Updates and fixes for the rp-pppoe plugin

1) Imported the good bits from the rp-pppoe-3.8 release.  This plugin
   was previously based on the 3.3 release.
2) Split apart the plugin from the pppoe-discovery program so that the
   plugin could use pppd functions such as error() rather than things
   like fprintf() and syslog().
3) Removed the stuff relating to DLPI and BPF, which isn't used on
   Linux; this plugin only works on Linux, and Solaris uses something
   quite different.
4) Added a PPPoE packet printer.
5) Removed several unused functions.
6) Instead of using bitfields for the 4-bit version and type fields
   in PPPoE packet headers, use a single 8-bit field and define macros
   to get the version and type fields out.  This eliminates any
   dependency on how the compiler lays out bitfields.
7) Sundry cleanups, such as removing unnecessary casts.
8) Last but by no means least, removed calls to exit() and die() so
   that the plugin doesn't exit, but returns an error where appropriate,
   so that the main pppd code can make the decisions about whether to
   exit or not.  (The plugin still exits if the specified interface is
   not a suitable sort of interface.)
pppd/plugins/rp-pppoe/Makefile.linux
pppd/plugins/rp-pppoe/common.c
pppd/plugins/rp-pppoe/config.h
pppd/plugins/rp-pppoe/debug.c
pppd/plugins/rp-pppoe/discovery.c
pppd/plugins/rp-pppoe/if.c
pppd/plugins/rp-pppoe/plugin.c
pppd/plugins/rp-pppoe/pppoe-discovery.c
pppd/plugins/rp-pppoe/pppoe.h