| /linux/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/include/trace/events/ |
| H A D | tcp.h | 616 const __u8 keyid, const __u8 rnext, const __u8 maclen), 618 TP_ARGS(sk, skb, keyid, rnext, maclen), 643 __field(__u8, maclen) 672 __entry->maclen = maclen; 686 __entry->keyid, __entry->rnext, __entry->maclen) 691 const __u8 keyid, const __u8 rnext, const __u8 maclen), 692 TP_ARGS(sk, skb, keyid, rnext, maclen) 698 const __u8 keyid, const __u8 rnext, const __u8 maclen), 699 TP_ARGS(sk, skb, keyid, rnext, maclen) 704 const __u8 keyid, const __u8 rnext, const __u8 maclen), [all …]
|
| /linux/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() 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 …]
|
| 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/include/net/ |
| H A D | ip_tunnels.h | 476 int nhlen = 0, maclen = inner_proto_inherit ? 0 : ETH_HLEN; in skb_vlan_inet_prepare() local 484 type = __vlan_get_protocol(skb, type, &maclen); in skb_vlan_inet_prepare() 499 reason = pskb_may_pull_reason(skb, maclen + nhlen); in skb_vlan_inet_prepare() 503 skb_set_network_header(skb, maclen); in skb_vlan_inet_prepare()
|
| /linux/net/ipv4/ |
| H A 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() 1356 key->maclen = cmd->maclen ?: 12; /* 12 is the default in RFC5925 */ in tcp_ao_parse_crypto() 2280 opt_out.maclen = key->maclen; in tcp_ao_copy_mkts_to_user()
|
| H A D | tcp_output.c | 581 u8 maclen = tcp_ao_maclen(key->ao_key); in process_tcp_ao_options() local 584 u8 aolen = maclen + sizeof(struct tcp_ao_hdr); in process_tcp_ao_options() 604 ptr += maclen / sizeof(*ptr); in process_tcp_ao_options() 605 if (unlikely(maclen % sizeof(*ptr))) { in process_tcp_ao_options()
|
| H A D | tcp.c | 4952 u8 keyid, rnext, maclen; in tcp_inbound_hash() 4957 maclen = tcp_ao_hdr_maclen(aoh); in tcp_inbound_hash() 4959 keyid = rnext = maclen = 0; in tcp_inbound_hash() 4963 trace_tcp_ao_handshake_failure(sk, skb, keyid, rnext, maclen); in tcp_inbound_hash() 4939 u8 keyid, rnext, maclen; tcp_inbound_hash() local
|
| /linux/net/core/ |
| H A D | gro.c | 346 unsigned int maclen = skb->dev->hard_header_len; in gro_list_prepare() local 361 if (maclen == ETH_HLEN) in gro_list_prepare() 367 maclen); in gro_list_prepare()
|
| /linux/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/drivers/infiniband/hw/irdma/ |
| 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() 1204 txbuf->maclen = buf->maclen; in irdma_ieq_setup_tx_buf()
|
| H A D | utils.c | 1505 iph = (struct iphdr *)(addr + buf->maclen); in irdma_gen1_ieq_update_tcpip_info() 1506 tcph = (struct tcphdr *)(addr + buf->maclen + iphlen); in irdma_gen1_ieq_update_tcpip_info() 1555 buf->maclen = (info->vlan_valid) ? 18 : 14; in irdma_gen1_puda_get_tcpip_info() 1558 buf->iph = mem + buf->maclen; in irdma_gen1_puda_get_tcpip_info() 1570 buf->totallen = pkt_len + buf->maclen; in irdma_gen1_puda_get_tcpip_info() 1582 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/Documentation/networking/ |
| H A D | tcp_ao.rst | 347 keyid, rnext, and maclen. SNE updates include the rolled-over numbers.
|