Home
last modified time | relevance | path

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

/external/toybox/toys/pending/
Dip.c2429 static int tnl_ioctl(char *dev, int rtype, struct ip_tunnel_parm *ptnl) in tnl_ioctl() argument
2434 if ((rtype == SIOCCHGTUNNEL || rtype == SIOCDELTUNNEL) && *ptnl->name) in tnl_ioctl()
2435 xstrncpy(req.ifr_name, ptnl->name, IF_NAMESIZE); in tnl_ioctl()
2438 if (rtype != SIOCGIFHWADDR) req.ifr_ifru.ifru_data = (void*)ptnl; in tnl_ioctl()
2450 static int display_tunnel(struct ip_tunnel_parm *ptnl) in display_tunnel() argument
2454 printf("%s: %s/ip", ptnl->name, ptnl->iph.protocol == IPPROTO_IPIP ? "ip" : in display_tunnel()
2455 (ptnl->iph.protocol == IPPROTO_GRE ? "gre" : in display_tunnel()
2456 (ptnl->iph.protocol == IPPROTO_IPV6 ? "ipv6" : "unknown"))); in display_tunnel()
2457 printf(" remote %s local %s ", ptnl->iph.daddr ? in display_tunnel()
2458 inet_ntop(AF_INET, &ptnl->iph.daddr, rmt_addr, sizeof(rmt_addr)) : "any", in display_tunnel()
[all …]