Changeset View
Changeset View
Standalone View
Standalone View
sys/contrib/ipfilter/netinet/fil.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 1,709 Lines • ▼ Show 20 Lines | ipf_pr_ipv4hdr(fin) | ||||
fi->fi_dst.i6[1] = 0; | fi->fi_dst.i6[1] = 0; | ||||
fi->fi_dst.i6[2] = 0; | fi->fi_dst.i6[2] = 0; | ||||
fi->fi_dst.i6[3] = 0; | fi->fi_dst.i6[3] = 0; | ||||
fi->fi_saddr = ip->ip_src.s_addr; | fi->fi_saddr = ip->ip_src.s_addr; | ||||
fin->fin_crc += fi->fi_saddr; | fin->fin_crc += fi->fi_saddr; | ||||
fi->fi_daddr = ip->ip_dst.s_addr; | fi->fi_daddr = ip->ip_dst.s_addr; | ||||
fin->fin_crc += fi->fi_daddr; | fin->fin_crc += fi->fi_daddr; | ||||
if (IN_CLASSD(ntohl(fi->fi_daddr))) | if (IN_MULTICAST(ntohl(fi->fi_daddr))) | ||||
fin->fin_flx |= FI_MULTICAST|FI_MBCAST; | fin->fin_flx |= FI_MULTICAST|FI_MBCAST; | ||||
/* | /* | ||||
* set packet attribute flags based on the offset and | * set packet attribute flags based on the offset and | ||||
* calculate the byte offset that it represents. | * calculate the byte offset that it represents. | ||||
*/ | */ | ||||
off &= IP_MF|IP_OFFMASK; | off &= IP_MF|IP_OFFMASK; | ||||
if (off != 0) { | if (off != 0) { | ||||
▲ Show 20 Lines • Show All 8,556 Lines • Show Last 20 Lines |