diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-10-29 16:08:01 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-10-29 16:08:01 +0000 |
commit | 2def080250ad38665b29379ff53ed68ee23e55d4 (patch) | |
tree | 86ba2624d38032d830c2dfdcae1b5182561c2578 /net-analyzer/mping/files | |
parent | Add a RDEPEND on eselect-vi in addition to the DEPEND (for binpkgs). (diff) | |
download | gentoo-2-2def080250ad38665b29379ff53ed68ee23e55d4.tar.gz gentoo-2-2def080250ad38665b29379ff53ed68ee23e55d4.tar.bz2 gentoo-2-2def080250ad38665b29379ff53ed68ee23e55d4.zip |
Fix building with newer glibc #153252.
(Portage version: 2.1.2_pre3-r9)
Diffstat (limited to 'net-analyzer/mping/files')
-rw-r--r-- | net-analyzer/mping/files/digest-mping-2.01 | 2 | ||||
-rw-r--r-- | net-analyzer/mping/files/mping-2.01-RFC3542.patch | 56 |
2 files changed, 58 insertions, 0 deletions
diff --git a/net-analyzer/mping/files/digest-mping-2.01 b/net-analyzer/mping/files/digest-mping-2.01 index 3cb8d52d4605..7da4e7076de0 100644 --- a/net-analyzer/mping/files/digest-mping-2.01 +++ b/net-analyzer/mping/files/digest-mping-2.01 @@ -1 +1,3 @@ MD5 3339d3b15aef46699a2712de52d8ba32 mping-2.01.tar.gz 159203 +RMD160 3c0030c0d0a47460bb6ffe5c6af2ce508135cb26 mping-2.01.tar.gz 159203 +SHA256 7728ef3e31299b453e3d7cbb70b2ba0cdd3f5a9a71cae691b9756a7a3a76dde1 mping-2.01.tar.gz 159203 diff --git a/net-analyzer/mping/files/mping-2.01-RFC3542.patch b/net-analyzer/mping/files/mping-2.01-RFC3542.patch new file mode 100644 index 000000000000..564da2172664 --- /dev/null +++ b/net-analyzer/mping/files/mping-2.01-RFC3542.patch @@ -0,0 +1,56 @@ +http://www.ietf.org/rfc/rfc3542.txt + +http://bugs.gentoo.org/153252 + +--- mping-2.01/src/mping.c ++++ mping-2.01/src/mping.c +@@ -1688,6 +1688,20 @@ + } + } + ++/* RFC3542 changed some definitions from RFC2292 for no good reason, whee ! ++ * the newer 3542 uses a MLD_ prefix where as 2292 uses ICMP6_ prefix */ ++#ifndef MLD_LISTENER_QUERY ++# define MLD_LISTENER_QUERY ICMP6_MEMBERSHIP_QUERY ++#endif ++#ifndef MLD_LISTENER_REPORT ++# define MLD_LISTENER_REPORT ICMP6_MEMBERSHIP_REPORT ++#endif ++#ifndef MLD_LISTENER_REDUCTION ++# define MLD_LISTENER_REDUCTION ICMP6_MEMBERSHIP_REDUCTION ++#endif ++#ifndef ICMP6_DST_UNREACH_BEYONDSCOPE ++# define ICMP6_DST_UNREACH_BEYONDSCOPE ICMP6_DST_UNREACH_NOTNEIGHBOR ++#endif + /* + * Print a descriptive string about an ICMP6 header. + */ +@@ -1704,8 +1718,8 @@ + case ICMP6_DST_UNREACH_ADMIN: + printf("Administratively Prohibited\n"); + break; +- case ICMP6_DST_UNREACH_NOTNEIGHBOR: +- printf("Not a Neighbour\n"); ++ case ICMP6_DST_UNREACH_BEYONDSCOPE: ++ printf("Beyond scope\n"); + break; + case ICMP6_DST_UNREACH_ADDR: + printf("Destination Host Unreachable\n"); +@@ -1755,13 +1769,13 @@ + case ICMP6_ECHO_REPLY: + printf("Echo reply\n"); + break; +- case ICMP6_MEMBERSHIP_QUERY: +- printf("Membership Query\n"); ++ case MLD_LISTENER_QUERY: ++ printf("MLD Query\n"); + break; +- case ICMP6_MEMBERSHIP_REPORT: ++ case MLD_LISTENER_REPORT: + printf("MLD Report\n"); + break; +- case ICMP6_MEMBERSHIP_REDUCTION: ++ case MLD_LISTENER_REDUCTION: + printf("MLD Reduction\n"); + break; + case ND_ROUTER_ADVERT: |