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