Lines Matching defs:ifp
48 struct interface *ifp;
50 for (ifp = ifnet; ifp != NULL; ifp = ifp->int_next) {
51 if (ifp->int_name != NULL &&
52 strcmp(ifp->int_name, name) == 0)
55 return (ifp);
72 struct interface *ifp;
91 for (ifp = ifnet; ifp != NULL; ifp = ifp->int_next) {
93 (ifp->int_name != NULL) ? ifp->int_name : "(noname)");
98 if ((ifp->int_flags & p->t_bits) == 0)
110 ifp->int_ipackets);
111 (void) fprintf(fp, "\tpackets sent %d\n", ifp->int_opackets);
112 (void) fprintf(fp, "\ttransitions %d\n", ifp->int_transitions);
113 if ((ifp->int_flags & RIP6_IFF_UP) == 0)
115 if (ifp->int_flags & RIP6_IFF_POINTOPOINT) {
117 inet_ntop(AF_INET6, (void *)&ifp->int_addr, buf1,
120 inet_ntop(AF_INET6, (void *)&ifp->int_dstaddr, buf1,
124 inet_ntop(AF_INET6, (void *)&ifp->int_addr, buf1,
126 ifp->int_prefix_length);
128 (void) fprintf(fp, "\tmetric %d\n", ifp->int_metric);
129 (void) fprintf(fp, "\tmtu %d\n", ifp->int_mtu);