[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <2141002.LfKmUBSlWz@ul001176>
Date: Fri, 01 Aug 2014 13:16:09 +0200
From: Jaroslav Šafka <jaroslav.safka@...to.com>
To: netdev@...r.kernel.org
Subject: iproute2 small patches for xfrm
Hi,
I found the tool "ip xfrm" is not able to add "cipher_null" because there is
no possibility to set key with zero length.
I solved it by this change:
- if (slen > 2 && strncmp(key, "0x", 2) == 0) {
+ if (slen >= 2 && strncmp(key, "0x", 2) == 0) {
By this change you can specify key as "0x" which will pass for key existence
and set key len to 0.
this patch is against version iproute2-3.14.0
Second patch enable use proto ip. Because it is supported by kernel.
Have a nice day :)
Regards
Jarek
View attachment "cipher_null.patch" of type "text/x-patch" (464 bytes)
View attachment "proto_ip.patch" of type "text/x-patch" (350 bytes)
Powered by blists - more mailing lists