usr.sbin/ppp: fix netgraph includes.
authorNuno Antunes <nuno.antunes@gmail.com>
Mon, 4 Jun 2012 04:55:16 +0000 (05:55 +0100)
committerNuno Antunes <nuno.antunes@gmail.com>
Sat, 9 Jun 2012 12:35:07 +0000 (13:35 +0100)
commitf0f93f7f2d479e18fe43625ce59583ba7a773bf2
treee532cfaa0f374ea7ea456fe311df626187cb9d9f
parentd721fb72be9f087f1a85c4abd4e078d7c7a43983
usr.sbin/ppp: fix netgraph includes.

If the WANT_NETGRAPH7 make variable is set, use includes from
netgraph7/*; otherwise use includes from netgraph/*. It is possible
to use ppp with netgraph7 for establishing pppoe connections starting
from this commit.

XXX: the ng_tty module has not been ported yet into netgraph7, so use
the include header from legacy netgraph for now. This is an ugly hack
but allows ppp to compile for now until ng_tty is ported.

Reported-by: Sacha Wildner <swildner@>
usr.sbin/ppp/Makefile
usr.sbin/ppp/ether.c
usr.sbin/ppp/netgraph.c
usr.sbin/ppp/tty.c