summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-02-13 12:27:40 -0500
committerRich Felker <dalias@aerifal.cx>2014-02-13 12:27:40 -0500
commit3e02ce1b411306fb3cbf0194662bec667fed1008 (patch)
tree7bb9b985650d64d8cc54facf37cbd3147bb6e7ab /src/network
parenteb375ef795a7e810a24d8b45c680be365a402a91 (diff)
downloadmusl-3e02ce1b411306fb3cbf0194662bec667fed1008.tar.gz
musl-3e02ce1b411306fb3cbf0194662bec667fed1008.tar.bz2
musl-3e02ce1b411306fb3cbf0194662bec667fed1008.tar.xz
musl-3e02ce1b411306fb3cbf0194662bec667fed1008.zip
add ipv6 and icmpv6 to getprotoent-family functions
based on patch by orc.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/proto.c4
1 files changed, 3 insertions, 1 deletions
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"
};