Lines Matching refs:numroutes

81 getipv6routes (struct myroute *myroutes, int *numroutes);
127 int numroutes = 0; in v6_is_local_ip() local
151 if (getipv6routes (myroutes, &numroutes) == 0) in v6_is_local_ip()
153 for (i = 0; i < numroutes; i++) in v6_is_local_ip()
596 getipv4routes (struct myroute *myroutes, int *numroutes) in getipv4routes() argument
653 myroutes[*numroutes].dest6.s6_addr32[0] = 0; in getipv4routes()
654 myroutes[*numroutes].dest6.s6_addr32[1] = 0; in getipv4routes()
655 myroutes[*numroutes].dest6.s6_addr32[2] = htonl (0xffff); in getipv4routes()
656 myroutes[*numroutes].dest6.s6_addr32[3] = inaddr.s_addr; in getipv4routes()
672 myroutes[*numroutes].metric = strtol (p, &endptr, 10); in getipv4routes()
686 myroutes[*numroutes].mask = ones + 96; in getipv4routes()
687 g_debug ("mask is %lu", myroutes[*numroutes].mask); in getipv4routes()
696 *numroutes, iface, myroutes[*numroutes].dest, in getipv4routes()
697 myroutes[*numroutes].mask); in getipv4routes()
701 myroutes[*numroutes].dev = &mydevs[i]; in getipv4routes()
708 (*numroutes)++; in getipv4routes()
709 if (*numroutes >= MAXROUTES) in getipv4routes()
734 getipv6routes (struct myroute *myroutes, int *numroutes) in getipv6routes() argument
778 memcpy (&myroutes[*numroutes].dest6, &in6addr, in getipv6routes()
785 myroutes[*numroutes].mask = strtoul (token, &endptr, 16); in getipv6routes()
797 myroutes[*numroutes].metric = strtoul (token, &endptr, 16); in getipv6routes()
822 myroutes[*numroutes].dev = &mydevs[i]; in getipv6routes()
829 (*numroutes)++; in getipv6routes()
830 if (*numroutes >= MAXROUTES) in getipv6routes()
869 static int numroutes = 0; in v6_routethrough() local
893 if (getipv4routes (myroutes, &numroutes) < 0) in v6_routethrough()
898 if (getipv6routes (myroutes, &numroutes) < 0) in v6_routethrough()
949 for (i = 0; i < numroutes; i++) in v6_routethrough()
1091 static int numroutes = 0; in routethrough() local
1137 myroutes[numroutes].dest = strtoul (p, &endptr, 16); in routethrough()
1158 myroutes[numroutes].metric = strtol (p, &endptr, 10); in routethrough()
1166 myroutes[numroutes].mask = strtoul (p, &endptr, 16); in routethrough()
1175 numroutes, iface, myroutes[numroutes].dest, in routethrough()
1176 myroutes[numroutes].mask); in routethrough()
1180 myroutes[numroutes].dev = &mydevs[i]; in routethrough()
1187 numroutes++; in routethrough()
1188 if (numroutes >= MAXROUTES) in routethrough()
1222 for (i = 0; i < numroutes; i++) in routethrough()