Changeset View
Changeset View
Standalone View
Standalone View
sys/netpfil/pf/pf.c
Show First 20 Lines • Show All 6,424 Lines • ▼ Show 20 Lines | pf_test6(int dir, int pflags, struct ifnet *ifp, struct mbuf **m0, struct inpcb *inp) | ||||
pd.dst = (struct pf_addr *)&h->ip6_dst; | pd.dst = (struct pf_addr *)&h->ip6_dst; | ||||
pd.sport = pd.dport = NULL; | pd.sport = pd.dport = NULL; | ||||
pd.ip_sum = NULL; | pd.ip_sum = NULL; | ||||
pd.proto_sum = NULL; | pd.proto_sum = NULL; | ||||
pd.dir = dir; | pd.dir = dir; | ||||
pd.sidx = (dir == PF_IN) ? 0 : 1; | pd.sidx = (dir == PF_IN) ? 0 : 1; | ||||
pd.didx = (dir == PF_IN) ? 1 : 0; | pd.didx = (dir == PF_IN) ? 1 : 0; | ||||
pd.af = AF_INET6; | pd.af = AF_INET6; | ||||
pd.tos = (ntohl(h->ip6_flow) >> 20) & 0xfc; | pd.tos = IPV6_DSCP(h); | ||||
pd.tot_len = ntohs(h->ip6_plen) + sizeof(struct ip6_hdr); | pd.tot_len = ntohs(h->ip6_plen) + sizeof(struct ip6_hdr); | ||||
off = ((caddr_t)h - m->m_data) + sizeof(struct ip6_hdr); | off = ((caddr_t)h - m->m_data) + sizeof(struct ip6_hdr); | ||||
pd.proto = h->ip6_nxt; | pd.proto = h->ip6_nxt; | ||||
do { | do { | ||||
switch (pd.proto) { | switch (pd.proto) { | ||||
case IPPROTO_FRAGMENT: | case IPPROTO_FRAGMENT: | ||||
action = pf_test_fragment(&r, dir, kif, m, h, | action = pf_test_fragment(&r, dir, kif, m, h, | ||||
▲ Show 20 Lines • Show All 337 Lines • Show Last 20 Lines |