| /linux-6.15/tools/testing/selftests/net/tcp_ao/lib/ |
| H A 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() 432 e->keyid, e->rnext, e->maclen, e->sne, e->matched); in dump_trace_event()
|
| H A D | sock.c | 212 uint8_t maclen, uint8_t keyflags, in test_prepare_key_sockaddr() argument 222 ao->maclen = maclen; in test_prepare_key_sockaddr() 324 if (a->maclen) { in test_cmp_getsockopt_setsockopt() 325 __cmp_ao(maclen); in test_cmp_getsockopt_setsockopt() 326 } else if (b->maclen != 12) { in test_cmp_getsockopt_setsockopt() 328 b->maclen); in test_cmp_getsockopt_setsockopt()
|
| H A D | aolib.h | 374 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() 768 int keyid, int rnext, int maclen, int sne); 789 int keyid, int rnext, int maclen) in trace_ao_event_expect() argument 796 keyid, rnext, maclen, -1); in trace_ao_event_expect()
|
| /linux-6.15/include/trace/events/ |
| H A D | tcp.h | 519 const __u8 keyid, const __u8 rnext, const __u8 maclen), 521 TP_ARGS(sk, skb, keyid, rnext, maclen), 546 __field(__u8, maclen) 575 __entry->maclen = maclen; 589 __entry->keyid, __entry->rnext, __entry->maclen) 594 const __u8 keyid, const __u8 rnext, const __u8 maclen), 595 TP_ARGS(sk, skb, keyid, rnext, maclen) 601 TP_ARGS(sk, skb, keyid, rnext, maclen) 607 TP_ARGS(sk, skb, keyid, rnext, maclen) 613 TP_ARGS(sk, skb, keyid, rnext, maclen) [all …]
|
| /linux-6.15/tools/testing/selftests/net/tcp_ao/ |
| H A 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() 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 D | connect-deny.c | 9 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 D | setsockopt-closed.c | 373 ao.maclen = 100; in test_einval_add_key()
|
| /linux-6.15/include/linux/ |
| H A D | if_vlan.h | 661 int maclen; in vlan_get_protocol_and_depth() local 663 type = __vlan_get_protocol(skb, type, &maclen); in vlan_get_protocol_and_depth() 666 if (!pskb_may_pull(skb, maclen)) in vlan_get_protocol_and_depth() 669 *depth = maclen; in vlan_get_protocol_and_depth()
|
| /linux-6.15/drivers/infiniband/hw/irdma/ |
| H A D | puda.h | 50 u8 maclen; member 68 u8 maclen; /* mac length in bytes */ member
|
| H A 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() 1220 txbuf->maclen = buf->maclen; in irdma_ieq_setup_tx_buf()
|
| H A D | utils.c | 1406 iph = (struct iphdr *)(addr + buf->maclen); in irdma_gen1_ieq_update_tcpip_info() 1407 tcph = (struct tcphdr *)(addr + buf->maclen + iphlen); in irdma_gen1_ieq_update_tcpip_info() 1456 buf->maclen = (info->vlan_valid) ? 18 : 14; in irdma_gen1_puda_get_tcpip_info() 1459 buf->iph = mem + buf->maclen; in irdma_gen1_puda_get_tcpip_info() 1471 buf->totallen = pkt_len + buf->maclen; in irdma_gen1_puda_get_tcpip_info() 1483 buf->hdrlen = buf->maclen + iphlen + buf->tcphlen; in irdma_gen1_puda_get_tcpip_info()
|
| H A D | cm.c | 459 sqbuf->maclen = eth_hlen; in irdma_form_uda_cm_frame()
|
| /linux-6.15/include/net/ |
| H A D | ip_tunnels.h | 475 int nhlen = 0, maclen = inner_proto_inherit ? 0 : ETH_HLEN; in skb_vlan_inet_prepare() local 483 type = __vlan_get_protocol(skb, type, &maclen); in skb_vlan_inet_prepare() 498 reason = pskb_may_pull_reason(skb, maclen + nhlen); in skb_vlan_inet_prepare() 502 skb_set_network_header(skb, maclen); in skb_vlan_inet_prepare()
|
| H A D | tcp_ao.h | 48 u8 maclen; member 67 return key->maclen; in tcp_ao_maclen()
|
| /linux-6.15/net/ipv4/ |
| H A D | tcp_ao.c | 907 u8 maclen = tcp_ao_hdr_maclen(aoh); in tcp_ao_verify_hash() local 910 if (maclen != tcp_ao_maclen(key)) { in tcp_ao_verify_hash() 915 aoh->rnext_keyid, maclen); in tcp_ao_verify_hash() 926 if (memcmp(phash, hash_buf, maclen)) { in tcp_ao_verify_hash() 931 aoh->rnext_keyid, maclen); in tcp_ao_verify_hash() 948 u8 maclen = tcp_ao_hdr_maclen(aoh); in tcp_inbound_ao_hash() local 962 aoh->rnext_keyid, maclen); in tcp_inbound_ao_hash() 1072 aoh->rnext_keyid, maclen); in tcp_inbound_ao_hash() 1355 key->maclen = cmd->maclen ?: 12; /* 12 is the default in RFC5925 */ in tcp_ao_parse_crypto() 2279 opt_out.maclen = key->maclen; in tcp_ao_copy_mkts_to_user()
|
| H A D | tcp_output.c | 619 u8 maclen = tcp_ao_maclen(key->ao_key); in process_tcp_ao_options() local 622 u8 aolen = maclen + sizeof(struct tcp_ao_hdr); in process_tcp_ao_options() 642 ptr += maclen / sizeof(*ptr); in process_tcp_ao_options() 643 if (unlikely(maclen % sizeof(*ptr))) { in process_tcp_ao_options()
|
| H A D | tcp.c | 4856 u8 keyid, rnext, maclen; in tcp_inbound_hash() local 4861 maclen = tcp_ao_hdr_maclen(aoh); in tcp_inbound_hash() 4863 keyid = rnext = maclen = 0; in tcp_inbound_hash() 4867 trace_tcp_ao_handshake_failure(sk, skb, keyid, rnext, maclen); in tcp_inbound_hash()
|
| /linux-6.15/include/uapi/linux/ |
| H A D | tcp.h | 397 __u8 maclen; /* length of authentication code (hash) */ member 460 __u8 maclen; /* out: key's length of authentication member
|
| /linux-6.15/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
| H A 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.15/net/core/ |
| H A D | gro.c | 345 unsigned int maclen = skb->dev->hard_header_len; in gro_list_prepare() local 360 if (maclen == ETH_HLEN) in gro_list_prepare() 366 maclen); in gro_list_prepare()
|
| /linux-6.15/drivers/net/ethernet/sun/ |
| H A 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.15/net/packet/ |
| H A D | af_packet.c | 2353 unsigned int maclen = skb_network_offset(skb); in tpacket_rcv() local 2355 (maclen < 16 ? 16 : maclen)) + in tpacket_rcv() 2360 macoff = netoff - maclen; in tpacket_rcv()
|
| /linux-6.15/Documentation/networking/ |
| H A D | tcp_ao.rst | 347 keyid, rnext, and maclen. SNE updates include the rolled-over numbers.
|