Home
last modified time | relevance | path

Searched refs:PACKET_CB (Results 1 – 4 of 4) sorted by relevance

/drivers/net/wireguard/
Dsend.c145 if (unlikely(!PACKET_CB(skb)->mtu)) in calculate_skb_padding()
154 if (unlikely(last_unit > PACKET_CB(skb)->mtu)) in calculate_skb_padding()
155 last_unit %= PACKET_CB(skb)->mtu; in calculate_skb_padding()
157 padded_size = min(PACKET_CB(skb)->mtu, in calculate_skb_padding()
208 header->counter = cpu_to_le64(PACKET_CB(skb)->nonce); in encrypt_packet()
217 PACKET_CB(skb)->nonce, in encrypt_packet()
232 PACKET_CB(skb)->mtu = skb->dev->mtu; in wg_packet_send_keepalive()
252 PACKET_CB(skb)->ds) && !is_keepalive)) in wg_packet_create_data_done()
270 (state = atomic_read_acquire(&PACKET_CB(first)->state)) != in wg_packet_tx_worker()
273 keypair = PACKET_CB(first)->keypair; in wg_packet_tx_worker()
[all …]
Dreceive.c259 PACKET_CB(skb)->nonce = in decrypt_packet()
279 PACKET_CB(skb)->nonce, in decrypt_packet()
346 PACKET_CB(skb)->keypair))) { in wg_packet_consume_data_done()
389 INET_ECN_decapsulate(skb, PACKET_CB(skb)->ds, ip_hdr(skb)->tos); in wg_packet_consume_data_done()
393 INET_ECN_decapsulate(skb, PACKET_CB(skb)->ds, ipv6_get_dsfield(ipv6_hdr(skb))); in wg_packet_consume_data_done()
452 (state = atomic_read_acquire(&PACKET_CB(skb)->state)) != in wg_packet_rx_poll()
455 keypair = PACKET_CB(skb)->keypair; in wg_packet_rx_poll()
462 PACKET_CB(skb)->nonce))) { in wg_packet_rx_poll()
465 PACKET_CB(skb)->nonce, in wg_packet_rx_poll()
501 likely(decrypt_packet(skb, PACKET_CB(skb)->keypair)) ? in wg_packet_decrypt_worker()
[all …]
Dqueueing.h67 #define PACKET_CB(skb) ((struct packet_cb *)((skb)->cb)) macro
68 #define PACKET_PEER(skb) (PACKET_CB(skb)->keypair->entry.peer)
163 atomic_set_release(&PACKET_CB(skb)->state, PACKET_STATE_UNCRYPTED); in wg_queue_enqueue_per_device_and_peer()
187 atomic_set_release(&PACKET_CB(skb)->state, state); in wg_queue_enqueue_per_peer_tx()
200 atomic_set_release(&PACKET_CB(skb)->state, state); in wg_queue_enqueue_per_peer_rx()
Ddevice.c201 PACKET_CB(skb)->mtu = mtu; in wg_xmit()