Lines Matching refs:ifp

59 	struct interface *ifp, *ifp1, *ifp2;
67 if (findremote && ((ifp = findremoteif(from->sin_addr.s_addr)) != NULL))
68 return (ifp);
80 if ((ifp = ifwithindex(ifindex, _B_TRUE)) != NULL) {
83 for (ifp1 = ifp; ifp1 != NULL;
95 ifp = ifp2;
96 return (ifp);
115 struct interface *ifp;
143 * ifp is the interface via which the packet arrived.
145 ifp = receiving_interface(&msg, _B_TRUE);
147 input(&from, ifp, &inbuf.rip, cc);
155 struct interface *ifp, /* interface of incoming socket */
178 if (ifp != NULL && (ifp->int_state & IS_REMOTE))
179 ifp->int_act_time = now.tv_sec;
181 trace_rip("Recv", "from", from, ifp, rip, cc);
183 if (ifp != NULL && (ifp->int_if_flags & IFF_NORTEXCH)) {
185 ifp->int_name);
254 ifp = ifp1;
255 if (check_remote(ifp)) {
256 ifp->int_act_time = now.tv_sec;
257 if_ok(ifp, "remote ", _B_FALSE);
272 (ifp != NULL && (IS_RIP_OUT_OFF(ifp->int_state) ||
273 !IS_IFF_ROUTING(ifp->int_if_flags)))) {
303 if (rip->rip_vers == RIPv2 && (ifp == NULL ||
304 (ifp->int_state & IS_NO_RIPV1_OUT))) {
311 ap = find_auth(ifp);
326 !ck_passwd(ifp, rip, (uint8_t *)lim, FROM_NADDR,
353 supply(from, ifp, OUT_QUERY, 0,
367 if (ifp == NULL) {
371 if (IS_RIP_OFF(ifp->int_state) ||
372 !should_supply(ifp)) {
382 if ((ifp->int_state & IS_NO_RIPV1_OUT) &&
384 if (!(ifp->int_state & IS_PM_RDISC)) {
392 metric = ifp->int_d_metric;
409 supply(from, ifp, OUT_UNICAST, 0,
410 (ifp->int_state & IS_NO_RIPV1_OUT)
446 mask = ripv1_mask_host(dst, ifp);
474 if (ifp != NULL &&
475 on_net(rt->rt_gate, ifp->int_net,
476 ifp->int_mask) &&
477 rt->rt_gate != ifp->int_addr)
509 (void) output(OUT_QUERY, from, ifp, v12buf.buf,
512 (void) output(OUT_UNICAST, from, ifp,
534 if (ifp == NULL || !remote_address_ok(ifp, FROM_NADDR)) {
544 if (ifp->int_state & IS_DISTRUST) {
556 if (ifp->int_auth[0].type != RIP_AUTH_NONE) {
582 if (ifp != NULL && (ifp->int_if_flags & IFF_NOXMIT)) {
584 "(IFF_NOXMIT)", ifp->int_name);
621 ifp = ifp1;
622 if (check_remote(ifp)) {
623 ifp->int_act_time = now.tv_sec;
624 if_ok(ifp, "remote ", _B_FALSE);
636 if (ifp != NULL &&
637 !remote_address_ok(ifp, FROM_NADDR)) {
641 ifp->int_name);
651 if (ifp == NULL) {
659 if (IS_RIP_IN_OFF(ifp->int_state)) {
662 rip->rip_vers, ifp->int_name);
672 if (((ifp->int_state & IS_NO_RIPV1_IN) &&
674 ((ifp->int_state & IS_NO_RIPV2_IN) &&
687 if (ifp->int_state & IS_BROKE) {
689 ifp->int_name);
697 if (ifp->int_state & IS_DISTRUST) {
715 if (ifp->int_auth[0].type != RIP_AUTH_NONE &&
717 !ck_passwd(ifp, rip, (uint8_t *)lim, FROM_NADDR, &use_auth))
742 new.rts_ifp = ifp;
754 if (!IS_IFF_ROUTING(ifp->int_if_flags)) {
804 ifp->int_net, ifp->int_mask) &&
822 mask = ripv1_mask_host(dst, ifp);
833 (ifp->int_state & IS_NO_HOST)) {
850 n->n_metric += ifp->int_metric;
877 if (ifp->int_d_metric != 0 && dst == RIP_DEFAULT &&
878 n->n_metric >= ifp->int_d_metric)
943 new.rts_ifp = ifp;
973 if (rip->rip_vers == RIPv2 && (ifp == NULL ||
974 (ifp->int_state & IS_NO_RIPV1_OUT))) {
1011 mask = ripv1_mask_host(dst, ifp);
1036 if (ifp != NULL &&
1037 on_net(rt->rt_gate, ifp->int_net, ifp->int_mask) &&
1038 rt->rt_gate != ifp->int_addr)
1047 (void) output(OUT_QUERY, from, ifp, v12buf.buf,