From owner-cvs-usrsbin Sun Nov 16 14:23:56 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA19419 for cvs-usrsbin-outgoing; Sun, 16 Nov 1997 14:23:56 -0800 (PST) (envelope-from owner-cvs-usrsbin) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA19272; Sun, 16 Nov 1997 14:18:04 -0800 (PST) (envelope-from brian@FreeBSD.org) From: Brian Somers Received: (from brian@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id OAA26196; Sun, 16 Nov 1997 14:15:14 -0800 (PST) Date: Sun, 16 Nov 1997 14:15:14 -0800 (PST) Message-Id: <199711162215.OAA26196@freefall.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 Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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 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