Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/net/tcp_ao/
H A Dkey-management.c414 uint8_t maclen; member
469 key->maclen = (rand() % TEST_MAX_MACLEN) + 1; in init_key_in_collection()
474 key->maclen = test_maclens[index & make_mask(shift, 0)]; in init_key_in_collection()
524 uint8_t maclen, const char *alg, in test_add_key_cr() argument
537 DEFAULT_TEST_PREFIX, vrf, sndid, rcvid, maclen, in test_add_key_cr()
617 *addr, vrf, sndid, rcvid, key->maclen, in key_collection_socket()
623 key->alg, rcvid, sndid, key->maclen, in key_collection_socket()
777 if (dump_key->maclen != key->maclen) { in verify_keys()
780 dump_key->maclen, key->maclen); in verify_keys()
984 key->maclen, key->alg, 0, 0); in try_unmatched_keys()
[all …]
H A Dconnect-deny.c8 static inline int test_add_key_maclen(int sk, const char *key, uint8_t maclen, in test_add_key_maclen() argument
19 prefix, 0, sndid, rcvid, maclen, in test_add_key_maclen()
33 uint8_t sndid, uint8_t rcvid, uint8_t maclen, in try_accept() argument
44 if (pwd && test_add_key_maclen(lsk, pwd, maclen, addr, prefix, sndid, rcvid)) in try_accept()
H A Dsetsockopt-closed.c371 ao.maclen = 100; in test_einval_add_key()
/linux/tools/testing/selftests/net/tcp_ao/lib/
H A Dsock.c141 uint8_t maclen, uint8_t keyflags, in test_prepare_key_sockaddr() argument
151 ao->maclen = maclen; in test_prepare_key_sockaddr()
253 if (a->maclen) { in test_cmp_getsockopt_setsockopt()
254 __cmp_ao(maclen); in test_cmp_getsockopt_setsockopt()
255 } else if (b->maclen != 12) { in test_cmp_getsockopt_setsockopt()
257 b->maclen); in test_cmp_getsockopt_setsockopt()
H A Daolib.h323 uint8_t sndid, uint8_t rcvid, uint8_t maclen,
330 uint8_t sndid, uint8_t rcvid, uint8_t maclen, in test_prepare_key() argument
338 maclen, keyflags, keylen, key); in test_prepare_key()
/linux/include/linux/
H A Dif_vlan.h644 int maclen; in vlan_get_protocol_and_depth() local
646 type = __vlan_get_protocol(skb, type, &maclen); in vlan_get_protocol_and_depth()
649 if (!pskb_may_pull(skb, maclen)) in vlan_get_protocol_and_depth()
652 *depth = maclen; in vlan_get_protocol_and_depth()
/linux/drivers/infiniband/hw/irdma/
H A Dpuda.h50 u8 maclen; member
68 u8 maclen; /* mac length in bytes */ member
H A Dpuda.c467 hdr[0] = FIELD_PREP(IRDMA_UDA_QPSQ_MACLEN, info->maclen >> 1) | in irdma_puda_send()
540 info.maclen = buf->maclen; in irdma_puda_send_buf()
1225 txbuf->maclen = buf->maclen; in irdma_ieq_setup_tx_buf()
H A Dutils.c1520 iph = (struct iphdr *)(addr + buf->maclen); in irdma_gen1_ieq_update_tcpip_info()
1521 tcph = (struct tcphdr *)(addr + buf->maclen + iphlen); in irdma_gen1_ieq_update_tcpip_info()
1570 buf->maclen = (info->vlan_valid) ? 18 : 14; in irdma_gen1_puda_get_tcpip_info()
1573 buf->iph = mem + buf->maclen; in irdma_gen1_puda_get_tcpip_info()
1585 buf->totallen = pkt_len + buf->maclen; in irdma_gen1_puda_get_tcpip_info()
1597 buf->hdrlen = buf->maclen + iphlen + buf->tcphlen; in irdma_gen1_puda_get_tcpip_info()
H A Dcm.c459 sqbuf->maclen = eth_hlen; in irdma_form_uda_cm_frame()
/linux/include/net/
H A Dip_tunnels.h467 int nhlen = 0, maclen = inner_proto_inherit ? 0 : ETH_HLEN; in skb_vlan_inet_prepare() local
474 type = __vlan_get_protocol(skb, type, &maclen); in skb_vlan_inet_prepare()
489 if (!pskb_may_pull(skb, maclen + nhlen)) in skb_vlan_inet_prepare()
492 skb_set_network_header(skb, maclen); in skb_vlan_inet_prepare()
H A Dtcp_ao.h43 u8 maclen; member
62 return key->maclen; in tcp_ao_maclen()
/linux/include/uapi/linux/
H A Dtcp.h391 __u8 maclen; /* length of authentication code (hash) */ member
454 __u8 maclen; /* out: key's length of authentication member
/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 = skb_mac_header_len(skb); in chcr_ktls_tunnel_pkt()
[all …]
/linux/net/core/
H A Dgro.c354 unsigned int maclen = skb->dev->hard_header_len; in gro_list_prepare() local
369 if (maclen == ETH_HLEN) in gro_list_prepare()
375 maclen); in gro_list_prepare()
/linux/net/ipv4/
H A Dtcp_ao.c887 u8 maclen = aoh->length - sizeof(struct tcp_ao_hdr); in tcp_ao_verify_hash() local
891 if (maclen != tcp_ao_maclen(key)) { in tcp_ao_verify_hash()
896 "%u != %d L3index: %d", maclen, in tcp_ao_verify_hash()
908 if (memcmp(phash, hash_buf, maclen)) { in tcp_ao_verify_hash()
1333 key->maclen = cmd->maclen ?: 12; /* 12 is the default in RFC5925 */ in tcp_ao_parse_crypto()
2252 opt_out.maclen = key->maclen; in tcp_ao_copy_mkts_to_user()
H A Dtcp_output.c614 u8 maclen = tcp_ao_maclen(key->ao_key); in process_tcp_ao_options() local
617 u8 aolen = maclen + sizeof(struct tcp_ao_hdr); in process_tcp_ao_options()
637 ptr += maclen / sizeof(*ptr); in process_tcp_ao_options()
638 if (unlikely(maclen % sizeof(*ptr))) { in process_tcp_ao_options()
/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.c2306 unsigned int maclen = skb_network_offset(skb); in tpacket_rcv() local
2308 (maclen < 16 ? 16 : maclen)) + in tpacket_rcv()
2313 macoff = netoff - maclen; in tpacket_rcv()
/linux/drivers/crypto/hisilicon/sec2/
H A Dsec_crypto.c1205 #define GEN_SEC_AEAD_SETKEY_FUNC(name, aalg, calg, maclen, cmode) \ argument
1209 return sec_aead_setkey(tfm, key, keylen, aalg, calg, maclen, cmode);\