Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Feb 2007 16:48:39 GMT
From:      Paolo Pisati <piso@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 114416 for review
Message-ID:  <200702121648.l1CGmdPU056293@repoman.freebsd.org>

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

Change 114416 by piso@piso_newluxor on 2007/02/12 16:48:14

	Maxpacket size affetcs only the user land side of libalias.

Affected files ...

.. //depot/projects/soc2005/libalias/sys/netinet/libalias/alias_irc.c#18 edit

Differences ...

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

@@ -90,9 +90,12 @@
 fingerprint(struct libalias *la, struct ip *pip, struct alias_data *ah)
 {
 
-	if (ah->dport == NULL || ah->dport == NULL || ah->lnk == NULL || 
-	    ah->maxpktsize == 0)
+	if (ah->dport == NULL || ah->dport == NULL || ah->lnk == NULL)
+		return (-1);
+#ifndef _KERNEL
+	if (ah->maxpktsize == 0)
 		return (-1);
+#endif
 	if (ntohs(*ah->dport) == IRC_CONTROL_PORT_NUMBER_1
 	    || ntohs(*ah->dport) == IRC_CONTROL_PORT_NUMBER_2)
 		return (0);



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