Lines 486-492
Link Here
|
486 |
|
486 |
|
487 |
if (1) { |
487 |
if (1) { |
488 |
int on = 1; |
488 |
int on = 1; |
489 |
if (setsockopt(icmp_sock, IPPROTO_IPV6, IPV6_HOPLIMIT, |
489 |
if (setsockopt(icmp_sock, IPPROTO_IPV6, IPV6_2292HOPLIMIT, |
490 |
&on, sizeof(on)) == -1) { |
490 |
&on, sizeof(on)) == -1) { |
491 |
perror ("can't receive hop limit"); |
491 |
perror ("can't receive hop limit"); |
492 |
exit(2); |
492 |
exit(2); |
Lines 704-710
Link Here
|
704 |
|
704 |
|
705 |
for (c = CMSG_FIRSTHDR(msg); c; c = CMSG_NXTHDR(msg, c)) { |
705 |
for (c = CMSG_FIRSTHDR(msg); c; c = CMSG_NXTHDR(msg, c)) { |
706 |
if (c->cmsg_level != SOL_IPV6 || |
706 |
if (c->cmsg_level != SOL_IPV6 || |
707 |
c->cmsg_type != IPV6_HOPLIMIT) |
707 |
c->cmsg_type != IPV6_2292HOPLIMIT) |
708 |
continue; |
708 |
continue; |
709 |
if (c->cmsg_len < CMSG_LEN(sizeof(int))) |
709 |
if (c->cmsg_len < CMSG_LEN(sizeof(int))) |
710 |
continue; |
710 |
continue; |