Explorar o código

[XFRM]: Handle DCCP in xfrm{4,6}_decode_session

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Patrick McHardy %!s(int64=19) %!d(string=hai) anos
pai
achega
9e999993c7
Modificáronse 2 ficheiros con 2 adicións e 0 borrados
  1. 1 0
      net/ipv4/xfrm4_policy.c
  2. 1 0
      net/ipv6/xfrm6_policy.c

+ 1 - 0
net/ipv4/xfrm4_policy.c

@@ -182,6 +182,7 @@ _decode_session4(struct sk_buff *skb, struct flowi *fl)
 		case IPPROTO_UDP:
 		case IPPROTO_TCP:
 		case IPPROTO_SCTP:
+		case IPPROTO_DCCP:
 			if (pskb_may_pull(skb, xprth + 4 - skb->data)) {
 				u16 *ports = (u16 *)xprth;
 

+ 1 - 0
net/ipv6/xfrm6_policy.c

@@ -214,6 +214,7 @@ _decode_session6(struct sk_buff *skb, struct flowi *fl)
 		case IPPROTO_UDP:
 		case IPPROTO_TCP:
 		case IPPROTO_SCTP:
+		case IPPROTO_DCCP:
 			if (pskb_may_pull(skb, skb->nh.raw + offset + 4 - skb->data)) {
 				u16 *ports = (u16 *)exthdr;