Lines Matching defs:skb4
33 static __init int timings_test(struct sk_buff *skb4, struct iphdr *hdr4,
51 if (wg_ratelimiter_allow(skb4, &init_net) !=
60 if (!wg_ratelimiter_allow(skb4, &init_net))
97 static __init int capacity_test(struct sk_buff *skb4, struct iphdr *hdr4,
111 if (wg_ratelimiter_allow(skb4, &init_net) != (i != max_entries))
123 struct sk_buff *skb4, *skb6 = NULL;
147 skb4 = alloc_skb(sizeof(struct iphdr), GFP_KERNEL);
148 if (unlikely(!skb4))
150 skb4->protocol = htons(ETH_P_IP);
151 hdr4 = (struct iphdr *)skb_put(skb4, sizeof(*hdr4));
153 skb_reset_network_header(skb4);
159 kfree_skb(skb4);
173 ret = timings_test(skb4, hdr4, skb6, hdr6, &test_count);
192 if (capacity_test(skb4, hdr4, &test_count) < 0) {
206 kfree_skb(skb4);