Raw IP socket on Digital Unix

Raw IP socket on Digital Unix

Post by Beno?t Gillo » Tue, 24 Nov 1998 04:00:00

I have some troubles programming Raw IP sockets on ALPHA 800 DIGITAL
Unix. The system systematically reboots when I SEND a IP message on a
raw IP socket. My code looks a bit like this:

        s = socket(AF_INET, SOCK_RAW, IPPROTO_RAW);
        setsockopt(s, IPPROTO_IP, IP_HDRINCL, (char *)&on, siweof(on));

Are there any other socket options to set to make it work ?
Is there any well known problem for raw IP socket on Digital platform ?
Is there any other better way to do (using driver ...) ?
Did somebody of you successfully do it already on DIGITAL UNIX ?
Does any body have a working sample example for me ?
Does any body have detailed programming documentations on that thing ?
Well, does somebody have some good and helpfull ideas for me to make it
work ?

Thanks very much indead for answers.