Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jan 2007 00:22:19 GMT
From:      Paolo Pisati <piso@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 113679 for review
Message-ID:  <200701300022.l0U0MJ45067933@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=113679

Change 113679 by piso@piso_newluxor on 2007/01/30 00:21:44

	maxpacketsize is unused in ProxyEncodeIpHeader(), axe it.

Affected files ...

.. //depot/projects/soc2005/libalias/sys/netinet/libalias/alias_proxy.c#14 edit

Differences ...

==== //depot/projects/soc2005/libalias/sys/netinet/libalias/alias_proxy.c#14 (text+ko) ====

@@ -147,7 +147,7 @@
 static void	RuleDelete(struct proxy_entry *);
 static int	RuleNumberDelete(struct libalias *la, int);
 static void	ProxyEncodeTcpStream(struct alias_link *, struct ip *, int);
-static void	ProxyEncodeIpHeader(struct ip *, int);
+static void	ProxyEncodeIpHeader(struct ip *);
 
 #ifdef	_KERNEL
 static int
@@ -480,8 +480,7 @@
 }
 
 static void
-ProxyEncodeIpHeader(struct ip *pip,
-    int maxpacketsize)
+ProxyEncodeIpHeader(struct ip *pip)
 {
 #define OPTION_LEN_BYTES  8
 #define OPTION_LEN_INT16  4
@@ -493,8 +492,6 @@
 	fprintf(stdout, "tcp cksum 1 = %x\n", (u_int) TcpChecksum(pip));
 #endif
 
-	(void)maxpacketsize;
-
 /* Check to see that there is room to add an IP option */
 	if (pip->ip_hl > (0x0f - OPTION_LEN_INT32))
 		return;
@@ -613,7 +610,7 @@
 
 	switch (proxy_type) {
 		case PROXY_TYPE_ENCODE_IPHDR:
-		ProxyEncodeIpHeader(pip, maxpacketsize);
+		ProxyEncodeIpHeader(pip);
 		break;
 
 	case PROXY_TYPE_ENCODE_TCPSTREAM:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701300022.l0U0MJ45067933>