[ipfilter-cvs] ipfilter ip_fil_freebsd.c,
Brought to you by:
darren_r
From: Darren <dar...@us...> - 2007-11-26 07:34:39
|
Update of /cvsroot/ipfilter/ipfilter In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv17264/ipf5 Modified Files: ip_fil_freebsd.c Log Message: FreeBSD's ip_output() expects ip_len and ip_off in host byte order 1837014 Kernel panics after authentication of an outgoing packet Index: ip_fil_freebsd.c =================================================================== RCS file: /cvsroot/ipfilter/ipfilter/ip_fil_freebsd.c,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** ip_fil_freebsd.c 8 Nov 2007 08:11:51 -0000 1.10 --- ip_fil_freebsd.c 26 Nov 2007 07:34:40 -0000 1.11 *************** *** 1407,1410 **** --- 1407,1412 ---- #endif } else { + fin->fin_ip->ip_len = ntohs(fin->fin_ip->ip_len); + fin->fin_ip->ip_off = ntohs(fin->fin_ip->ip_off); #if (__FreeBSD_version >= 470102) error = ip_output(m, NULL, NULL, IP_FORWARDING, NULL, NULL); |