Lines Matching defs:table
63 static struct routing table[IPV4_ROUTE_TABLE_SIZE];
308 * Locate a routing table entry based upon arguments. IP addresses expected
318 if (*flagp & table[i].flag)
322 if (destp->s_addr == table[i].dest.s_addr)
328 if (gatewayp->s_addr == table[i].gateway.s_addr)
338 * ADD or DEL a routing table entry. Returns 0 for success, -1 and errno
354 /* initialize routing table */
357 table[index].flag = RT_UNUSED;
365 dprintf("ipv4_route: routing table full.\n");
369 table[index].flag = flag;
371 table[index].dest.s_addr = destp->s_addr;
373 table[index].dest.s_addr = htonl(INADDR_ANY);
374 table[index].gateway.s_addr = gatewayp->s_addr;
385 table[index].flag = RT_UNUSED;
386 table[index].dest.s_addr = htonl(INADDR_ANY);
387 table[index].gateway.s_addr = htonl(INADDR_ANY);
389 table[index].flag = RT_NG;
407 return (&table[index].gateway);
412 * table.
920 * fragment table, and the inetgram (igp) has been