Lines Matching refs:af

188 ipsec_common_input(struct mbuf **mp, int skip, int protoff, int af, int sproto,
253 dst_address.sa.sa_family = af;
255 switch (af) {
275 DPRINTF("unsupported protocol family %d", af);
369 int af, sproto;
384 af = tdbp->tdb_dst.sa.sa_family;
390 if (af == AF_INET) {
408 if (af == AF_INET6) {
431 if ((af == AF_INET || af == AF_INET6) &&
447 if (af == AF_INET6) {
464 if (af == AF_INET)
468 else if (af == AF_INET6)
548 hdr.af = af;
566 sec_input(sc, af, prot, m);
588 if (pf_test(af, PF_IN, ifp, mp) != PF_PASS) {
750 ipsec_input_disabled(struct mbuf **mp, int *offp, int proto, int af)
752 switch (af) {
754 return rip_input(mp, offp, proto, af);
757 return rip6_input(mp, offp, proto, af);
760 unhandled_af(af);
765 ah46_input(struct mbuf **mp, int *offp, int proto, int af)
774 return ipsec_input_disabled(mp, offp, proto, af);
776 protoff = ipsec_protoff(*mp, *offp, af);
784 return ipsec_common_input(mp, *offp, protoff, af, proto, 0);
798 esp46_input(struct mbuf **mp, int *offp, int proto, int af)
807 return ipsec_input_disabled(mp, offp, proto, af);
809 protoff = ipsec_protoff(*mp, *offp, af);
817 return ipsec_common_input(mp, *offp, protoff, af, proto, 0);
822 ipcomp46_input(struct mbuf **mp, int *offp, int proto, int af)
831 return ipsec_input_disabled(mp, offp, proto, af);
833 protoff = ipsec_protoff(*mp, *offp, af);
841 return ipsec_common_input(mp, *offp, protoff, af, proto, 0);
966 ipsec_protoff(struct mbuf *m, int off, int af)
973 switch (af) {
981 unhandled_af(af);
1023 ipsec_forward_check(struct mbuf *m, int hlen, int af)
1040 error = ipsp_spd_lookup(m, af, hlen, IPSP_DIRECTION_IN,
1048 ipsec_local_check(struct mbuf *m, int hlen, int proto, int af)
1083 if ((af == AF_INET6) && ((proto == IPPROTO_DSTOPTS) ||
1113 error = ipsp_spd_lookup(m, af, hlen, IPSP_DIRECTION_IN,