From 3e02ce1b411306fb3cbf0194662bec667fed1008 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 13 Feb 2014 12:27:40 -0500 Subject: add ipv6 and icmpv6 to getprotoent-family functions based on patch by orc. --- src/network/proto.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/network/proto.c') diff --git a/src/network/proto.c b/src/network/proto.c index c569232f..3d0f584f 100644 --- a/src/network/proto.c +++ b/src/network/proto.c @@ -4,7 +4,7 @@ /* do we really need all these?? */ static int idx; -static const unsigned char protos[][6] = { +static const unsigned char protos[][8] = { "\000ip", "\001icmp", "\002igmp", @@ -13,6 +13,8 @@ static const unsigned char protos[][6] = { "\014pup", "\021udp", "\026idp", + "\051ipv6", + "\072icmpv6", "\377raw", "\0\0" }; -- cgit v1.2.1