]> git.ipfire.org Git - ipfire-3.x.git/blobdiff - iproute2/patches/iproute2-3.9.0-IPPROTO_IP_for_SA.patch
iproute2: Update to 3.14.0.
[ipfire-3.x.git] / iproute2 / patches / iproute2-3.9.0-IPPROTO_IP_for_SA.patch
diff --git a/iproute2/patches/iproute2-3.9.0-IPPROTO_IP_for_SA.patch b/iproute2/patches/iproute2-3.9.0-IPPROTO_IP_for_SA.patch
new file mode 100644 (file)
index 0000000..6c150ec
--- /dev/null
@@ -0,0 +1,12 @@
+diff --git a/ip/ipxfrm.c b/ip/ipxfrm.c
+index 0495ff4..b1d4c6e 100644
+--- a/ip/ipxfrm.c
++++ b/ip/ipxfrm.c
+@@ -1275,6 +1275,7 @@ static int xfrm_selector_upspec_parse(struct xfrm_selector *sel,
+               case IPPROTO_UDP:
+               case IPPROTO_SCTP:
+               case IPPROTO_DCCP:
++              case IPPROTO_IP: /* to allow shared SA for different protocols */
+                       break;
+               default:
+                       fprintf(stderr, "\"sport\" and \"dport\" are invalid with PROTO value \"%s\"\n", strxf_proto(sel->proto));