]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
tunnel: decode ESP tunnel type
authorStephen Hemminger <shemming@brocade.com>
Thu, 4 Dec 2014 03:08:41 +0000 (19:08 -0800)
committerStephen Hemminger <shemming@brocade.com>
Thu, 4 Dec 2014 03:08:41 +0000 (19:08 -0800)
Add ESP to decode switch.

ip/tunnel.c

index f163dad6049c46f1e0abce8aa6f558f39aece332..33c78e3f5fb7c093501d1addce247dc1516488ca 100644 (file)
@@ -51,6 +51,9 @@ const char *tnl_strproto(__u8 proto)
        case IPPROTO_IPV6:
                strcpy(buf, "ipv6");
                break;
+       case IPPROTO_ESP:
+               strcpy(buf, "esp");
+               break;
        case 0:
                strcpy(buf, "any");
                break;