Home
last modified time | relevance | path

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

/external/toybox/toys/pending/
Dip.c2323 static int tnl_ioctl(char *dev, int rtype, struct ip_tunnel_parm *ptnl) in tnl_ioctl() argument
2328 if ((rtype == SIOCCHGTUNNEL || rtype == SIOCDELTUNNEL) && *ptnl->name) in tnl_ioctl()
2329 xstrncpy(req.ifr_name, ptnl->name, IF_NAMESIZE); in tnl_ioctl()
2332 if (rtype != SIOCGIFHWADDR) req.ifr_ifru.ifru_data = (void*)ptnl; in tnl_ioctl()
2344 static int display_tunnel(struct ip_tunnel_parm *ptnl) in display_tunnel() argument
2348 printf("%s: %s/ip", ptnl->name, ptnl->iph.protocol == IPPROTO_IPIP ? "ip" : in display_tunnel()
2349 (ptnl->iph.protocol == IPPROTO_GRE ? "gre" : in display_tunnel()
2350 (ptnl->iph.protocol == IPPROTO_IPV6 ? "ipv6" : "unknown"))); in display_tunnel()
2351 printf(" remote %s local %s ", ptnl->iph.daddr ? in display_tunnel()
2352 inet_ntop(AF_INET, &ptnl->iph.daddr, rmt_addr, sizeof(rmt_addr)) : "any", in display_tunnel()
[all …]