Parcourir la source

add ipv6 and icmpv6 to getprotoent-family functions

based on patch by orc.
Rich Felker il y a 11 ans
Parent
commit
3e02ce1b41
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      src/network/proto.c

+ 3 - 1
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"
 };