[email protected]
[Top] [All Lists]

PERFORCE change 114111 for review

Subject: PERFORCE change 114111 for review
From: Paolo Pisati
Date: Tue, 6 Feb 2007 16:42:46 GMT
http://perforce.freebsd.org/chv.cgi?CH=114111

Change 114111 by [email protected]_newluxor on 2007/02/06 16:42:05

        Before checking for IP_MF, pullup at least the ip hdr.

Affected files ...

.. //depot/projects/soc2005/libalias/sys/netinet/libalias/alias.c#56 edit

Differences ...

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

@@ -1346,11 +1346,15 @@
                        iresult = ProtoAliasIn(la, pip);
                        break;
                }
-
+               
+               PULLUP_IPHDR(pip, ptr);
+               if (pip == NULL)
+                       return (PKT_ALIAS_IGNORED);
                if (ntohs(pip->ip_off) & IP_MF) {
                        struct alias_link *lnk;
-
-                       lnk = FindFragmentIn1(la, pip->ip_src, alias_addr, 
pip->ip_id);
+                       
+                       lnk = FindFragmentIn1(la, pip->ip_src, alias_addr, 
+                           pip->ip_id);
                        if (lnk != NULL) {
                                iresult = PKT_ALIAS_FOUND_HEADER_FRAGMENT;
                                SetFragmentAddr(lnk, pip->ip_dst);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/p4-projects
To unsubscribe, send any mail to "[email protected]"

<Prev in Thread] Current Thread [Next in Thread>
  • PERFORCE change 114111 for review, Paolo Pisati <=