/linux-6.12.1/tools/testing/selftests/net/tcp_ao/lib/ |
D | ftrace-tcp.c | 46 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() 435 e->keyid, e->rnext, e->maclen, e->sne, e->matched); in dump_trace_event()
|
D | sock.c | 141 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()
|
D | aolib.h | 372 uint8_t sndid, uint8_t rcvid, uint8_t maclen, 379 uint8_t sndid, uint8_t rcvid, uint8_t maclen, in test_prepare_key() argument 387 maclen, keyflags, keylen, key); in test_prepare_key() 701 int keyid, int rnext, int maclen, int sne); 722 int keyid, int rnext, int maclen) in trace_ao_event_expect() argument 729 keyid, rnext, maclen, -1); in trace_ao_event_expect()
|
/linux-6.12.1/include/trace/events/ |
D | tcp.h | 513 const __u8 keyid, const __u8 rnext, const __u8 maclen), 515 TP_ARGS(sk, skb, keyid, rnext, maclen), 540 __field(__u8, maclen) 569 __entry->maclen = maclen; 583 __entry->keyid, __entry->rnext, __entry->maclen) 588 const __u8 keyid, const __u8 rnext, const __u8 maclen), 589 TP_ARGS(sk, skb, keyid, rnext, maclen) 594 const __u8 keyid, const __u8 rnext, const __u8 maclen), 595 TP_ARGS(sk, skb, keyid, rnext, maclen) 600 const __u8 keyid, const __u8 rnext, const __u8 maclen), [all …]
|
/linux-6.12.1/tools/testing/selftests/net/tcp_ao/ |
D | key-management.c | 414 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() 517 key->maclen, key->matches_client, key->matches_server, in test_key_error() 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() [all …]
|
D | connect-deny.c | 8 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()
|
D | setsockopt-closed.c | 371 ao.maclen = 100; in test_einval_add_key()
|
/linux-6.12.1/include/linux/ |
D | if_vlan.h | 644 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-6.12.1/drivers/infiniband/hw/irdma/ |
D | puda.h | 50 u8 maclen; member 68 u8 maclen; /* mac length in bytes */ member
|
D | puda.c | 467 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()
|
D | utils.c | 1520 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()
|
D | cm.c | 459 sqbuf->maclen = eth_hlen; in irdma_form_uda_cm_frame()
|
/linux-6.12.1/include/net/ |
D | ip_tunnels.h | 467 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()
|
D | tcp_ao.h | 48 u8 maclen; member 67 return key->maclen; in tcp_ao_maclen()
|
/linux-6.12.1/include/uapi/linux/ |
D | tcp.h | 391 __u8 maclen; /* length of authentication code (hash) */ member 454 __u8 maclen; /* out: key's length of authentication member
|
/linux-6.12.1/net/ipv4/ |
D | tcp_ao.c | 906 u8 maclen = tcp_ao_hdr_maclen(aoh); in tcp_ao_verify_hash() local 909 if (maclen != tcp_ao_maclen(key)) { in tcp_ao_verify_hash() 914 aoh->rnext_keyid, maclen); in tcp_ao_verify_hash() 925 if (memcmp(phash, hash_buf, maclen)) { in tcp_ao_verify_hash() 930 aoh->rnext_keyid, maclen); in tcp_ao_verify_hash() 947 u8 maclen = tcp_ao_hdr_maclen(aoh); in tcp_inbound_ao_hash() local 961 aoh->rnext_keyid, maclen); in tcp_inbound_ao_hash() 1071 aoh->rnext_keyid, maclen); in tcp_inbound_ao_hash() 1354 key->maclen = cmd->maclen ?: 12; /* 12 is the default in RFC5925 */ in tcp_ao_parse_crypto() 2275 opt_out.maclen = key->maclen; in tcp_ao_copy_mkts_to_user()
|
D | tcp_output.c | 614 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()
|
D | tcp.c | 4799 u8 keyid, rnext, maclen; in tcp_inbound_hash() local 4804 maclen = tcp_ao_hdr_maclen(aoh); in tcp_inbound_hash() 4806 keyid = rnext = maclen = 0; in tcp_inbound_hash() 4810 trace_tcp_ao_handshake_failure(sk, skb, keyid, rnext, maclen); in tcp_inbound_hash()
|
/linux-6.12.1/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
D | chcr_ktls.c | 993 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-6.12.1/net/core/ |
D | gro.c | 349 unsigned int maclen = skb->dev->hard_header_len; in gro_list_prepare() local 364 if (maclen == ETH_HLEN) in gro_list_prepare() 370 maclen); in gro_list_prepare()
|
/linux-6.12.1/drivers/net/ethernet/sun/ |
D | sunvnet_common.c | 1228 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-6.12.1/net/packet/ |
D | af_packet.c | 2366 unsigned int maclen = skb_network_offset(skb); in tpacket_rcv() local 2368 (maclen < 16 ? 16 : maclen)) + in tpacket_rcv() 2373 macoff = netoff - maclen; in tpacket_rcv()
|
/linux-6.12.1/drivers/crypto/hisilicon/sec2/ |
D | sec_crypto.c | 1205 #define GEN_SEC_AEAD_SETKEY_FUNC(name, aalg, calg, maclen, cmode) \ argument 1209 return sec_aead_setkey(tfm, key, keylen, aalg, calg, maclen, cmode);\
|
/linux-6.12.1/Documentation/networking/ |
D | tcp_ao.rst | 347 keyid, rnext, and maclen. SNE updates include the rolled-over numbers.
|