Home
last modified time | relevance | path

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

/linux/drivers/net/wireguard/selftest/
H 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/net/netlabel/
H A Dnetlabel_kapi.c1308 struct iphdr *hdr4; in netlbl_skbuff_setattr() local
1317 hdr4 = ip_hdr(skb); in netlbl_skbuff_setattr()
1319 hdr4->daddr); in netlbl_skbuff_setattr()
H 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/net/mpls/
H A Daf_mpls.c295 struct iphdr *hdr4 = ip_hdr(skb); in mpls_egress() local
308 new_ttl = hdr4->ttl ? hdr4->ttl - 1 : 0; in mpls_egress()
310 csum_replace2(&hdr4->check, in mpls_egress()
311 htons(hdr4->ttl << 8), in mpls_egress()
313 hdr4->ttl = new_ttl; in mpls_egress()