/titanic_41/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 | 100 #define PREF(p, ifp) ((p) <= (uint32_t)(ifp)->int_metric ? ((p) != 0 ? 1 : 0) \ argument 101 : (p) - ((ifp)->int_metric)) 112 struct interface *ifp, in trace_rdisc() argument 129 ifp ? ifp->int_name : "?", in trace_rdisc() 146 ifp ? ifp->int_name : "?", in trace_rdisc() 216 set_rdisc_mg(struct interface *ifp, in set_rdisc_mg() argument 227 if ((ifp->int_state & IS_NO_RDISC) == IS_NO_RDISC || in set_rdisc_mg() 233 if (!(ifp->int_if_flags & IFF_MULTICAST)) { in set_rdisc_mg() 235 ifp->int_state &= ~(IS_ALL_HOSTS | IS_ALL_ROUTERS); in set_rdisc_mg() 239 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 | 57 struct interface *ifp; /* usually output interface */ member 103 struct interface *ifp, in output() argument 120 if (ifp == NULL && type == OUT_MULTICAST) { in output() 155 ifp != NULL && ifp->int_phys != NULL) ? in output() 156 ifp->int_phys->phyi_index : 0; in output() 158 if (rip_sock_interface != ifp) { in output() 164 if (ifp != NULL) { in output() 165 addr.s_addr = (ifp->int_if_flags & IFF_POINTOPOINT) ? in output() 166 ifp->int_dstaddr : ifp->int_addr; in output() 174 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 …]
|
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/ |
H A D | startup.c | 44 static void addrouteforif(struct interface *ifp); 64 struct interface *ifp; in initifs() local 102 for (ifp = ifnet; ifp != NULL; ifp = ifp->int_next) in initifs() 103 ifp->int_flags |= RIP6_IFF_MARKED; in initifs() 119 ifp = if_ifwithname(lifr.lifr_name); in initifs() 120 if (ifp != NULL) in initifs() 121 ifp->int_flags &= ~RIP6_IFF_MARKED; in initifs() 131 if (ifp != NULL) { in initifs() 132 if (ifp->int_flags & RIP6_IFF_UP) { in initifs() 138 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 | 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() [all …]
|
H A D | trace.c | 48 static int iftraceinit(struct interface *ifp, struct ifdebug *ifd); 49 static void dumpif(FILE *fp, struct interface *ifp); 53 traceinit(struct interface *ifp) in traceinit() argument 55 if (iftraceinit(ifp, &ifp->int_input) && in traceinit() 56 iftraceinit(ifp, &ifp->int_output)) in traceinit() 60 (ifp->int_name != NULL) ? ifp->int_name : "(noname)"); in traceinit() 64 iftraceinit(struct interface *ifp, struct ifdebug *ifd) in iftraceinit() argument 78 ifd->ifd_if = ifp; in iftraceinit() 219 dumpif(FILE *fp, struct interface *ifp) in dumpif() argument 221 if (ifp->int_input.ifd_count != 0 || ifp->int_output.ifd_count != 0) { in dumpif() [all …]
|
H A D | trace.h | 81 #define TRACE_INPUT(ifp, src, size) { \ argument 82 if ((tracing & INPUT_BIT) && ((ifp) != NULL)) { \ 83 trace(&(ifp)->int_input, (src), packet, (size), \ 84 (ifp)->int_metric); \ 91 #define TRACE_OUTPUT(ifp, dst, size) { \ argument 92 if ((tracing & OUTPUT_BIT) && ((ifp) != NULL)) { \ 93 trace(&(ifp)->int_output, (dst), packet, (size), \ 94 (ifp)->int_metric); \
|
H A D | input.c | 46 struct interface *ifp); 71 in_data(struct interface *ifp) in in_data() argument 88 if ((len = recvmsg(ifp->int_sock, &rmsg, 0)) < 0) { in in_data() 121 rip_input(&from, len, *(uint_t *)hopcntopt, ifp); in in_data() 129 struct interface *ifp) in rip_input() argument 143 TRACE_INPUT(ifp, from, size); in rip_input() 153 if (ifp->int_flags & RIP6_IFF_NORTEXCH) { in rip_input() 158 ifp->int_name); in rip_input() 185 ifp->int_ipackets++; in rip_input() 210 supply(from, ifp, 0, in rip_input() [all …]
|
/titanic_41/usr/src/cmd/ipf/tools/ |
H A D | ip_fil.c | 438 void fr_forgetifp(ifp, ifs) in fr_forgetifp() argument 439 void *ifp; in fr_forgetifp() 447 if (f->fr_ifa == ifp) 451 if (f->fr_ifa == ifp) 455 if (f->fr_ifa == ifp) 459 if (f->fr_ifa == ifp) 464 if (f->fr_ifa == ifp) 468 if (f->fr_ifa == ifp) 472 if (f->fr_ifa == ifp) 476 if (f->fr_ifa == ifp) [all …]
|
/titanic_41/usr/src/cmd/audio/audioconvert/ |
H A D | main.cc | 67 AudioUnixfile* ifp = NULL; // input & output audio objects in main() local 242 ifp = in main() 244 if (!ifp) { in main() 248 if ((err = ifp->Open()) != AUDIO_SUCCESS) { in main() 253 ifp->Reference(); in main() 262 ohdr = ifp->GetHeader(); in main() 263 ohdr = ifp->GetHeader(); in main() 274 if (verify_conversion(ifp->GetHeader(), ohdr) == -1) { in main() 282 infoString = ifp->GetInfostring(infoStringLen); in main() 289 ohdr = ifp->GetHeader(); in main() [all …]
|
H A D | file.cc | 81 AudioUnixfile* ifp; in open_input_file() local 110 ifp = new AudioRawPipe(fileno(stdin), in open_input_file() 114 ifp = new AudioPipe(fileno(stdin), (FileAccess)ReadOnly, in open_input_file() 118 if (!ifp) { in open_input_file() 122 return (ifp); in open_input_file() 147 ifp = new AudioRawPipe(fd, (FileAccess)ReadOnly, in open_input_file() 162 ifp = new AudioFile(path, in open_input_file() 166 ifp = new AudioRawPipe(fd, in open_input_file() 173 ifp = new AudioRawPipe(fd, (FileAccess)ReadOnly, ihdr, in open_input_file() 177 ifp = new AudioFile(path, (FileAccess)ReadOnly); in open_input_file() [all …]
|
/titanic_41/usr/src/lib/pam_modules/authtok_check/ |
H A D | packlib.c | 43 FILE *ifp; in PWOpen() local 75 if (!(pdesc->ifp = fdopen(fd_i, mode))) { in PWOpen() 84 ifp = pdesc->ifp; in PWOpen() 95 1, ifp); in PWOpen() 100 1, ifp)) { in PWOpen() 102 (void) fclose(ifp); in PWOpen() 109 (void) fclose(ifp); in PWOpen() 116 (void) fclose(ifp); in PWOpen() 142 if (fseek(pwp->ifp, 0L, 0)) { in PWClose() 147 1, pwp->ifp)) { in PWClose() [all …]
|
/titanic_41/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 …]
|
/titanic_41/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 558 ifp = xcp->ifp; in xencons_rxint() 580 cons = ifp->in_cons; in xencons_rxint() 581 prod = ifp->in_prod; in xencons_rxint() 584 cp = (uchar_t *)ifp->in; in xencons_rxint() 604 c = cp[INBUF_IX(cons + i, ifp)]; in xencons_rxint() 612 ifp->in_cons = cons + i; in xencons_rxint() [all …]
|
/titanic_41/usr/src/cmd/saf/ |
H A D | admutil.c | 278 FILE *ifp; /* file pointer for source file */ in do_config() local 302 ifp = fopen(script, "r"); in do_config() 303 if (ifp == NULL) { in do_config() 311 while(fgets(buf, SIZE, ifp)) { in do_config() 318 (void) fclose(ifp); in do_config() 336 ifp = fopen(buf, "r"); in do_config() 337 if (ifp == NULL) { in do_config() 342 while (fgets(buf, SIZE, ifp)) in do_config() 344 (void) fclose(ifp); in do_config()
|
/titanic_41/usr/src/uts/common/io/warlock/ |
H A D | ifp.wlcmd | 7 ### Warlock commands for analyzing the ifp driver alone. 9 ### Tell warlock there's only one ifp struct, so that it will complain 12 one ifp 26 ignore ifp.c:ifp_hp_daemon 31 ifp::ifp_response_mutex \ 32 ifp::ifp_request_mutex \ 33 ifp::ifp_waitq_mutex
|
/titanic_41/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 …]
|
/titanic_41/usr/src/lib/libipadm/common/ |
H A D | ipadm_if.c | 91 ipadm_if_info_t *ifp; in i_ipadm_active_if_info() local 120 for (ifp = *if_info; ifp != NULL; ifp = ifp->ifi_next) { in i_ipadm_active_if_info() 121 if (strcmp(lifrp->lifr_name, ifp->ifi_name) == 0) in i_ipadm_active_if_info() 124 if (ifp == NULL) { in i_ipadm_active_if_info() 125 ifp = calloc(1, sizeof (ipadm_if_info_t)); in i_ipadm_active_if_info() 126 if (ifp == NULL) { in i_ipadm_active_if_info() 130 (void) strlcpy(ifp->ifi_name, lifrp->lifr_name, in i_ipadm_active_if_info() 131 sizeof (ifp->ifi_name)); in i_ipadm_active_if_info() 134 *if_info = ifp; in i_ipadm_active_if_info() 136 last->ifi_next = ifp; in i_ipadm_active_if_info() [all …]
|
/titanic_41/usr/src/cmd/ipf/lib/common/ |
H A D | printifname.c | 16 void printifname(format, name, ifp) in printifname() argument 18 void *ifp; 22 if ((ifp == NULL) && strcmp(name, "-") && strcmp(name, "*")) {
|