diff options
author | brian <brian@FreeBSD.org> | 1997-05-23 04:54:03 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-05-23 04:54:03 +0000 |
commit | 6d0cdc4cfb3fa176c7652dec4a5d653682c90b2a (patch) | |
tree | 4297fb56b0856242cee4124a73b083023e9ef542 /usr.sbin/ppp/main.c | |
parent | 68e0b00a5914f21f0856d21dcbefb44edf0d7138 (diff) | |
download | FreeBSD-src-6d0cdc4cfb3fa176c7652dec4a5d653682c90b2a.zip FreeBSD-src-6d0cdc4cfb3fa176c7652dec4a5d653682c90b2a.tar.gz |
Use the latest alias engine - now in libalias.
Submitted by: Charles Mott <cmott@srv.net>
Diffstat (limited to 'usr.sbin/ppp/main.c')
-rw-r--r-- | usr.sbin/ppp/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c index 40bbbb7..06e5042 100644 --- a/usr.sbin/ppp/main.c +++ b/usr.sbin/ppp/main.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: main.c,v 1.52 1997/05/19 02:00:06 brian Exp $ + * $Id: main.c,v 1.53 1997/05/19 03:02:36 brian Exp $ * * TODO: * o Add commands for traffic summary, version display, etc. @@ -37,6 +37,7 @@ #include <arpa/inet.h> #include <netinet/in_systm.h> #include <netinet/ip.h> +#include <alias.h> #include "modem.h" #include "os.h" #include "hdlc.h" @@ -48,7 +49,6 @@ #include "filter.h" #include "systems.h" #include "ip.h" -#include "alias.h" #include "sig.h" #define LAUTH_M1 "Warning: No password entry for this host in ppp.secret\n" @@ -330,7 +330,7 @@ char **argv; Greetings(); GetUid(); IpcpDefAddress(); - InitAlias(); + InitPacketAlias(); if (SelectSystem("default", CONFFILE) < 0) { fprintf(stderr, "Warning: No default entry is given in config file.\n"); @@ -1022,7 +1022,7 @@ DoLoop() pri = PacketCheck(rbuff, n, FL_DIAL); if (pri >= 0) { if (mode & MODE_ALIAS) { - PacketAliasOut((struct ip *)rbuff); + PacketAliasOut(rbuff, sizeof rbuff); n = ntohs(((struct ip *)rbuff)->ip_len); } IpEnqueue(pri, rbuff, n); @@ -1033,7 +1033,7 @@ DoLoop() pri = PacketCheck(rbuff, n, FL_OUT); if (pri >= 0) { if (mode & MODE_ALIAS) { - PacketAliasOut((struct ip *)rbuff); + PacketAliasOut(rbuff, sizeof rbuff); n = ntohs(((struct ip *)rbuff)->ip_len); } IpEnqueue(pri, rbuff, n); |