diff options
author | Gisle Aas <gisle@activestate.com> | 2006-01-18 11:57:07 +0000 |
---|---|---|
committer | Gisle Aas <gisle@activestate.com> | 2006-01-18 11:57:07 +0000 |
commit | 29f89f3391e105f07954be37fe4e0bb5825d7b97 (patch) | |
tree | 71e9302dc535f71f45c37032808c0ad08f871bc6 /ext/Socket | |
parent | c685562bbea16b50d5c72976dbb3224d4d88fbea (diff) | |
download | perl-29f89f3391e105f07954be37fe4e0bb5825d7b97.tar.gz |
Make sure the most common IPPROTO_* constants are always available.
These are well known numbers so it should not be a problem to
hardcode values when no constant is provided by the C library.
Ref <http://www.iana.org/assignments/protocol-numbers>.
On some old glibc systems (eg Redhat 6) IPPROTO_TCP is an enum only
and this change workaround that problem as well.
p4raw-id: //depot/perl@26897
Diffstat (limited to 'ext/Socket')
-rw-r--r-- | ext/Socket/Makefile.PL | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/Socket/Makefile.PL b/ext/Socket/Makefile.PL index 485b456338..073c3dba9e 100644 --- a/ext/Socket/Makefile.PL +++ b/ext/Socket/Makefile.PL @@ -15,7 +15,7 @@ my @names = (qw(AF_802 AF_AAL AF_APPLETALK AF_CCITT AF_CHAOS AF_CTF AF_LAST AF_LAT AF_LINK AF_MAX AF_NBS AF_NIT AF_NS AF_OSI AF_OSINET AF_PUP AF_ROUTE AF_SNA AF_UNIX AF_UNSPEC AF_USER AF_WAN AF_X25 - IOV_MAX IPPROTO_TCP + IOV_MAX MSG_BCAST MSG_BTAG MSG_CTLFLAGS MSG_CTLIGNORE MSG_DONTWAIT MSG_EOF MSG_EOR MSG_ERRQUEUE MSG_ETAG MSG_FIN MSG_MAXIOVLEN MSG_MCAST MSG_NOSIGNAL MSG_RST MSG_SYN @@ -45,6 +45,9 @@ my @names = (qw(AF_802 AF_AAL AF_APPLETALK AF_CCITT AF_CHAOS AF_CTF TCP_KEEPALIVE TCP_MAXRT TCP_MAXSEG TCP_NODELAY TCP_STDURG UIO_MAXIOV ), + {name=>"IPPROTO_ICMP", type=>"IV", default=>["IV", 1]}, + {name=>"IPPROTO_TCP", type=>"IV", default=>["IV", 6]}, + {name=>"IPPROTO_UDP", type=>"IV", default=>["IV", 17]}, {name=>"SHUT_RD", type=>"IV", default=>["IV", "0"]}, {name=>"SHUT_WR", type=>"IV", default=>["IV", "1"]}, {name=>"SHUT_RDWR", type=>"IV", default=>["IV", "2"]}, |