Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/net/wireguard/selftest/
A Dratelimiter.c33 static __init int timings_test(struct sk_buff *skb4, struct iphdr *hdr4, in timings_test() argument
56 hdr4->saddr = htonl(ntohl(hdr4->saddr) + i + 1); in timings_test()
64 hdr4->saddr = htonl(ntohl(hdr4->saddr) - i - 1); in timings_test()
97 static __init int capacity_test(struct sk_buff *skb4, struct iphdr *hdr4, in capacity_test() argument
110 hdr4->saddr = htonl(i); in capacity_test()
124 struct iphdr *hdr4; in wg_ratelimiter_selftest() local
151 hdr4 = (struct iphdr *)skb_put(skb4, sizeof(*hdr4)); in wg_ratelimiter_selftest()
152 hdr4->saddr = htonl(8182); in wg_ratelimiter_selftest()
173 ret = timings_test(skb4, hdr4, skb6, hdr6, &test_count); in wg_ratelimiter_selftest()
192 if (capacity_test(skb4, hdr4, &test_count) < 0) { in wg_ratelimiter_selftest()
/linux-6.3-rc2/net/netlabel/
A Dnetlabel_kapi.c1282 struct iphdr *hdr4; in netlbl_skbuff_setattr() local
1291 hdr4 = ip_hdr(skb); in netlbl_skbuff_setattr()
1293 hdr4->daddr); in netlbl_skbuff_setattr()
A Dnetlabel_unlabeled.c1482 struct iphdr *hdr4; in netlbl_unlabel_getattr() local
1485 hdr4 = ip_hdr(skb); in netlbl_unlabel_getattr()
1486 addr4 = netlbl_af4list_search(hdr4->saddr, in netlbl_unlabel_getattr()
/linux-6.3-rc2/net/mpls/
A Daf_mpls.c294 struct iphdr *hdr4 = ip_hdr(skb); in mpls_egress() local
307 new_ttl = hdr4->ttl ? hdr4->ttl - 1 : 0; in mpls_egress()
309 csum_replace2(&hdr4->check, in mpls_egress()
310 htons(hdr4->ttl << 8), in mpls_egress()
312 hdr4->ttl = new_ttl; in mpls_egress()

Completed in 13 milliseconds