Index: sys/netinet/raw_ip.c =================================================================== RCS file: /home/ncvs/src/sys/netinet/raw_ip.c,v retrieving revision 1.108 diff -u -r1.108 raw_ip.c --- sys/netinet/raw_ip.c 2003/01/18 01:10:55 1.108 +++ sys/netinet/raw_ip.c 2003/01/19 15:15:09 @@ -302,6 +302,8 @@ return(EMSGSIZE); } ip = mtod(m, struct ip *); + ntohs(ip->ip_len); + ntohs(ip->ip_off); /* don't allow both user specified and setsockopt options, and don't allow packet length sizes that will crash */ if (((ip->ip_hl != (sizeof (*ip) >> 2))