Lines Matching refs:proto
74 utun_ipsec_proto_to_sadb_proto (if_utun_crypto_ipsec_proto_t proto)
76 switch (proto) {
87 utun_ipsec_proto_to_sadb_satype (if_utun_crypto_ipsec_proto_t proto)
89 switch (proto) {
175 u_int16_t proto,
184 if (proto != IPPROTO_ESP ||
196 saidx.proto = proto;
424 u_int16_t proto;
448 proto = utun_ipsec_proto_to_sadb_proto(args_ipsec_v1->proto);
453 proto,
466 satype = utun_ipsec_proto_to_sadb_satype(args_ipsec_v1->proto);
494 crypto_keys->state.u.ipsec.proto = sah->saidx.proto;
540 u_int16_t proto,
551 proto,
561 u_int16_t proto;
564 proto = utun_ipsec_proto_to_sadb_proto(args_ipsec_v1->proto);
570 proto,
701 protocol_family_t proto;
709 crypto_keys->state.u.ipsec.proto == IPPROTO_ESP &&
715 proto = ntohl(*(mtod(*pkt, protocol_family_t *)));
720 if ((proto == AF_UTUN || proto == AF_INET) && crypto_keys->state.u.ipsec.ifamily == IPPROTO_IPV4) {
724 if (proto == AF_INET) {
822 } else if ((proto == AF_UTUN || proto == AF_INET6) && crypto_keys->state.u.ipsec.ifamily == IPPROTO_IPV6) {
827 if (proto == AF_INET6) {
930 printf("%s: packet's proto (%d) mismatched the context's proto (%d)\n", __FUNCTION__,
931 proto, crypto_keys->state.u.ipsec.ifamily);
1004 // ESP keepalive meets all these conditions: ESP trailer's next proto indicates IP, the decrypted packet only has one zero'd byte in it.