diff --git a/usr.sbin/ppp/alias.h b/usr.sbin/ppp/alias.h index 35fc1ccc2a72..407582262975 100644 --- a/usr.sbin/ppp/alias.h +++ b/usr.sbin/ppp/alias.h @@ -11,9 +11,11 @@ #ifndef _ALIAS_H_ #define _ALIAS_H_ -extern void PacketAliasIn __P((char *)); -extern void PacketAliasOut __P((char *)); + +extern void PacketAliasIn __P((struct ip *)); +extern void PacketAliasOut __P((struct ip *)); extern void SetAliasAddress __P((struct in_addr)); extern void InitAlias(); extern void InitAliasLog(); + #endif diff --git a/usr.sbin/ppp/ip.c b/usr.sbin/ppp/ip.c index 02290a5ff37e..a5abc734e8d4 100644 --- a/usr.sbin/ppp/ip.c +++ b/usr.sbin/ppp/ip.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: ip.c,v 1.10 1996/12/03 21:38:45 nate Exp $ + * $Id: ip.c,v 1.11 1996/12/12 14:39:40 jkh Exp $ * * TODO: * o Return ICMP message for filterd packet @@ -333,8 +333,8 @@ struct mbuf *bp; /* IN: Pointer to IP pakcet */ } if (mode & MODE_ALIAS) { - PacketAliasIn(tunbuff); - nb = ntohs(((struct ip *) tunbuff)->ip_len); + PacketAliasIn((struct ip *)tunbuff); + nb = ntohs(((struct ip *)tunbuff)->ip_len); } if ( PacketCheck(tunbuff, nb, FL_IN ) < 0) { diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c index d1f74b64c7a0..e692a40745c6 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.23 1996/12/03 21:38:48 nate Exp $ + * $Id: main.c,v 1.24 1996/12/12 14:39:45 jkh Exp $ * * TODO: * o Add commands for traffic summary, version display, etc. @@ -881,8 +881,8 @@ DoLoop() pri = PacketCheck(rbuff, n, FL_DIAL); if (pri >= 0) { if (mode & MODE_ALIAS) { - PacketAliasOut(rbuff); - n = ntohs(((struct ip *) rbuff)->ip_len); + PacketAliasOut((struct ip *)rbuff); + n = ntohs(((struct ip *)rbuff)->ip_len); } IpEnqueue(pri, rbuff, n); dial_up = TRUE; /* XXX */ @@ -892,8 +892,8 @@ DoLoop() pri = PacketCheck(rbuff, n, FL_OUT); if (pri >= 0) { if (mode & MODE_ALIAS) { - PacketAliasOut(rbuff); - n = ntohs(((struct ip *) rbuff)->ip_len); + PacketAliasOut((struct ip *)rbuff); + n = ntohs(((struct ip *)rbuff)->ip_len); } IpEnqueue(pri, rbuff, n); }