Home
last modified time | relevance | path

Searched refs:ifp (Results 1 – 25 of 58) sorted by relevance

123

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dif.c363 ifp = ifp->int_ahash.hl_next) { in ifwithaddr()
377 ifp = ifp->int_bhash.hl_next) { in ifwithaddr()
440 ifp = ifp->int_ahash.hl_next) { in findremoteif()
545 for (ifp = ifnet; ifp != NULL; ifp = ifp->int_next) { in iflookup()
600 for (ifp = ifnet; ifp != NULL; ifp = ifp->int_next) { in ripv1_mask_net()
697 for (ifp = ifnet; ifp != NULL; ifp = ifp->int_next) { in check_dup()
809 ifp->int_dstaddr, ifp->int_mask, ifp->int_if_flags, in ifdel()
931 ifp->int_dstaddr, ifp->int_mask, ifp->int_if_flags, in if_bad()
1056 for (ifp = ifnet; ifp != NULL; ifp = ifp->int_next) in ifscan()
1670 for (ifp = ifnet; ifp != NULL; ifp = ifp1) { in ifscan()
[all …]
H A Drdisc.c127 ifp ? ifp->int_name : "?", in trace_rdisc()
144 ifp ? ifp->int_name : "?", in trace_rdisc()
241 (ifp->int_dstaddr != 0) ? ifp->int_dstaddr : ifp->int_addr); in set_rdisc_mg()
334 for (ifp = ifnet; ifp; ifp = ifp->int_next) { in set_supplier()
897 if (!on_net(gate, ifp->int_net, ifp->int_mask)) { in parse_ad()
1064 ifp->int_dstaddr : ifp->int_addr; in send_rdisc()
1136 for (ifp = ifnet; ifp; ifp = ifp->int_next) { in rdisc_adv()
1152 (ifp->int_rdisc_int*3)/4, ifp->int_rdisc_int); in rdisc_adv()
1180 for (ifp = ifnet; ifp; ifp = ifp->int_next) { in rdisc_sol()
1306 ifp = ck_icmp("Recv", from.sin_addr.s_addr, ifp, in read_d()
[all …]
H A Dparms.c103 if ((ifp->int_state & IS_PM_RDISC) && ifp->int_d_metric == 0) in get_parms()
160 ifp->int_ripout_addr = ifp->int_addr; in get_parms()
179 ifp->int_ripout_addr = ifp->int_dstaddr; in get_parms()
182 ifp->int_ripout_addr = ifp->int_brdaddr; in get_parms()
399 ifp = rtmalloc(sizeof (*ifp), "gwkludge()"); in gwkludge()
400 (void) memset(ifp, 0, sizeof (*ifp)); in gwkludge()
414 ifp->int_std_net = ifp->int_net & ifp->int_std_mask; in gwkludge()
415 ifp->int_std_addr = htonl(ifp->int_std_net); in gwkludge()
418 ifp->int_mask != ifp->int_std_mask) in gwkludge()
420 (void) snprintf(ifp->int_name, sizeof (ifp->int_name), in gwkludge()
[all …]
H A Doutput.c153 ifp != NULL && ifp->int_phys != NULL) ? in output()
162 if (ifp != NULL) { in output()
164 ifp->int_dstaddr : ifp->int_addr; in output()
178 if (res < 0 && (ifp == NULL || !(ifp->int_state & IS_BROKE))) { in output()
180 ifp != NULL ? ifp->int_name : "", in output()
253 if (ifp == NULL) in find_auth()
757 if (ifp != NULL) { in supply()
778 ws.ifp = ifp; in supply()
819 } else if (ifp == NULL || !(ifp->int_state & IS_NO_AG)) { in supply()
929 for (ifp = ifnet; ifp != NULL; ifp = ifp->int_next) { in rip_bcast()
[all …]
H A Dinput.c68 return (ifp); in receiving_interface()
95 ifp = ifp2; in receiving_interface()
96 return (ifp); in receiving_interface()
178 if (ifp != NULL && (ifp->int_state & IS_REMOTE)) in input()
183 if (ifp != NULL && (ifp->int_if_flags & IFF_NORTEXCH)) { in input()
254 ifp = ifp1; in input()
272 (ifp != NULL && (IS_RIP_OUT_OFF(ifp->int_state) || in input()
534 if (ifp == NULL || !remote_address_ok(ifp, FROM_NADDR)) { in input()
582 if (ifp != NULL && (ifp->int_if_flags & IFF_NOXMIT)) { in input()
804 ifp->int_net, ifp->int_mask) && in input()
[all …]
H A Dtable.c849 if (ifp == NULL || (ifp->int_phys == NULL)) { in rtioctl()
912 (ifp == NULL || k->k_ifp == ifp)) { in kern_find()
1196 if (should_supply(ifp) && (ifp == NULL || in rtm_add()
1504 ifp->int_dstaddr : htonl(ifp->int_net)), in sync_kern()
2585 for (ifp = ifnet; ifp != NULL; ifp = ifp->int_next) { in rtbad_sub()
2602 for (ifp = ifnet; ifp != NULL; ifp = ifp->int_next) { in rtbad_sub()
2814 for (ifp = ifnet; ifp; ifp = ifp->int_next) { in age()
2884 for (ifp = ifnet; ifp != NULL; ifp = ifp->int_next) { in gwkludge_iflookup()
2911 for (ifp = phyi->phyi_interface; ifp != NULL; in lifp_iflookup()
2912 ifp = ifp->int_ilist.hl_next) { in lifp_iflookup()
[all …]
H A Dmain.c759 struct interface *ifp; in rip_off() local
769 for (ifp = ifnet; ifp != NULL; ifp = ifp->int_next) { in rip_off()
778 ifp->int_dstaddr : ifp->int_addr; in rip_off()
812 ifp->int_dstaddr : ifp->int_addr; in rip_mcast_on()
831 ifp->int_dstaddr : ifp->int_addr; in rip_mcast_off()
843 rip_on(struct interface *ifp) in rip_on() argument
850 if (ifp != NULL) in rip_on()
851 rip_mcast_on(ifp); in rip_on()
871 for (ifp = ifnet; ifp != NULL; ifp = ifp->int_next) { in rip_on()
872 ifp->int_query_time = NEVER; in rip_on()
[all …]
H A Dtrace.c817 ifp->int_name, in trace_if()
818 ifp->int_phys != NULL ? ifp->int_phys->phyi_index : 0); in trace_if()
822 ifp->int_dstaddr : htonl(ifp->int_net)), in trace_if()
823 ifp->int_mask, 1)); in trace_if()
824 if (ifp->int_metric != 0) in trace_if()
827 ifp->int_d_metric != 0) in trace_if()
1081 struct interface *ifp; in trace_dump() local
1094 for (ifp = ifnet; ifp != NULL; ifp = ifp->int_next) in trace_dump()
1095 trace_if("", ifp); in trace_dump()
1108 struct interface *ifp, in trace_rip() argument
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dstartup.c100 for (ifp = ifnet; ifp != NULL; ifp = ifp->int_next) in initifs()
118 if (ifp != NULL) in initifs()
139 if_purge(ifp); in initifs()
289 *ifp = ifs; in initifs()
290 ifp->int_name = ifp->int_ifbase = NULL; in initifs()
294 free(ifp); in initifs()
303 free(ifp); in initifs()
319 free(ifp); in initifs()
336 ifnet = ifp; in initifs()
347 for (ifp = ifnet; ifp != NULL; ifp = ifp->int_next) { in initifs()
[all …]
H A Doutput.c50 struct interface *ifp; in supplyall() local
52 for (ifp = ifnet; ifp != NULL; ifp = ifp->int_next) { in supplyall()
60 ifp->int_name); in supplyall()
65 if (ifp->int_sock == -1) in supplyall()
67 if (ifp == skipif) in supplyall()
89 struct interface *ifp; in solicitall() local
91 for (ifp = ifnet; ifp != NULL; ifp = ifp->int_next) { in solicitall()
99 ifp->int_name); in solicitall()
104 if (ifp->int_sock == -1) in solicitall()
106 solicit(sin6, ifp); in solicitall()
[all …]
H A Dif.c46 struct interface *ifp; in if_ifwithname() local
48 for (ifp = ifnet; ifp != NULL; ifp = ifp->int_next) { in if_ifwithname()
49 if (ifp->int_name != NULL && in if_ifwithname()
50 strcmp(ifp->int_name, name) == 0) in if_ifwithname()
53 return (ifp); in if_ifwithname()
70 struct interface *ifp; in if_dump2() local
89 for (ifp = ifnet; ifp != NULL; ifp = ifp->int_next) { in if_dump2()
91 (ifp->int_name != NULL) ? ifp->int_name : "(noname)"); in if_dump2()
96 if ((ifp->int_flags & p->t_bits) == 0) in if_dump2()
108 ifp->int_ipackets); in if_dump2()
[all …]
H A Dtrace.c47 static void dumpif(FILE *fp, struct interface *ifp);
51 traceinit(struct interface *ifp) in traceinit() argument
53 if (iftraceinit(ifp, &ifp->int_input) && in traceinit()
54 iftraceinit(ifp, &ifp->int_output)) in traceinit()
58 (ifp->int_name != NULL) ? ifp->int_name : "(noname)"); in traceinit()
76 ifd->ifd_if = ifp; in iftraceinit()
217 dumpif(FILE *fp, struct interface *ifp) in dumpif() argument
219 if (ifp->int_input.ifd_count != 0 || ifp->int_output.ifd_count != 0) { in dumpif()
221 (ifp->int_name != NULL) ? ifp->int_name : "(noname)"); in dumpif()
222 dumptrace(fp, "to", &ifp->int_output); in dumpif()
[all …]
H A Dtrace.h79 #define TRACE_INPUT(ifp, src, size) { \ argument
80 if ((tracing & INPUT_BIT) && ((ifp) != NULL)) { \
81 trace(&(ifp)->int_input, (src), packet, (size), \
82 (ifp)->int_metric); \
89 #define TRACE_OUTPUT(ifp, dst, size) { \ argument
90 if ((tracing & OUTPUT_BIT) && ((ifp) != NULL)) { \
91 trace(&(ifp)->int_output, (dst), packet, (size), \
92 (ifp)->int_metric); \
H A Dinput.c44 struct interface *ifp);
69 in_data(struct interface *ifp) in in_data() argument
127 struct interface *ifp) in rip_input() argument
141 TRACE_INPUT(ifp, from, size); in rip_input()
156 ifp->int_name); in rip_input()
183 ifp->int_ipackets++; in rip_input()
208 supply(from, ifp, 0, in rip_input()
300 ifp->int_ipackets++; in rip_input()
434 _B_FALSE, ifp); in rip_input()
465 rt->rt_ifp != ifp) { in rip_input()
[all …]
H A Dmain.c79 struct interface *ifp; in main() local
281 for (ifp = ifnet; ifp != NULL; in main()
282 ifp = ifp->int_next) { in main()
283 if (poll_ifs[i].fd == ifp->int_sock) in main()
284 in_data(ifp); in main()
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dip_fil.c440 void *ifp; in fr_forgetifp()
548 sprintf(fname, "/tmp/%s%d", ifp->if_name, ifp->if_unit);
630 return ifp;
648 return ifp;
714 return ifp;
727 sprintf(ifname, "%s%d", ifp->if_name, ifp->if_unit);
756 sprintf(fname, "/tmp/%s%d", ifp->if_name, ifp->if_unit); in init_ifp()
775 if (!ifp)
782 (*ifp->if_output)(ifp, (void *)ip, NULL);
784 (*ifp->if_output)(ifp, (void *)m, NULL, 0, 0);
[all …]
/illumos-gate/usr/src/cmd/ctfdiff/
H A Dctfdiff.c104 ctfdiff_fp_to_name(ifp), iidx); in ctfdiff_func_cb()
177 ctf_errmsg(ctf_errno(ifp))); in ctfdiff_cb()
195 ctfdiff_fp_to_name(ifp), iid); in ctfdiff_cb()
322 ctf_file_t *ifp, *ofp; in main() local
459 ifp = ctf_open(argv[1], &err); in main()
460 if (ifp == NULL) { in main()
465 err = ctf_import(ifp, pifp); in main()
472 g_ifp = ifp; in main()
492 ctf_errmsg(ctf_errno(ifp))); in main()
497 ctf_errmsg(ctf_errno(ifp))); in main()
[all …]
/illumos-gate/usr/src/lib/libctf/common/
H A Dctf_diff.c116 return (ctf_set_errno(ifp, iid)); in ctf_diff_name()
143 return (ctf_set_errno(ifp, iid)); in ctf_diff_number()
327 oifp = ifp; in ctf_diff_struct()
517 oifp = ifp; in ctf_diff_union()
538 cduf.cduf_curfp = ifp; in ctf_diff_union()
562 oifp = ifp; in ctf_diff_enum()
600 ikind = ctf_type_kind(ifp, iid); in ctf_diff_forward()
623 if (ifp == ofp && iid == oid) in ctf_diff_type()
829 cds->cds_ifp = ifp; in ctf_diff_init()
963 ctf_file_t *ifp, *ofp; in ctf_diff_symid() local
[all …]
/illumos-gate/usr/src/cmd/audio/audioconvert/
H A Dmain.cc239 ifp = in main()
241 if (!ifp) { in main()
245 if ((err = ifp->Open()) != AUDIO_SUCCESS) { in main()
250 ifp->Reference(); in main()
259 ohdr = ifp->GetHeader(); in main()
260 ohdr = ifp->GetHeader(); in main()
286 ohdr = ifp->GetHeader(); in main()
325 if (noop_conversion(ifp->GetHeader(), ohdr, in main()
352 if (do_convert(ifp, ofp) == -1) { in main()
356 ifp->Close(); in main()
[all …]
H A Dfile.cc79 AudioUnixfile* ifp; in open_input_file() local
108 ifp = new AudioRawPipe(fileno(stdin), in open_input_file()
116 if (!ifp) { in open_input_file()
120 return (ifp); in open_input_file()
145 ifp = new AudioRawPipe(fd, (FileAccess)ReadOnly, in open_input_file()
160 ifp = new AudioFile(path, in open_input_file()
164 ifp = new AudioRawPipe(fd, in open_input_file()
171 ifp = new AudioRawPipe(fd, (FileAccess)ReadOnly, ihdr, in open_input_file()
175 ifp = new AudioFile(path, (FileAccess)ReadOnly); in open_input_file()
178 if (!ifp) { in open_input_file()
[all …]
/illumos-gate/usr/src/lib/pam_modules/authtok_check/
H A Dpacklib.c47 FILE *ifp; in PWOpen() local
79 if (!(pdesc->ifp = fdopen(fd_i, mode))) { in PWOpen()
88 ifp = pdesc->ifp; in PWOpen()
99 1, ifp); in PWOpen()
104 1, ifp)) { in PWOpen()
106 (void) fclose(ifp); in PWOpen()
113 (void) fclose(ifp); in PWOpen()
120 (void) fclose(ifp); in PWOpen()
146 if (fseek(pwp->ifp, 0L, 0)) { in PWClose()
151 1, pwp->ifp)) { in PWClose()
[all …]
/illumos-gate/usr/src/cmd/print/bsd-sysv-commands/
H A Din.lpd.c380 char *host = remote_host_name(ifp); in submit_job()
420 (feof(ifp) != 0)) { in receive_control_file()
430 if (fgetc(ifp) != 0) { in receive_control_file()
455 if (((rc = fread(buf, 1, rc, ifp)) == 0) && in receive_data_file()
456 (feof(ifp) != 0)) { in receive_data_file()
479 if (fgetc(ifp) != 0) { in receive_data_file()
635 FILE *ifp = stdin; in main() local
688 if (fgets(buf, sizeof (buf), ifp) == NULL) { in main()
689 if (feof(ifp) == 0) in main()
734 (void) papiServiceSetPeer(svc, fileno(ifp)); in main()
[all …]
/illumos-gate/usr/src/uts/common/xen/io/
H A Dxencons.c562 ifp = xcp->ifp; in xencons_rxint()
738 volatile struct xencons_interface *ifp = xcp->ifp; in xenconsintr() local
740 if (ifp->in_prod != ifp->in_cons) in xenconsintr()
742 if (ifp->out_prod - ifp->out_cons < sizeof (ifp->out)) in xenconsintr()
864 volatile struct xencons_interface *ifp = xcp->ifp; in xcasync_start() local
871 ifp->out[MASK_XENCONS_IDX(prod++, ifp->out)] = in xcasync_start()
1286 volatile struct xencons_interface *ifp = xcp->ifp; in xenconsputchar() local
1306 while (ifp->out_prod - ifp->out_cons == sizeof (ifp->out)) in xenconsputchar()
1310 ifp->out[MASK_XENCONS_IDX(prod++, ifp->out)] = c; in xenconsputchar()
1324 volatile struct xencons_interface *ifp = xcp->ifp; in xenconsischar() local
[all …]
/illumos-gate/usr/src/cmd/saf/
H A Dadmutil.c275 FILE *ifp; /* file pointer for source file */ in do_config() local
299 ifp = fopen(script, "r"); in do_config()
300 if (ifp == NULL) { in do_config()
308 while(fgets(buf, SIZE, ifp)) { in do_config()
315 (void) fclose(ifp); in do_config()
333 ifp = fopen(buf, "r"); in do_config()
334 if (ifp == NULL) { in do_config()
339 while (fgets(buf, SIZE, ifp)) in do_config()
341 (void) fclose(ifp); in do_config()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dlocaladdr.c183 printf ("%p={\n", ifp); in printifaddr()
204 if (ifp->ifa_addr) in printifaddr()
206 if (ifp->ifa_netmask) in printifaddr()
208 if (ifp->ifa_broadaddr) in printifaddr()
210 if (ifp->ifa_dstaddr) in printifaddr()
212 if (ifp->ifa_data) in printifaddr()
433 for (ifp = ifp_head; ifp; ifp = ifp->ifa_next) { in foreach_localaddr()
435 printifaddr (ifp); in foreach_localaddr()
445 if (ifp->ifa_addr == NULL) { in foreach_localaddr()
466 ifp->ifa_flags &= ~IFF_UP; in foreach_localaddr()
[all …]

123