Lines Matching defs:ret
2253 int ret;
2259 if ((ret = idxfromRPDB(*argv, RPDB_rtrealms)) < 0)
2261 realms = ret;
2265 if ((ret = idxfromRPDB(ptr, RPDB_rtrealms)) < 0)
2267 realms |= ret;
2432 int fd, ret = 0;
2441 if (rtype == SIOCGETTUNNEL) ret = ioctl(fd, rtype, &req);
2443 ret = (ioctl(fd, rtype, &req) < 0) ? -1 : req.ifr_addr.sa_family;
2447 return ret;
2507 int ret;
2515 if ((ret = tnl_ioctl(iface, SIOCGIFHWADDR, &iptnl)) < 0) {
2519 if (ret != ARPHRD_TUNNEL && ret != ARPHRD_SIT &&
2520 ret != ARPHRD_IPGRE) continue;
2580 int ret;
2585 ret = getaddrinfo(*argv, NULL, &hint, &info);
2586 if (ret || !info) error_exit("invalid argument to key");
2671 int ret;
2673 if ((ret = idxfromRPDB(*argv, RPDB_rtdsfield)) < 0)
2675 ptnl->iph.tos = ret;
2716 int ret = 0;
2722 ret = tnl_ioctl(*iptnl.name ? iptnl.name : "tunl0", SIOCGETTUNNEL, &iptnl);
2724 ret = tnl_ioctl(*iptnl.name ? iptnl.name : "gre0", SIOCGETTUNNEL, &iptnl);
2726 ret = tnl_ioctl(*iptnl.name ? iptnl.name : "sit0", SIOCGETTUNNEL, &iptnl);
2729 if (ret < 0) {
2731 return ret;