Bug#200076: libc6: setsockopt does not support IPOPT_RA
Package: libc6
Version: 2.2.5-11.5
Severity: normal
I was hoping that router alert (RFC2113) was supported by libc6. It's
supported in the Linux kernel.
This is the code:
if (setsockopt(sd, IPPROTO_IP,
IPOPT_RA,
(void *)&on, sizeof(on))) {
exit(1);
}
if (sendto(sd, inbuf.s, inbuf.lenb, 0,
(struct sockaddr *)&destaddr, sizeof(destaddr)) < 0) {
perror("inject: sendto");
exit(1);
}
and this is the strace output:
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
setsockopt(4, SOL_IP, 0x94 /* IP_??? */, [0], 4) = -1 ENOPROTOOPT (Protocol not available)
_exit(1) = ?
And it is libc6 for the program:
face:/a/face/homes/face/disk00/tsg/share/weaves/fain-snap-0.9/src/ctl
193$ ldd inject
libdl.so.2 => /lib/libdl.so.2 (0x4001f000)
libsnmp-0.4.2.so => /usr/lib/libsnmp-0.4.2.so (0x40022000)
libm.so.6 => /lib/libm.so.6 (0x4007e000)
libc.so.6 => /lib/libc.so.6 (0x4009f000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux face 2.4.18-1-686 #1 Fri Jun 6 22:41:17 EST 2003 i686
Locale: LANG=C, LC_CTYPE=
Reply to: