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;
710 crypto_keys->state.u.ipsec.proto == IPPROTO_ESP &&
716 proto = *(mtod(*pkt, protocol_family_t *));
721 if ((proto == AF_UTUN || proto == AF_INET) && crypto_keys->state.u.ipsec.ifamily == IPPROTO_IPV4) {
725 if (proto == AF_INET) {
815 } else if ((proto == AF_UTUN || proto == AF_INET6) && crypto_keys->state.u.ipsec.ifamily == IPPROTO_IPV6) {
820 if (proto == AF_INET6) {
913 printf("%s: packet's proto (%d) mismatched the context's proto (%d)\n", __FUNCTION__,
914 proto, crypto_keys->state.u.ipsec.ifamily);
987 // ESP keepalive meets all these conditions: ESP trailer's next proto indicates IP, the decrypted packet only has one zero'd byte in it.