/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/ |
H A D | if.c | 312 if_link(struct interface *ifp, uint32_t ifindex) in if_link() argument 316 link_in((void **)&ifnet, ifp, offsetof(struct interface, int_link)); in if_link() 318 HADD(&ahash_tbl, ifp); in if_link() 319 HADD(&nhash_tbl, ifp); in if_link() 321 if (ifp->int_if_flags & IFF_BROADCAST) in if_link() 322 HADD(&bhash_tbl, ifp); in if_link() 339 size = strcspn(ifp->int_name, ":"); in if_link() 340 (void) strncpy(phyi->phyi_name, ifp->int_name, in if_link() 345 link_in((void **)&phyi->phyi_interface, ifp, in if_link() 347 ifp->int_phys = phyi; in if_link() [all …]
|
H A D | rdisc.c | 98 #define PREF(p, ifp) ((p) <= (uint32_t)(ifp)->int_metric ? ((p) != 0 ? 1 : 0) \ argument 99 : (p) - ((ifp)->int_metric)) 110 struct interface *ifp, in trace_rdisc() argument 127 ifp ? ifp->int_name : "?", in trace_rdisc() 144 ifp ? ifp->int_name : "?", in trace_rdisc() 214 set_rdisc_mg(struct interface *ifp, in set_rdisc_mg() argument 225 if ((ifp->int_state & IS_NO_RDISC) == IS_NO_RDISC || in set_rdisc_mg() 231 if (!(ifp->int_if_flags & IFF_MULTICAST)) { in set_rdisc_mg() 233 ifp->int_state &= ~(IS_ALL_HOSTS | IS_ALL_ROUTERS); in set_rdisc_mg() 237 dosupply = should_supply(ifp); in set_rdisc_mg() [all …]
|
H A D | parms.c | 56 get_parms(struct interface *ifp) in get_parms() argument 62 if (ifp == NULL) in get_parms() 68 strcmp(ifp->int_name, parmp->parm_name) == 0 || in get_parms() 70 on_net(ifp->int_addr, in get_parms() 77 ifp->int_state |= parmp->parm_int_state; in get_parms() 82 ifp->int_auth[num_passwds++] = in get_parms() 86 ifp->int_rdisc_pref = parmp->parm_rdisc_pref; in get_parms() 88 ifp->int_rdisc_int = parmp->parm_rdisc_int; in get_parms() 90 ifp->int_d_metric = parmp->parm_d_metric; in get_parms() 92 ifp->int_ripout_addr = parmp->parm_ripout_addr; in get_parms() [all …]
|
H A D | output.c | 55 struct interface *ifp; /* usually output interface */ member 101 struct interface *ifp, in output() argument 118 if (ifp == NULL && type == OUT_MULTICAST) { in output() 153 ifp != NULL && ifp->int_phys != NULL) ? in output() 154 ifp->int_phys->phyi_index : 0; in output() 156 if (rip_sock_interface != ifp) { in output() 162 if (ifp != NULL) { in output() 163 addr.s_addr = (ifp->int_if_flags & IFF_POINTOPOINT) ? in output() 164 ifp->int_dstaddr : ifp->int_addr; in output() 172 rip_sock_interface = ifp; in output() [all …]
|
H A D | input.c | 59 struct interface *ifp, *ifp1, *ifp2; in receiving_interface() local 67 if (findremote && ((ifp = findremoteif(from->sin_addr.s_addr)) != NULL)) in receiving_interface() 68 return (ifp); in receiving_interface() 80 if ((ifp = ifwithindex(ifindex, _B_TRUE)) != NULL) { in receiving_interface() 83 for (ifp1 = ifp; ifp1 != NULL; in receiving_interface() 95 ifp = ifp2; in receiving_interface() 96 return (ifp); in receiving_interface() 115 struct interface *ifp; in read_rip() local 145 ifp = receiving_interface(&msg, _B_TRUE); in read_rip() 147 input(&from, ifp, &inbuf.rip, cc); in read_rip() [all …]
|
H A D | table.c | 317 struct interface *ifp, in ag_check() argument 346 nc_ag.ag_ifp = ifp; in ag_check() 425 if (ag->ag_nhop == nhop && ag->ag_ifp == ifp) { in ag_check() 442 ag->ag_ifp = ifp; in ag_check() 494 (ag->ag_nhop == nhop && ag->ag_ifp == ifp && in ag_check() 541 ag->ag_ifp = ifp; in ag_check() 542 ifp = xifp; in ag_check() 649 nag->ag_ifp = ifp; in ag_check() 798 struct interface *ifp, in rtioctl() argument 846 if (ifp == NULL) in rtioctl() [all …]
|
H A D | main.c | 759 struct interface *ifp; in rip_off() local 769 for (ifp = ifnet; ifp != NULL; ifp = ifp->int_next) { in rip_off() 770 if ((ifp->int_if_flags & IFF_MULTICAST) && in rip_off() 771 !IS_IFF_QUIET(ifp->int_if_flags) && in rip_off() 772 !IS_RIP_IN_OFF(ifp->int_state) && in rip_off() 773 !(ifp->int_state & IS_DUP)) { in rip_off() 777 (ifp->int_if_flags & IFF_POINTOPOINT) ? in rip_off() 778 ifp->int_dstaddr : ifp->int_addr; in rip_off() 788 "%s, %s): %s", ifp->int_name, in rip_off() 802 rip_mcast_on(struct interface *ifp) in rip_mcast_on() argument [all …]
|
H A D | trace.c | 810 trace_if(const char *act, struct interface *ifp) in trace_if() argument 817 ifp->int_name, in trace_if() 818 ifp->int_phys != NULL ? ifp->int_phys->phyi_index : 0); in trace_if() 820 naddr_ntoa(ifp->int_addr), in trace_if() 821 addrname(((ifp->int_if_flags & IFF_POINTOPOINT) ? 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() 825 (void) fprintf(ftrace, " metric=%d", ifp->int_metric); in trace_if() 826 if (!IS_RIP_OUT_OFF(ifp->int_state) && in trace_if() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/ |
H A D | startup.c | 42 static void addrouteforif(struct interface *ifp); 62 struct interface *ifp; in initifs() local 100 for (ifp = ifnet; ifp != NULL; ifp = ifp->int_next) in initifs() 101 ifp->int_flags |= RIP6_IFF_MARKED; in initifs() 117 ifp = if_ifwithname(lifr.lifr_name); in initifs() 118 if (ifp != NULL) in initifs() 119 ifp->int_flags &= ~RIP6_IFF_MARKED; in initifs() 129 if (ifp != NULL) { in initifs() 130 if (ifp->int_flags & RIP6_IFF_UP) { in initifs() 136 ifp->int_transitions++; in initifs() [all …]
|
H A D | output.c | 50 struct interface *ifp; in supplyall() local 52 for (ifp = ifnet; ifp != NULL; ifp = ifp->int_next) { in supplyall() 53 if ((ifp->int_flags & RIP6_IFF_UP) == 0) in supplyall() 55 if (ifp->int_flags & RIP6_IFF_NORTEXCH) { in supplyall() 60 ifp->int_name); in supplyall() 65 if (ifp->int_sock == -1) in supplyall() 67 if (ifp == skipif) in supplyall() 69 if (!IN6_IS_ADDR_LINKLOCAL(&ifp->int_addr)) in supplyall() 71 supply(sin6, ifp, rtstate, splith); in supplyall() 76 solicit(struct sockaddr_in6 *sin6, struct interface *ifp) in solicit() argument [all …]
|
H A D | if.c | 46 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 D | trace.c | 46 static int iftraceinit(struct interface *ifp, struct ifdebug *ifd); 47 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() 62 iftraceinit(struct interface *ifp, struct ifdebug *ifd) in iftraceinit() argument 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() [all …]
|
H A D | input.c | 44 struct interface *ifp); 69 in_data(struct interface *ifp) in in_data() argument 86 if ((len = recvmsg(ifp->int_sock, &rmsg, 0)) < 0) { in in_data() 119 rip_input(&from, len, *(uint_t *)hopcntopt, ifp); in in_data() 127 struct interface *ifp) in rip_input() argument 141 TRACE_INPUT(ifp, from, size); in rip_input() 151 if (ifp->int_flags & RIP6_IFF_NORTEXCH) { 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() [all …]
|
H A D | trace.h | 79 #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 D | main.c | 79 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 D | ip_fil.c | 439 void fr_forgetifp(ifp, ifs) in fr_forgetifp() argument 440 void *ifp; in fr_forgetifp() 448 if (f->fr_ifa == ifp) 452 if (f->fr_ifa == ifp) 456 if (f->fr_ifa == ifp) 460 if (f->fr_ifa == ifp) 465 if (f->fr_ifa == ifp) 469 if (f->fr_ifa == ifp) 473 if (f->fr_ifa == ifp) 477 if (f->fr_ifa == ifp) [all …]
|
/illumos-gate/usr/src/cmd/ctfdiff/ |
H A D | ctfdiff.c | 92 ctfdiff_func_cb(ctf_file_t *ifp, ulong_t iidx, boolean_t similar, in ctfdiff_func_cb() argument 100 if (ctf_symbol_name(ifp, iidx, namebuf, sizeof (namebuf)) == NULL) { in ctfdiff_func_cb() 104 ctfdiff_fp_to_name(ifp), iidx); in ctfdiff_func_cb() 116 "different\n", ctfdiff_fp_to_name(ifp), namebuf, iidx); in ctfdiff_func_cb() 124 ctfdiff_obj_cb(ctf_file_t *ifp, ulong_t iidx, ctf_id_t iid, boolean_t similar, in ctfdiff_obj_cb() argument 132 if (ctf_symbol_name(ifp, iidx, namebuf, sizeof (namebuf)) == NULL) { in ctfdiff_obj_cb() 136 ctfdiff_fp_to_name(ifp), iidx); in ctfdiff_obj_cb() 148 ctfdiff_fp_to_name(ifp), namebuf, iidx); in ctfdiff_obj_cb() 156 ctfdiff_cb(ctf_file_t *ifp, ctf_id_t iid, boolean_t similar, ctf_file_t *ofp, in ctfdiff_cb() argument 162 if (ctf_type_kind(ifp, iid) == CTF_K_UNKNOWN) in ctfdiff_cb() [all …]
|
/illumos-gate/usr/src/lib/libctf/common/ |
H A D | ctf_diff.c | 107 ctf_diff_name(ctf_file_t *ifp, ctf_id_t iid, ctf_file_t *ofp, ctf_id_t oid) in ctf_diff_name() argument 112 if ((itp = ctf_lookup_by_id(&ifp, iid)) == NULL) in ctf_diff_name() 116 return (ctf_set_errno(ifp, iid)); in ctf_diff_name() 118 iname = ctf_strptr(ifp, itp->ctt_name); in ctf_diff_name() 135 ctf_diff_number(ctf_file_t *ifp, ctf_id_t iid, ctf_file_t *ofp, ctf_id_t oid) in ctf_diff_number() argument 139 if (ctf_type_encoding(ifp, iid, &ien) != 0) in ctf_diff_number() 143 return (ctf_set_errno(ifp, iid)); in ctf_diff_number() 161 ctf_diff_typedef(ctf_diff_t *cds, ctf_file_t *ifp, ctf_id_t iid, in ctf_diff_typedef() argument 166 while (ctf_type_kind(ifp, iid) == CTF_K_TYPEDEF) { in ctf_diff_typedef() 167 iref = ctf_type_reference(ifp, iid); in ctf_diff_typedef() [all …]
|
/illumos-gate/usr/src/cmd/audio/audioconvert/ |
H A D | main.cc | 64 AudioUnixfile* ifp = NULL; // input & output audio objects in main() local 239 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() 271 if (verify_conversion(ifp->GetHeader(), ohdr) == -1) { in main() 279 infoString = ifp->GetInfostring(infoStringLen); in main() 286 ohdr = ifp->GetHeader(); in main() [all …]
|
H A D | file.cc | 79 AudioUnixfile* ifp; in open_input_file() local 108 ifp = new AudioRawPipe(fileno(stdin), in open_input_file() 112 ifp = new AudioPipe(fileno(stdin), (FileAccess)ReadOnly, 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() [all …]
|
/illumos-gate/usr/src/lib/pam_modules/authtok_check/ |
H A D | packlib.c | 47 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/uts/common/xen/io/ |
H A D | xencons.c | 256 xcp->ifp = (volatile struct xencons_interface *)HYPERVISOR_console_page; in xenconssetup() 524 #define INBUF_IX(ix, ifp) (DOMAIN_IS_INITDOMAIN(xen_info) ? \ argument 525 (ix) : MASK_XENCONS_IDX((ix), (ifp)->in)) 542 volatile struct xencons_interface *ifp; in xencons_rxint() local 562 ifp = xcp->ifp; in xencons_rxint() 584 cons = ifp->in_cons; in xencons_rxint() 585 prod = ifp->in_prod; in xencons_rxint() 588 cp = (uchar_t *)ifp->in; in xencons_rxint() 608 c = cp[INBUF_IX(cons + i, ifp)]; in xencons_rxint() 616 ifp->in_cons = cons + i; in xencons_rxint() [all …]
|
/illumos-gate/usr/src/cmd/print/bsd-sysv-commands/ |
H A D | in.lpd.c | 370 submit_job(papi_service_t svc, FILE *ifp, char *printer, int rid, char *cf, in submit_job() argument 380 char *host = remote_host_name(ifp); in submit_job() 406 receive_control_file(papi_service_t svc, FILE *ifp, FILE *ofp, int size) in receive_control_file() argument 419 if (((rc = fread(ptr, 1, size, ifp)) == 0) && in receive_control_file() 420 (feof(ifp) != 0)) { in receive_control_file() 430 if (fgetc(ifp) != 0) { in receive_control_file() 440 receive_data_file(FILE *ifp, FILE *ofp, int size) in receive_data_file() argument 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() [all …]
|
/illumos-gate/usr/src/cmd/saf/ |
H A D | admutil.c | 275 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 D | localaddr.c | 181 void printifaddr (struct ifaddrs *ifp) in printifaddr() argument 183 printf ("%p={\n", ifp); in printifaddr() 185 printf ("\tname=%s\n", ifp->ifa_name); in printifaddr() 188 int ch, flags = ifp->ifa_flags; in printifaddr() 204 if (ifp->ifa_addr) in printifaddr() 205 printf ("\n\taddr="), printaddr (ifp->ifa_addr); in printifaddr() 206 if (ifp->ifa_netmask) in printifaddr() 207 printf ("\n\tnetmask="), printaddr (ifp->ifa_netmask); in printifaddr() 208 if (ifp->ifa_broadaddr) in printifaddr() 209 printf ("\n\tbroadaddr="), printaddr (ifp->ifa_broadaddr); in printifaddr() [all …]
|