Lines Matching refs:interface

56 static struct interface *ahash_tbl[AHASH_LEN];
60 static struct interface *bhash_tbl[BHASH_LEN];
63 /* hash for physical interface names.
68 static struct interface *nhash_tbl[NHASH_LEN];
82 int have_ripv1_out; /* have a RIPv1 interface */
86 static void if_bad(struct interface *);
87 static int addrouteforif(struct interface *);
89 static struct interface**
102 /* Link a new interface into the lists and hash tables.
105 if_link(struct interface *ifp)
107 struct interface **hifp;
141 /* Find the interface with an address
143 struct interface *
148 struct interface *ifp, *possible = NULL;
179 /* find the interface with a name
181 static struct interface *
185 struct interface *ifp;
191 * for the interface with the target name and address.
199 /* If there is no known interface, maybe there is a
200 * new interface. So just once look for new interfaces.
209 struct interface *
213 struct interface *ifp;
221 /* If there is no known interface, maybe there is a
222 * new interface. So just once look for new interfaces.
232 /* Find an interface from which the specified address
234 * interface a packet came in on.
236 struct interface *
239 struct interface *ifp, *maybe;
268 /* If there is no known interface, maybe there is a
269 * new interface. So just once look for new interfaces.
294 * on the given interface for a given network.
295 * If no interface is specified, look for the best fitting interface.
299 struct interface *ifp) /* as seen on this interface */
308 /* If the target network is that of the associated interface
309 * on which it arrived, then use the netmask of the interface.
316 * to have the same network number of an interface, use the
317 * netmask of that interface. If there is more than one
318 * such interface, prefer the interface with the longest
350 struct interface *ifp) /* as seen on this interface */
383 /* See a new interface duplicates an existing interface.
385 struct interface *
391 struct interface *ifp;
419 check_remote(struct interface *ifp)
446 /* Delete an interface.
449 ifdel(struct interface *ifp)
451 struct interface *ifp1;
474 /* delete aliases when the main interface dies
512 /* Zap all routes associated with this interface.
513 * Assume routes just using gateways beyond this interface
526 /* Mark an interface ill.
529 if_sick(struct interface *ifp)
541 /* Mark an interface dead.
544 if_bad(struct interface *ifp)
546 struct interface *ifp1;
573 /* Mark an interface alive
576 if_ok(struct interface *ifp,
579 struct interface *ifp1;
659 struct interface ifs, ifs0, *ifp, *ifp1;
683 /* Fetch the interface list, without too many system calls
753 /* Prepare for the next address of this interface, which
873 /* Use a minimum metric of one. Treat the interface metric
877 * interface addresses is wrong. It is not set by the
901 /* See if this is a familiar interface.
925 * a changed interface.
927 trace_act("interface %s has changed",
945 msglog("interface %s to %s turned off",
952 trace_act("interface %s has been off"
969 * see if the interface is broken.
988 /* If the interface just awoke, restart the counters.
997 * counters wrap or the interface is reset.
1016 trace_act("interface %s to %s"
1026 msglog("interface %s to %s broken:"
1043 /* This is a new interface.
1049 /* If it duplicates an existing interface,
1094 ifp = (struct interface *)rtmalloc(sizeof(*ifp), "ifinit ifp");
1186 trace_act("interface %s has disappeared",
1196 /* If we ever have a RIPv1 interface, assume we always will.
1273 check_net_syn(struct interface *ifp)
1280 * for this interface only if we are running RIPv1 on some other
1281 * interface that is on a different class-A,B,or C network.
1315 /* Add route for interface if not currently installed.
1319 static int /* 0=bad interface */
1320 addrouteforif(struct interface *ifp)
1332 /* If the interface on a subnet, then install a RIPv1 route to
1356 /* We are finished if the correct main interface route exists.
1357 * The right route must be for the right interface, not synthesized
1378 trace_act("re-install interface %s",