[email protected]
[Top] [All Lists]

PERFORCE change 114235 for review

Subject: PERFORCE change 114235 for review
From: Paolo Pisati
Date: Thu, 8 Feb 2007 11:58:50 GMT
http://perforce.freebsd.org/chv.cgi?CH=114235

Change 114235 by [email protected]_newluxor on 2007/02/08 11:58:25

        When pulling up the tcp hdr, pull up the options too.

Affected files ...

.. //depot/projects/soc2005/libalias/sys/netinet/libalias/alias_local.h#25 edit

Differences ...

==== //depot/projects/soc2005/libalias/sys/netinet/libalias/alias_local.h#25 
(text+ko) ====

@@ -198,8 +198,15 @@
 } while (0)
 
 #define PULLUP_TCPHDR(pip, ptr) do {            \
+        struct tcphdr *th;                      \
        pip = mtod(*ptr, struct ip *);          \
         PULLUP_SIZE(pip, ptr, (pip->ip_hl << 2) + sizeof(struct tcphdr)); \
+        if (pip != NULL) { \
+                th = (struct tcphdr *)&(((char *)pip)[pip->ip_hl << 2]);  \
+                if ((th->th_off << 2) > sizeof(struct tcphdr)) \
+                        PULLUP_SIZE(pip, ptr, ((pip->ip_hl + th->th_off) << \
+                           2)); \
+        } \
 } while (0)
 
 #define PULLUP_ICMPHDR(pip, ptr) do {           \
_______________________________________________
[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 114235 for review, Paolo Pisati <=