check raw socket protocol numbers

2013-03-29 Thread Alexander Bluhm
Hi, Restrict protocol numbers for raw sockets to the range from 0 to 255. ok? bluhm Index: netinet/raw_ip.c === RCS file: /data/mirror/openbsd/cvs/src/sys/netinet/raw_ip.c,v retrieving revision 1.62 diff -u -p -r1.62 raw_ip.c ---

Re: check raw socket protocol numbers

2013-03-29 Thread Philip Guenther
ok guenther@ The call in socreate() makes me think PRU_ATTACH should be moved from the usrreq callback to a separate callback. Those casts... yuck... On Fri, Mar 29, 2013 at 8:48 PM, Alexander Bluhm alexander.bl...@gmx.netwrote: Hi, Restrict protocol numbers for raw sockets to the range