Lines Matching defs:interface
98 OMAPI_OBJECT_ALLOC (interface, struct interface_info, dhcp_type_interface)
104 "interface",
117 log_fatal ("Can't register interface object type: %s",
126 interface_trace = trace_type_register ("interface", (void *)0,
164 * NOTE: the long-term goal is to use the interface code from BIND 9.
228 * Solaris' extended interface is documented in the if_tcp man page.
238 int next; /* next interface to retrieve when iterating */
242 * Structure used to return information about a specific interface.
245 char name[IF_NAMESIZE+1]; /* name of the interface, e.g. "bge0" */
247 isc_uint64_t flags; /* interface flags, e.g. IFF_LOOPBACK */
297 log_fatal("Out of memory getting interface list.");
314 * Retrieve the next interface.
325 /* Pointer used to remove interface aliases. */
346 /* Reject if interface address family does not match */
357 /* interface aliases look like "eth0:1" or "wlan1:3" */
371 log_error("Error getting interface flags for '%s'; %m",
416 * Structure used to return information about a specific interface.
419 char name[IFNAMSIZ]; /* name of the interface, e.g. "bge0" */
421 isc_uint64_t flags; /* interface flags, e.g. IFF_LOOPBACK */
440 * Retrieve the next interface.
500 * We don't expect a lot of addresses per IPv4 interface, so
507 "on interface.");
519 "on interface.");
537 * Each IPv6 interface will have at least two IPv6 addresses,
545 "on interface.");
557 "on interface.");
571 For each interface that's of type INET and not the loopback interface,
572 register that interface with the network I/O software, figure out what
624 /* See if we've seen an interface that matches this one. */
646 /* If there isn't already an interface by this name,
651 log_fatal("Error allocating interface %s: %s",
671 /* We don't want the loopback interface. */
679 shouldn't consider the interface configured. */
699 /* We don't want the loopback interface. */
707 shouldn't consider the interface configured. */
724 log_fatal("Error getting interface information.");
731 * new interface-sensing code, but is used in higher layers
797 /* Remember the interface in case we need to know
812 /* We must have a subnet declaration for each interface. */
848 "which interface",
868 /* Find subnets that don't have valid interface
874 /* Set the interface address for this subnet
888 log_error("%s missing an interface "
896 interface registerer can set it or not as it chooses. */
899 /* Register the interface... */
951 * We register with omapi to allow for control of the interface,
973 * socket as long as we find an interface.
1012 /* Only register the first interface for V6, since
1068 log_fatal ("Error allocating fallback interface: %s",
1144 * Seek forward from the first interface to find the matching
1145 * source interface by interface index.
1194 /* 0 is 'any' interface. */
1211 /* Seek forward to find the matching source interface. */
1233 struct interface_info *interface;
1238 interface = (struct interface_info *)h;
1243 value -> u.buffer.len < sizeof interface -> name) {
1244 memcpy (interface -> name,
1247 interface -> name [value -> u.buffer.len] = 0;
1276 struct interface_info *interface;
1280 interface = (struct interface_info *)h;
1282 if (interface -> ifp) {
1283 dfree (interface -> ifp, file, line);
1284 interface -> ifp = 0;
1286 if (interface -> next)
1287 interface_dereference (&interface -> next, file, line);
1288 if (interface -> rbuf) {
1289 dfree (interface -> rbuf, file, line);
1290 interface -> rbuf = (unsigned char *)0;
1292 if (interface -> client)
1293 interface -> client = (struct client_state *)0;
1295 if (interface -> shared_network)
1297 &interface -> shared_network, MDL);
1305 struct interface_info *ip, *interface;
1310 interface = (struct interface_info *)h;
1312 /* If it's an update signal, see if the interface is dead right
1316 if (ip == interface)
1322 if (ip == interface)
1342 struct interface_info *interface;
1347 interface = (struct interface_info *)h;
1354 if ((interface->flags & INTERFACE_REQUESTED) != 0)
1378 struct interface_info *interface;
1399 /* Now look for an interface name. */
1404 for (interface = interfaces; interface;
1405 interface = interface -> next) {
1406 s = memchr (interface -> name, 0, IFNAMSIZ);
1408 len = s - &interface -> name [0];
1412 !memcmp (interface -> name,
1417 if (!interface) {
1418 for (interface = dummy_interfaces;
1419 interface; interface = interface -> next) {
1420 s = memchr (interface -> name, 0, IFNAMSIZ);
1422 len = s - &interface -> name [0];
1426 !memcmp (interface -> name,
1435 if (*ip && *ip != (omapi_object_t *)interface) {
1438 } else if (!interface) {
1444 (omapi_object_t *)interface,
1448 /* If we get to here without finding an interface, no valid key was
1455 /* actually just go discover the interface */
1475 struct interface_info *interface, *ip, *last;
1477 interface = (struct interface_info *)lp;
1482 if (ip == interface) {
1503 /* add the interface to the dummy_interface list */
1505 interface_reference (&interface -> next,
1509 interface_reference (&dummy_interfaces, interface, MDL);
1513 (*dhcp_interface_shutdown_hook) (interface);
1516 omapi_unregister_io_object ((omapi_object_t *)interface);
1521 if_deregister6(interface);
1526 if_deregister_send(interface);
1527 if_deregister_receive(interface);