提交 3e02ce1b 编写于 作者: R Rich Felker

add ipv6 and icmpv6 to getprotoent-family functions

based on patch by orc.
上级 eb375ef7
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
/* do we really need all these?? */ /* do we really need all these?? */
static int idx; static int idx;
static const unsigned char protos[][6] = { static const unsigned char protos[][8] = {
"\000ip", "\000ip",
"\001icmp", "\001icmp",
"\002igmp", "\002igmp",
...@@ -13,6 +13,8 @@ static const unsigned char protos[][6] = { ...@@ -13,6 +13,8 @@ static const unsigned char protos[][6] = {
"\014pup", "\014pup",
"\021udp", "\021udp",
"\026idp", "\026idp",
"\051ipv6",
"\072icmpv6",
"\377raw", "\377raw",
"\0\0" "\0\0"
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册