Thread: [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); |
From: Darren <dar...@us...> - 2012-01-18 10:31:00
|
Update of /cvsroot/ipfilter/ipfilter In directory vz-cvs-4.sog:/tmp/cvs-serv1284 Modified Files: ip_fil_freebsd.c Log Message: 3475426 ip psudo checksum wrong Index: ip_fil_freebsd.c =================================================================== RCS file: /cvsroot/ipfilter/ipfilter/ip_fil_freebsd.c,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** ip_fil_freebsd.c 12 Jan 2012 02:48:15 -0000 1.38 --- ip_fil_freebsd.c 18 Jan 2012 10:30:58 -0000 1.39 *************** *** 1262,1266 **** sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr, htonl(m->m_pkthdr.csum_data + ! fin->fin_ip->ip_len + fin->fin_p)); sum ^= 0xffff; if (sum != 0) { --- 1262,1268 ---- sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr, htonl(m->m_pkthdr.csum_data + ! fin->fin_ip->ip_len - ! (fin->fin_ip->ip_hl << 2) + ! fin->fin_p)); sum ^= 0xffff; if (sum != 0) { |
From: Darren <dar...@us...> - 2012-07-20 07:44:18
|
Update of /cvsroot/ipfilter/ipfilter In directory vz-cvs-4.sog:/tmp/cvs-serv26480 Modified Files: ip_fil_freebsd.c Log Message: 3546247 UDP hardware checksum offload not recognised Index: ip_fil_freebsd.c =================================================================== RCS file: /cvsroot/ipfilter/ipfilter/ip_fil_freebsd.c,v retrieving revision 1.43 retrieving revision 1.44 diff -C2 -d -r1.43 -r1.44 *** ip_fil_freebsd.c 9 Jul 2012 16:23:49 -0000 1.43 --- ip_fil_freebsd.c 20 Jul 2012 07:44:16 -0000 1.44 *************** *** 1271,1275 **** fin->fin_cksum = FI_CK_L4FULL; return 0; ! } else if (m->m_pkthdr.csum_flags == CSUM_TCP) { fin->fin_cksum = FI_CK_L4PART; return 0; --- 1271,1276 ---- fin->fin_cksum = FI_CK_L4FULL; return 0; ! } else if (m->m_pkthdr.csum_flags == CSUM_TCP || ! m->m_pkthdr.csum_flags == CSUM_UDP) { fin->fin_cksum = FI_CK_L4PART; return 0; |