add ipsec and tunneling protocols to getprotoent-family functions
authorTimo Teräs <timo.teras@iki.fi>
Mon, 2 Jun 2014 05:16:08 +0000 (08:16 +0300)
committerRich Felker <dalias@aerifal.cx>
Mon, 2 Jun 2014 05:44:47 +0000 (01:44 -0400)
iptables and ipsec-tools among others require these to function
properly.

src/network/proto.c

index 3d0f584fbf695f2b5ac385d44021281d21b58f0e..1b51e1563ad9aa001037704ed278207c520152fd 100644 (file)
@@ -14,7 +14,11 @@ static const unsigned char protos[][8] = {
        "\021udp",
        "\026idp",
        "\051ipv6",
+       "\057gre",
+       "\062esp",
+       "\063ah",
        "\072icmpv6",
+       "\136ipip",
        "\377raw",
        "\0\0"
 };