OSDN Git Service

tipc: make sure IPv6 header fits in skb headroom
authorRichard Alpe <richard.alpe@ericsson.com>
Mon, 14 Mar 2016 08:43:52 +0000 (09:43 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Mar 2016 16:23:12 +0000 (12:23 -0400)
Expand headroom further in order to be able to fit the larger IPv6
header. Prior to this patch this caused a skb under panic for certain
tipc packets when using IPv6 UDP bearer(s).

Signed-off-by: Richard Alpe <richard.alpe@ericsson.com>
Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/udp_media.c

index c94f9a1..c9cf2be 100644 (file)
@@ -53,7 +53,7 @@
 /* IANA assigned UDP port */
 #define UDP_PORT_DEFAULT       6118
 
-#define UDP_MIN_HEADROOM        28
+#define UDP_MIN_HEADROOM        48
 
 /**
  * struct udp_media_addr - IP/UDP addressing information