Home | History | Annotate | Download | only in routed

Lines Matching defs:aifp

61 	struct interface *aifp;
90 /* aifp is the "authenticated" interface via which the packet
103 for (aifp = remote_if; aifp; aifp = aifp->int_rlink) {
104 if (aifp->int_addr == from.sin_addr.s_addr)
107 if (aifp == 0) {
108 aifp = ifwithname(inbuf.ifname, 0);
109 if (aifp == 0) {
113 } else if (((aifp->int_if_flags & IFF_POINTOPOINT)
114 && aifp->int_dstaddr!=from.sin_addr.s_addr)
115 || (!(aifp->int_if_flags & IFF_POINTOPOINT)
117 aifp->int_net,
118 aifp->int_mask))) {
122 aifp = 0;
126 aifp = iflookup(from.sin_addr.s_addr);
129 sifp = aifp;
131 input(&from, sifp, aifp, &inbuf.pbuf.rip, cc);
141 struct interface *aifp, /* "authenticated" interface */
161 if (aifp != 0
162 && (aifp->int_state & IS_REMOTE))
163 aifp->int_act_time = now.tv_sec;
207 if (aifp == 0)
208 aifp = sifp;
216 aifp = ifp1;
217 if (check_remote(aifp)) {
218 aifp->int_act_time = now.tv_sec;
219 (void)if_ok(aifp, "remote ");
234 || (aifp != 0
235 && IS_RIP_OUT_OFF(aifp->int_state))) {
264 && (aifp == 0 || (aifp->int_state & IS_NO_RIPV1_OUT))) {
270 ap = find_auth(aifp);
273 && !ck_passwd(aifp,rip,lim,FROM_NADDR,&use_auth))
296 supply(from, aifp, OUT_QUERY, 0,
309 if (aifp == 0) {
314 || IS_RIP_OFF(aifp->int_state)) {
323 if ((aifp->int_state & IS_NO_RIPV1_OUT)
325 if (!(aifp->int_state & IS_PM_RDISC)) {
332 i = aifp->int_d_metric;
335 +aifp->int_metric
336 +aifp->int_adj_outmetric
352 supply(from, aifp, OUT_UNICAST, 0,
353 (aifp->int_state & IS_NO_RIPV1_OUT)
388 mask = ripv1_mask_host(dst, aifp);
407 if (!aifp)
410 j += (aifp->int_metric
411 + aifp->int_adj_outmetric);
419 if (aifp != 0
421 aifp->int_net,
422 aifp->int_mask)
423 && rt->rt_gate != aifp->int_addr)
442 (void)output(OUT_QUERY, from, aifp,
446 (void)output(OUT_UNICAST, from, aifp,
472 if (aifp == 0) {
525 aifp = ifp1;
526 if (check_remote(aifp)) {
527 aifp->int_act_time = now.tv_sec;
528 (void)if_ok(aifp, "remote ");
540 if (aifp == 0) {
547 if (IS_RIP_IN_OFF(aifp->int_state)) {
550 rip->rip_vers, aifp->int_name);
560 if (((aifp->int_state & IS_NO_RIPV1_IN)
562 || ((aifp->int_state & IS_NO_RIPV2_IN)
571 if (aifp->int_state & IS_BROKE) {
573 aifp->int_name);
581 if (aifp->int_state & IS_DISTRUST) {
598 if (aifp->int_auth[0].type != RIP_AUTH_NONE
600 && !ck_passwd(aifp,rip,lim,FROM_NADDR,&use_auth))
647 aifp->int_net, aifp->int_mask)
664 mask = ripv1_mask_host(dst,aifp);
679 n->n_metric += (aifp->int_metric
680 + aifp->int_adj_inmetric);
704 if (aifp->int_d_metric != 0
706 && (int)n->n_metric >= aifp->int_d_metric)
758 new.rts_ifp = aifp;
937 ck_passwd(struct interface *aifp,
959 for (ap = aifp->int_auth, i = 0; i < MAX_AUTH_KEYS; i++, ap++) {