At Fri, 04 Jul 2003 21:06:15 +0100,
Walter Eaves wrote:
> 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)                                = ?

No, AFAIK glibc does not need to work for IPOPT_RA.  Your program or
your kernel are missing something.  Could you provide us the complete
example?

Regards,
-- gotom


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to