Re: Raw Packet code containing security bits

1999-08-16 Thread Bosko Milekic
Hello Andrew, When filling your struct ip *iphead, try replacing: iphead->ip_len = htons(length); with: iphead->ip_len = length; or, for portability reasons, you may want to do something like: #ifdef LINUX || OpenBSD21 #define BO(x) htons(x) #else #def

Re: Raw Packet code containing security bits

1999-08-16 Thread Bosko Milekic
Hello Andrew, When filling your struct ip *iphead, try replacing: iphead->ip_len = htons(length); with: iphead->ip_len = length; or, for portability reasons, you may want to do something like: #ifdef LINUX || OpenBSD21 #define BO(x) htons(x) #else #de

Raw Packet code containing security bits

1999-08-16 Thread FreeBSD mailing lists
I wonder if anyone here could perhaps of be assistance, Im currently playing with implementing certain things in trusted bsd to do with ip security classes and how the system responds to security bits, and implementing certain things the stack etc. However my first piece of test code playing with

Raw Packet code containing security bits

1999-08-16 Thread FreeBSD mailing lists
I wonder if anyone here could perhaps of be assistance, Im currently playing with implementing certain things in trusted bsd to do with ip security classes and how the system responds to security bits, and implementing certain things the stack etc. However my first piece of test code playing with