Skip to content

Commit

Permalink
tipc: make sure IPv6 header fits in skb headroom
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Richard Alpe authored and David S. Miller committed Mar 14, 2016
1 parent c9214f5 commit 9bd160b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/tipc/udp_media.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9bd160b

Please sign in to comment.