Fixed prototypes of PacketAliasIn/Out. (cosmetic)

Submitted by:	Brian Somers <brian@awfulhak.demon.co.uk>
This commit is contained in:
Nate Williams 1996-12-19 00:41:42 +00:00
parent df5080050d
commit 3b92d2dee8
3 changed files with 12 additions and 10 deletions

View File

@ -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

View File

@ -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) {

View File

@ -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);
}