implement mo file string lookup for translations
[musl] / src / network / proto.c
index 8c25c53..46ecca8 100644 (file)
@@ -1,11 +1,10 @@
 #include <netdb.h>
-#include <stdio.h>
 #include <string.h>
 
 /* do we really need all these?? */
 
 static int idx;
-static const unsigned char protos[][6] = {
+static const unsigned char protos[][8] = {
        "\000ip",
        "\001icmp",
        "\002igmp",
@@ -14,7 +13,15 @@ static const unsigned char protos[][6] = {
        "\014pup",
        "\021udp",
        "\026idp",
-       "\377raw"
+       "\051ipv6",
+       "\057gre",
+       "\062esp",
+       "\063ah",
+       "\072icmpv6",
+       "\131ospf",
+       "\136ipip",
+       "\147pim",
+       "\377raw",
        "\0\0"
 };