Date: Sun, 16 Nov 1997 14:15:14 -0800 (PST) From: Brian Somers <brian@FreeBSD.ORG> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-usrsbin@FreeBSD.ORG Subject: cvs commit: src/usr.sbin/ppp tun.c tun.h Makefile ip.c lcp.c main.c os.c os.h Message-ID: <199711162215.OAA26196@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
brian 1997/11/16 14:15:13 PST Modified files: usr.sbin/ppp Makefile ip.c lcp.c main.c os.c os.h Added files: usr.sbin/ppp tun.c tun.h Log: Abstract data read from and written to the tun device, allowing for a possible header on the front of all packets. In OpenBSD, there's a structure containing the address family here. If we're building under OpenBSD, set up the ``flags'' part of struct tuninfo (not there under FreeBSD) so that we config the interface as POINTOPOINT. Prefix prototypes with ``extern'' in os.c for consistency. These changes are cosmetic under FreeBSD, but allow ppp to build & work under OpenBSD (bar the srandomdev() stuff, the inclusing of <net/if_var.h> and some Makefile symantecs). Revision Changes Path 1.30 +6 -5 src/usr.sbin/ppp/Makefile 1.30 +33 -19 src/usr.sbin/ppp/ip.c 1.46 +9 -2 src/usr.sbin/ppp/lcp.c 1.99 +17 -3 src/usr.sbin/ppp/main.c 1.34 +1 -16 src/usr.sbin/ppp/os.c 1.11 +9 -10 src/usr.sbin/ppp/os.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711162215.OAA26196>