projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb375ef
)
add ipv6 and icmpv6 to getprotoent-family functions
author
Rich Felker
<dalias@aerifal.cx>
Thu, 13 Feb 2014 17:27:40 +0000
(12:27 -0500)
committer
Rich Felker
<dalias@aerifal.cx>
Thu, 13 Feb 2014 17:27:40 +0000
(12:27 -0500)
based on patch by orc.
src/network/proto.c
patch
|
blob
|
history
diff --git
a/src/network/proto.c
b/src/network/proto.c
index c569232f5a0ad9429948abc16fd5910c7dffcc86..3d0f584fbf695f2b5ac385d44021281d21b58f0e 100644
(file)
--- 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"
};