Home
last modified time | relevance | path

Searched refs:ifobject (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/tools/testing/selftests/bpf/
Dxskxceiver.c229 static void gen_eth_hdr(struct ifobject *ifobject, struct ethhdr *eth_hdr) in gen_eth_hdr() argument
231 memcpy(eth_hdr->h_dest, ifobject->dst_mac, ETH_ALEN); in gen_eth_hdr()
232 memcpy(eth_hdr->h_source, ifobject->src_mac, ETH_ALEN); in gen_eth_hdr()
236 static void gen_ip_hdr(struct ifobject *ifobject, struct iphdr *ip_hdr) in gen_ip_hdr() argument
246 ip_hdr->saddr = ifobject->src_ip; in gen_ip_hdr()
247 ip_hdr->daddr = ifobject->dst_ip; in gen_ip_hdr()
251 static void gen_udp_hdr(u32 payload, void *pkt, struct ifobject *ifobject, in gen_udp_hdr() argument
254 udp_hdr->source = htons(ifobject->src_port); in gen_udp_hdr()
255 udp_hdr->dest = htons(ifobject->dst_port); in gen_udp_hdr()
260 static bool is_umem_valid(struct ifobject *ifobj) in is_umem_valid()
[all …]
Dxskxceiver.h130 struct ifobject;
131 typedef int (*validation_func_t)(struct ifobject *ifobj);
134 struct ifobject { struct
163 struct ifobject *ifobj_tx; argument
164 struct ifobject *ifobj_rx;