Lines Matching refs:interface

55 static void rtbad(struct rt_entry *, struct interface *);
58 static struct interface *gwkludge_iflookup(in_addr_t, in_addr_t, in_addr_t);
59 static struct interface *lifp_iflookup(in_addr_t, const char *);
317 struct interface *ifp,
329 struct interface *xifp;
428 * with the same nexthop and interface.
457 * for an interface.
798 struct interface *ifp,
905 struct interface *ifp, struct khash ***ppk)
924 * off of a given interface.
928 struct interface *ifp, struct khash ***ppk)
945 kern_add(in_addr_t dst, uint32_t mask, in_addr_t gate, struct interface *ifp)
967 /* delete all khash entries that are wired through the interface ifp */
969 kern_flush_ifp(struct interface *ifp)
996 kern_rewire_ifp(struct interface *oldifp, struct interface *newifp)
1019 kern_check_static(struct khash *k, struct interface *ifp)
1069 * RTM_CHANGE of interface routes
1117 struct interface *ifptr)
1120 struct interface *ifp = ifptr;
1135 * Find the interface toward the gateway.
1200 * so delete it if it came via an unknown interface
1201 * or the interface does not have special permission.
1210 ifp ? ifp->int_name : "unknown interface");
1217 ifp ? ifp->int_name : "unknown interface");
1295 * useful. If it is not already useful, but it specifies an interface,
1302 struct interface *ifp;
1352 struct interface *ifp;
1497 (void) fprintf(stderr, " found interface"
1520 * Note static routes and interface routes, and also
1571 struct interface *ifp;
1626 " for unknown interface index #%d",
1631 " for unknown interface %s",
1644 * After being informed of a change to an interface,
1646 * be a long time from now, if the interface is
1647 * not known, or if the interface has been turned
1793 /* Horrible interface here */
1883 struct interface *ifp;
1928 * Must delete bad interface routes etc.
1996 /* Do not clobber kernel if this is a route for a dead interface */
2001 /* This is an ordinary route, not for an interface. */
2019 * This is an interface route.
2036 * If it is not an interface, or an alias for an interface,
2039 * If it is a "remote" interface, it is also a "gateway" to
2105 /* Do not touch local interface routes */
2178 struct interface *ifp, int gone)
2400 * If the interface state of the new primary route is good,
2525 * If the route has gone bad because of a bad interface,
2526 * the information about the dead interface is available in badifp
2530 rtbad(struct rt_entry *rt, struct interface *badifp)
2567 * unless it is needed by another interface.
2570 rtbad_sub(struct rt_entry *rt, struct interface *badifp)
2572 struct interface *ifp, *ifp1;
2582 * Is this the route through loopback for the interface?
2584 * as a point-to-point interface with the same local address.
2587 /* Retain it if another interface needs it. */
2600 * interface that justifies it.
2647 /* fix any spare routes through the interface */
2663 * finished if it has been handled before or if its interface is ok
2674 rtbad(RT, (struct interface *)argp);
2679 rtbad_sub(RT, (struct interface *)argp);
2685 * Called while walking the table to replace a duplicate interface
2696 /* fix any spare routes through the interface */
2726 struct interface *ifp;
2801 struct interface *ifp;
2823 /* Restore remote interface that has become reachable */
2830 "remote interface %s to %s timed out after"
2879 static struct interface *
2883 struct interface *ifp;
2899 * Lookup logical interface structure given the gateway address.
2902 static struct interface *
2906 struct interface *ifp;
2907 struct interface *best = NULL;
2916 (void) fprintf(stderr, " checking interface"