| commit | ab2125e6a79efd51e54eb0c8b252b86eb90a5f6e | [log] [tgz] | 
|---|---|---|
| author | Geliang Tang <tanggeliang@kylinos.cn> | Tue Jul 23 17:58:03 2024 +0800 | 
| committer | Geliang Tang <tanggeliang@kylinos.cn> | Tue Jul 23 21:33:10 2024 +0800 | 
| tree | 75df3ea48115286c2ce02b4b8387e0c3dc26f0ba | |
| parent | 6c7824fbd517d97be40efd15a380dc180ca72651 [diff] | 
selftests/bpf: Use send_to_addr_str in xdp_bonding The first user of send_to_addr_str() is send_udp_packets() in xdp_bonding. Use sprintf() to generate "addr_str" string from ifindex, sll_halen and sll_addr, and pass it to send_to_addr_str(). Since IPPROTO_ICMP is used, set it as opts.proto and pass opts to the helper too. Use ASSERT_OK_FD() to check the return fd of send_to_addr_str(). Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>