Lines Matching refs:itf
525 interface_dump(const endpt *itf)
527 printf("Dumping interface: %p\n", itf);
528 printf("fd = %lld\n", (long long)itf->fd);
529 printf("bfd = %lld\n", (long long)itf->bfd);
530 printf("sin = %s,\n", stoa(&itf->sin));
531 sockaddr_dump(&itf->sin);
532 printf("bcast = %s,\n", stoa(&itf->bcast));
533 sockaddr_dump(&itf->bcast);
534 printf("mask = %s,\n", stoa(&itf->mask));
535 sockaddr_dump(&itf->mask);
536 printf("name = %s\n", itf->name);
537 printf("flags = 0x%08x\n", itf->flags);
538 printf("last_ttl = %d\n", itf->last_ttl);
539 printf("addr_refid = %08x\n", itf->addr_refid);
540 printf("num_mcast = %d\n", itf->num_mcast);
541 printf("received = %ld\n", itf->received);
542 printf("sent = %ld\n", itf->sent);
543 printf("notsent = %ld\n", itf->notsent);
544 printf("ifindex = %u\n", itf->ifindex);
545 printf("peercnt = %u\n", itf->peercnt);
546 printf("phase = %u\n", itf->phase);
1403 endpt *itf,
1410 strlcpy(itf->name, isc_if->name, sizeof(itf->name));
1411 itf->ifindex = isc_if->ifindex;
1412 itf->family = (u_short)isc_if->af;
1413 AF(&itf->sin) = itf->family;
1414 AF(&itf->mask) = itf->family;
1415 AF(&itf->bcast) = itf->family;
1416 SET_PORT(&itf->sin, port);
1417 SET_PORT(&itf->mask, port);
1418 SET_PORT(&itf->bcast, port);
1420 if (IS_IPV4(&itf->sin)) {
1421 NSRCADR(&itf->sin) = isc_if->address.type.in.s_addr;
1422 NSRCADR(&itf->mask) = isc_if->netmask.type.in.s_addr;
1425 itf->flags |= INT_BROADCAST;
1426 NSRCADR(&itf->bcast) =
1431 else if (IS_IPV6(&itf->sin)) {
1432 SET_ADDR6N(&itf->sin, isc_if->address.type.in6);
1433 SET_ADDR6N(&itf->mask, isc_if->netmask.type.in6);
1435 SET_SCOPE(&itf->sin, isc_if->address.zone);
1442 itf->flags |=
1459 if (INT_LOOPBACK & itf->flags) {
1460 if (AF_INET == itf->family) {
1461 if (127 != (SRCADR(&itf->sin) >> 24))
1462 itf->flags &= ~INT_LOOPBACK;
1464 if (memcmp(v6loop, NSRCADR6(&itf->sin),
1465 sizeof(NSRCADR6(&itf->sin))))
1466 itf->flags &= ~INT_LOOPBACK;
3481 struct interface * itf,
3500 rb = itf->ignore_packets ? NULL : get_free_recv_buffer(FALSE);
3516 (itf->ignore_packets)
3520 if (itf->ignore_packets)
3584 if (AF_INET6 == itf->family) {
3588 stoa(&itf->sin),
3589 !IN6_IS_ADDR_LOOPBACK(PSOCK_ADDR6(&itf->sin))
3593 && !IN6_IS_ADDR_LOOPBACK(PSOCK_ADDR6(&itf->sin))
3607 rb->dstadr = itf;
3618 itf->received++;