Re: porting linux SOCK_RAW to freebsd

2003-12-10 Thread Alin-Adrian Anton
Andy Hilker wrote: Hi, i try porting a little utility from linux to freebsd. Maybe someone could give me a hint, what i am doing wrong. -- snip -- /* Note: not portable */ // if ((s = socket(AF_INET, SOCK_PACKET, SOCK_PACKET)) < 0) { // ??? ported if ((s = socket(AF_INET,SOCK_RAW,IPP

porting linux SOCK_RAW to freebsd

2003-12-10 Thread Andy Hilker
Hi, i try porting a little utility from linux to freebsd. Maybe someone could give me a hint, what i am doing wrong. -- snip -- /* Note: not portable */ // if ((s = socket(AF_INET, SOCK_PACKET, SOCK_PACKET)) < 0) { // ??? ported if ((s = socket(AF_INET,SOCK_RAW,IPPROTO_RAW)) < 0