summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/os.h
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-11-16 22:15:11 +0000
committerbrian <brian@FreeBSD.org>1997-11-16 22:15:11 +0000
commit5696a07f36cde36ef7955344c7b33fc5c7c57248 (patch)
tree766aa7f660926161982f1e79a01aa4827f8022d9 /usr.sbin/ppp/os.h
parent0f428e70f1f534b0936e0af7a36d1ad2f7e76775 (diff)
downloadFreeBSD-src-5696a07f36cde36ef7955344c7b33fc5c7c57248.zip
FreeBSD-src-5696a07f36cde36ef7955344c7b33fc5c7c57248.tar.gz
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).
Diffstat (limited to 'usr.sbin/ppp/os.h')
-rw-r--r--usr.sbin/ppp/os.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/usr.sbin/ppp/os.h b/usr.sbin/ppp/os.h
index d95ce0d..a4041be 100644
--- a/usr.sbin/ppp/os.h
+++ b/usr.sbin/ppp/os.h
@@ -15,19 +15,18 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: os.h,v 1.9 1997/10/26 01:03:27 brian Exp $
+ * $Id: os.h,v 1.10 1997/10/29 01:19:48 brian Exp $
*
* TODO:
*/
extern char *IfDevName;
-int OsSetIpaddress(struct in_addr, struct in_addr, struct in_addr);
-int OsInterfaceDown(int);
-void OsSetInterfaceParams(int, int, int);
-int OpenTunnel(int *);
-void OsLinkup(void);
-int OsLinkIsUp(void);
-void OsLinkdown(void);
-void OsSetRoute(int, struct in_addr, struct in_addr, struct in_addr);
-void DeleteIfRoutes(int);
+extern int OsSetIpaddress(struct in_addr, struct in_addr, struct in_addr);
+extern int OsInterfaceDown(int);
+extern int OpenTunnel(int *);
+extern void OsLinkup(void);
+extern int OsLinkIsUp(void);
+extern void OsLinkdown(void);
+extern void OsSetRoute(int, struct in_addr, struct in_addr, struct in_addr);
+extern void DeleteIfRoutes(int);
OpenPOWER on IntegriCloud