Home
last modified time | relevance | path

Searched refs:IFNAMSIZ (Results 1 – 16 of 16) sorted by relevance

/tools/testing/selftests/bpf/progs/
A Dbind4_prog.c22 #ifndef IFNAMSIZ
23 #define IFNAMSIZ 16 macro
28 char veth1[IFNAMSIZ] = "test_sock_addr1"; in bind_to_device()
29 char veth2[IFNAMSIZ] = "test_sock_addr2"; in bind_to_device()
30 char missing[IFNAMSIZ] = "nonexistent_dev"; in bind_to_device()
31 char del_bind[IFNAMSIZ] = ""; in bind_to_device()
A Dbind6_prog.c28 #ifndef IFNAMSIZ
29 #define IFNAMSIZ 16 macro
34 char veth1[IFNAMSIZ] = "test_sock_addr1"; in bind_to_device()
35 char veth2[IFNAMSIZ] = "test_sock_addr2"; in bind_to_device()
36 char missing[IFNAMSIZ] = "nonexistent_dev"; in bind_to_device()
37 char del_bind[IFNAMSIZ] = ""; in bind_to_device()
A Dconnect4_prog.c29 #ifndef IFNAMSIZ
30 #define IFNAMSIZ 16 macro
91 char veth1[IFNAMSIZ] = "test_sock_addr1"; in bind_to_device()
92 char veth2[IFNAMSIZ] = "test_sock_addr2"; in bind_to_device()
93 char missing[IFNAMSIZ] = "nonexistent_dev"; in bind_to_device()
94 char del_bind[IFNAMSIZ] = ""; in bind_to_device()
A Dtype_cast.c16 #define IFNAMSIZ 16 macro
19 char name[IFNAMSIZ];
32 __builtin_memcpy(name, dev->name, IFNAMSIZ); in md_xdp()
A Dbpf_tracing_net.h92 #define IFNAMSIZ 16 macro
A Dsetget_sockopt.c13 const volatile char veth[IFNAMSIZ];
/tools/testing/selftests/net/
A Dtun.c92 rta->rta_len = RTA_LENGTH(IFNAMSIZ); in tun_delete()
94 memcpy(RTA_DATA(rta), dev, IFNAMSIZ); in tun_delete()
107 char ifname[IFNAMSIZ]; in FIXTURE()
A Dhwtstamp_config.c95 if ((argc != 2 && argc != 4) || (strlen(argv[1]) >= IFNAMSIZ)) { in main()
A Dskf_net_off.c68 strncpy(ifr.ifr_name, tun_name, IFNAMSIZ - 1); in tun_open()
A Dtimestamping.c342 if (if_len >= IFNAMSIZ) { in main()
/tools/virtio/
A Dvhost_net_test.c75 strncpy(ifr.ifr_name, tun_name, IFNAMSIZ); in tun_alloc()
109 strncpy(ifr.ifr_name, tun_name, IFNAMSIZ); in vdev_create_socket()
479 char tun_name[IFNAMSIZ]; in main()
518 snprintf(tun_name, IFNAMSIZ, "tun_%d", getpid()); in main()
/tools/testing/selftests/bpf/prog_tests/
A Dbpf_qdisc.c176 char default_qdisc[IFNAMSIZ] = {}; in test_default_qdisc_attach_to_mq()
A Dtc_redirect.c1098 strncpy(ifr.ifr_name, name, IFNAMSIZ); in tun_open()
/tools/testing/selftests/net/can/
A Dtest_raw_filter.c26 char CANIF[IFNAMSIZ];
/tools/testing/selftests/bpf/
A Dnetwork_helpers.c578 strncpy(ifr.ifr_name, dev_name, IFNAMSIZ - 1); in open_tuntap()
579 ifr.ifr_name[IFNAMSIZ - 1] = '\0'; in open_tuntap()
/tools/testing/selftests/net/ovpn/
A Dovpn-cli.c121 char ifname[IFNAMSIZ];
2126 strscpy(ovpn->ifname, argv[2], IFNAMSIZ - 1); in ovpn_parse_cmd_args()
2127 ovpn->ifname[IFNAMSIZ - 1] = '\0'; in ovpn_parse_cmd_args()

Completed in 31 milliseconds