Home
last modified time | relevance | path

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

/external/iproute2/ip/
Dtunnel.c68 int tnl_get_ioctl(const char *basedev, void *p) in tnl_get_ioctl() argument
74 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); in tnl_get_ioctl()
85 fprintf(stderr, "get tunnel \"%s\" failed: %s\n", basedev, in tnl_get_ioctl()
92 int tnl_add_ioctl(int cmd, const char *basedev, const char *name, void *p) in tnl_add_ioctl() argument
101 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); in tnl_add_ioctl()
118 int tnl_del_ioctl(const char *basedev, const char *name, void *p) in tnl_del_ioctl() argument
127 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); in tnl_del_ioctl()
Dtunnel.h28 int tnl_get_ioctl(const char *basedev, void *p);
29 int tnl_add_ioctl(int cmd, const char *basedev, const char *name, void *p);
30 int tnl_del_ioctl(const char *basedev, const char *name, void *p);
Dip6tunnel.c414 const char *basedev = "ip6tnl0"; in do_add() local
422 basedev = "ip6gre0"; in do_add()
424 basedev = "ip6_vti0"; in do_add()
426 return tnl_add_ioctl(cmd, basedev, p.name, &p); in do_add()
432 const char *basedev = "ip6tnl0"; in do_del() local
440 basedev = "ip6gre0"; in do_del()
442 basedev = "ip6_vti0"; in do_del()
444 return tnl_del_ioctl(basedev, p.name, &p); in do_del()
Diptunnel.c267 const char *basedev; in do_add() local
277 basedev = tnl_defname(&p); in do_add()
278 if (!basedev) { in do_add()
284 return tnl_add_ioctl(cmd, basedev, p.name, &p); in do_add()
453 const char *basedev; in do_show() local
459 basedev = tnl_defname(&p); in do_show()
460 if (!basedev) in do_show()
463 if (tnl_get_ioctl(p.name[0] ? p.name : basedev, &p)) in do_show()