Home
last modified time | relevance | path

Searched refs:maclen (Results 1 – 17 of 17) sorted by relevance

/linux/tools/testing/selftests/net/tcp_ao/lib/
H A Dftrace-tcp.c46 int maclen; member
61 int keyid, int rnext, int maclen, int sne) in __trace_event_expect() argument
78 .maclen = maclen, in __trace_event_expect()
133 unsigned int maclen; member
181 if (p->maclen >= 0 && p->maclen != e->maclen) in lookup_expected_event()
321 &out->keyid, &out->rnext, &out->maclen); in tracer_scan_event()
432 e->keyid, e->rnext, e->maclen, e->sne, e->matched); in dump_trace_event()
H A Dsock.c212 uint8_t maclen, uint8_t keyflags, in test_prepare_key_sockaddr() argument
222 ao->maclen = maclen; in test_prepare_key_sockaddr()
326 if (a->maclen) { in test_cmp_getsockopt_setsockopt()
327 __cmp_ao(maclen); in test_cmp_getsockopt_setsockopt()
328 } else if (b->maclen != 12) { in test_cmp_getsockopt_setsockopt()
330 b->maclen); in test_cmp_getsockopt_setsockopt()
H A Daolib.h374 uint8_t sndid, uint8_t rcvid, uint8_t maclen,
381 uint8_t sndid, uint8_t rcvid, uint8_t maclen, in test_prepare_key() argument
389 maclen, keyflags, keylen, key); in test_prepare_key()
770 int keyid, int rnext, int maclen, int sne);
791 int keyid, int rnext, int maclen) in trace_ao_event_expect() argument
798 keyid, rnext, maclen, -1); in trace_ao_event_expect()
/linux/tools/testing/selftests/net/tcp_ao/
H A Dkey-management.c410 uint8_t maclen; member
458 key->maclen = (rand() % TEST_MAX_MACLEN) + 1; in init_key_in_collection()
463 key->maclen = test_maclens[index & make_mask(shift, 0)]; in init_key_in_collection()
503 key->maclen, key->matches_client, key->matches_server, in test_key_error()
510 uint8_t maclen, const char *alg, in test_add_key_cr() argument
523 DEFAULT_TEST_PREFIX, vrf, sndid, rcvid, maclen, in test_add_key_cr()
603 *addr, vrf, sndid, rcvid, key->maclen, in key_collection_socket()
609 key->alg, rcvid, sndid, key->maclen, in key_collection_socket()
763 if (dump_key->maclen != key->maclen) { in verify_keys()
766 dump_key->maclen, key->maclen); in verify_keys()
[all …]
H A Dconnect-deny.c9 static inline int test_add_key_maclen(int sk, const char *key, uint8_t maclen, in test_add_key_maclen() argument
20 prefix, 0, sndid, rcvid, maclen, in test_add_key_maclen()
34 uint8_t sndid, uint8_t rcvid, uint8_t maclen, in try_accept() argument
45 if (pwd && test_add_key_maclen(lsk, pwd, maclen, addr, prefix, sndid, rcvid)) in try_accept()
H A Dsetsockopt-closed.c373 ao.maclen = 100; in test_einval_add_key()
/linux/include/linux/
H A Dif_vlan.h670 int maclen; in vlan_get_protocol_and_depth() local
672 type = __vlan_get_protocol(skb, type, &maclen); in vlan_get_protocol_and_depth()
675 if (!pskb_may_pull(skb, maclen)) in vlan_get_protocol_and_depth()
678 *depth = maclen; in vlan_get_protocol_and_depth()
/linux/include/net/
H A Dip_tunnels.h493 int nhlen = 0, maclen = inner_proto_inherit ? 0 : ETH_HLEN; in skb_vlan_inet_prepare() local
501 type = __vlan_get_protocol(skb, type, &maclen); in skb_vlan_inet_prepare()
516 reason = pskb_may_pull_reason(skb, maclen + nhlen); in skb_vlan_inet_prepare()
520 skb_set_network_header(skb, maclen); in skb_vlan_inet_prepare()
H A Dtcp_ao.h63 u8 maclen; member
82 return key->maclen; in tcp_ao_maclen()
/linux/net/ipv4/
H A Dtcp_ao.c960 u8 maclen = tcp_ao_hdr_maclen(aoh); in tcp_ao_verify_hash() local
963 if (maclen != tcp_ao_maclen(key)) { in tcp_ao_verify_hash()
968 aoh->rnext_keyid, maclen); in tcp_ao_verify_hash()
975 if (crypto_memneq(phash, hash_buf, maclen)) { in tcp_ao_verify_hash()
980 aoh->rnext_keyid, maclen); in tcp_ao_verify_hash()
996 u8 maclen = tcp_ao_hdr_maclen(aoh); in tcp_inbound_ao_hash() local
1009 aoh->rnext_keyid, maclen); in tcp_inbound_ao_hash()
1114 aoh->rnext_keyid, maclen); in tcp_inbound_ao_hash()
1389 key->maclen = cmd->maclen ?: 12; /* 12 is the default in RFC5925 */ in tcp_ao_parse_crypto()
2265 opt_out.maclen = key->maclen; in tcp_ao_copy_mkts_to_user()
H A Dtcp_output.c603 u8 maclen = tcp_ao_maclen(key->ao_key); in process_tcp_ao_options() local
606 u8 aolen = maclen + sizeof(struct tcp_ao_hdr); in process_tcp_ao_options()
626 ptr += maclen / sizeof(*ptr); in process_tcp_ao_options()
627 if (unlikely(maclen % sizeof(*ptr))) { in process_tcp_ao_options()
H A Dtcp.c5043 u8 keyid, rnext, maclen; in tcp_inbound_hash()
5048 maclen = tcp_ao_hdr_maclen(aoh); in tcp_inbound_hash()
5050 keyid = rnext = maclen = 0; in tcp_inbound_hash()
5054 trace_tcp_ao_handshake_failure(sk, skb, keyid, rnext, maclen); in tcp_inbound_hash()
5041 u8 keyid, rnext, maclen; tcp_inbound_hash() local
/linux/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
H A Dchcr_ktls.c993 u32 ctrl, iplen, maclen; in chcr_ktls_write_tcp_options() local
1006 maclen = skb_mac_header_len(skb); in chcr_ktls_write_tcp_options()
1050 ip = (struct iphdr *)(buf + maclen); in chcr_ktls_write_tcp_options()
1051 ip->tot_len = htons(pktlen - maclen); in chcr_ktls_write_tcp_options()
1054 ip6 = (struct ipv6hdr *)(buf + maclen); in chcr_ktls_write_tcp_options()
1055 ip6->payload_len = htons(pktlen - maclen - iplen); in chcr_ktls_write_tcp_options()
1059 cntrl1 |= T6_TXPKT_ETHHDR_LEN_V(maclen - ETH_HLEN) | in chcr_ktls_write_tcp_options()
1070 tcp = (struct tcphdr *)(buf + maclen + iplen); in chcr_ktls_write_tcp_options()
1569 u32 ctrl, iplen, maclen, wr_mid = 0, len16; in chcr_ktls_tunnel_pkt() local
1610 maclen in chcr_ktls_tunnel_pkt()
[all...]
/linux/net/core/
H A Dgro.c360 unsigned int maclen = skb->dev->hard_header_len; in gro_list_prepare() local
375 if (maclen == ETH_HLEN) in gro_list_prepare()
381 maclen); in gro_list_prepare()
/linux/drivers/net/ethernet/sun/
H A Dsunvnet_common.c1228 int maclen, datalen; in vnet_handle_offloads() local
1267 maclen = skb_network_header(skb) - skb_mac_header(skb); in vnet_handle_offloads()
1268 skb_pull(skb, maclen); in vnet_handle_offloads()
1282 skb_push(skb, maclen); in vnet_handle_offloads()
1297 skb_push(curr, maclen); in vnet_handle_offloads()
1300 maclen); in vnet_handle_offloads()
/linux/net/packet/
H A Daf_packet.c2321 unsigned int maclen = skb_network_offset(skb); in tpacket_rcv() local
2323 (maclen < 16 ? 16 : maclen)) + in tpacket_rcv()
2328 macoff = netoff - maclen; in tpacket_rcv()
/linux/drivers/infiniband/hw/irdma/
H A Dcm.c459 sqbuf->maclen = eth_hlen; in irdma_form_uda_cm_frame()