/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/ |
H A D | if.c | 48 struct interface *ifp; local 50 for (ifp = ifnet; ifp != NULL; ifp = ifp->int_next) { 51 if (ifp->int_name != NULL && 52 strcmp(ifp->int_name, name) == 0) 55 return (ifp); 72 struct interface *ifp; local 91 for (ifp [all...] |
H A D | output.c | 50 struct interface *ifp; local 52 for (ifp = ifnet; ifp != NULL; ifp = ifp->int_next) { 53 if ((ifp->int_flags & RIP6_IFF_UP) == 0) 55 if (ifp->int_flags & RIP6_IFF_NORTEXCH) { 60 ifp->int_name); 65 if (ifp->int_sock == -1) 67 if (ifp 76 solicit(struct sockaddr_in6 *sin6, struct interface *ifp) argument 89 struct interface *ifp; local 116 sendpacket(struct sockaddr_in6 *sin6, struct interface *ifp, int size, int flags) argument 133 supply(struct sockaddr_in6 *sin6, struct interface *ifp, int rtstate, boolean_t splith) argument [all...] |
H A D | startup.c | 44 static void addrouteforif(struct interface *ifp); 64 struct interface *ifp; local 102 for (ifp = ifnet; ifp != NULL; ifp = ifp->int_next) 103 ifp->int_flags |= RIP6_IFF_MARKED; 119 ifp = if_ifwithname(lifr.lifr_name); 120 if (ifp != NULL) 121 ifp 364 addrouteforif(struct interface *ifp) argument 505 resetup_listen_sock(struct interface *ifp, int newindex) argument [all...] |
H A D | trace.h | 81 #define TRACE_INPUT(ifp, src, size) { \ 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) { \ 92 if ((tracing & OUTPUT_BIT) && ((ifp) != NULL)) { \ 93 trace(&(ifp)->int_output, (dst), packet, (size), \ 94 (ifp)->int_metric); \
|
H A D | interface.h | 61 #define IFMETRIC(ifp) ((ifp != NULL) ? (ifp)->int_metric : 1)
|
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) argument 55 if (iftraceinit(ifp, &ifp->int_input) && 56 iftraceinit(ifp, &ifp->int_output)) 60 (ifp->int_name != NULL) ? ifp->int_name : "(noname)"); 64 iftraceinit(struct interface *ifp, struc argument 219 dumpif(FILE *fp, struct interface *ifp) argument [all...] |
H A D | input.c | 46 struct interface *ifp); 71 in_data(struct interface *ifp) argument 88 if ((len = recvmsg(ifp->int_sock, &rmsg, 0)) < 0) { 121 rip_input(&from, len, *(uint_t *)hopcntopt, ifp); 129 struct interface *ifp) 143 TRACE_INPUT(ifp, from, size); 153 if (ifp->int_flags & RIP6_IFF_NORTEXCH) { 158 ifp->int_name); 185 ifp->int_ipackets++; 210 supply(from, ifp, 128 rip_input(struct sockaddr_in6 *from, int size, uint_t hopcount, struct interface *ifp) argument 508 dynamic_update(struct interface *ifp) argument [all...] |
H A D | main.c | 81 struct interface *ifp; local 283 for (ifp = ifnet; ifp != NULL; 284 ifp = ifp->int_next) { 285 if (poll_ifs[i].fd == ifp->int_sock) 286 in_data(ifp);
|
/illumos-gate/usr/src/cmd/ipf/lib/common/ |
H A D | printifname.c | 16 void printifname(format, name, ifp) 18 void *ifp; 22 if ((ifp == NULL) && strcmp(name, "-") && strcmp(name, "*")) {
|
/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) argument 316 link_in((void **)&ifnet, ifp, offsetof(struct interface, int_link)); 318 HADD(&ahash_tbl, ifp); 319 HADD(&nhash_tbl, ifp); 321 if (ifp->int_if_flags & IFF_BROADCAST) 322 HADD(&bhash_tbl, ifp); 339 size = strcspn(ifp->int_name, ":"); 340 (void) strncpy(phyi->phyi_name, ifp->int_name, 345 link_in((void **)&phyi->phyi_interface, ifp, 347 ifp 357 struct interface *ifp, *possible = NULL; local 395 struct interface *ifp; local 437 struct interface *ifp; local 451 struct interface *ifp; local 495 addr_on_ifp(in_addr_t addr, struct interface *ifp, struct interface **best) argument 541 struct interface *ifp, *maybe; local 575 ripv1_mask_net(in_addr_t addr, const struct interface *ifp) argument 635 ripv1_mask_host(in_addr_t addr, const struct interface *ifp) argument 692 struct interface *ifp; local 746 check_remote(struct interface *ifp) argument 775 ifdel(struct interface *ifp) argument 878 if_sick(struct interface *ifp, boolean_t recurse) argument 902 if_bad(struct interface *ifp, boolean_t recurse) argument 962 if_ok(struct interface *ifp, const char *type, boolean_t recurse) argument 999 remote_address_ok(struct interface *ifp, in_addr_t addr) argument 1031 struct interface ifs, *ifp, *ifp1; local 1768 check_net_syn(struct interface *ifp) argument 1817 addrouteforif(struct interface *ifp) argument 1924 get_if_kstats(struct interface *ifp, struct phyi_data *newdata) argument 1987 should_supply(struct interface *ifp) argument [all...] |
H A D | rdisc.c | 100 #define PREF(p, ifp) ((p) <= (uint32_t)(ifp)->int_metric ? ((p) != 0 ? 1 : 0) \ 101 : (p) - ((ifp)->int_metric)) 112 struct interface *ifp, 129 ifp ? ifp->int_name : "?", 146 ifp ? ifp->int_name : "?", 216 set_rdisc_mg(struct interface *ifp, argument 227 if ((ifp 109 trace_rdisc(const char *act, uint32_t from, uint32_t to, struct interface *ifp, union ad_u *p, uint_t len) argument 297 struct interface *ifp; local 454 if_bad_rdisc(struct interface *ifp) argument 494 if_ok_rdisc(struct interface *ifp) argument 512 struct interface *ifp; local 579 struct interface *ifp; local 875 parse_ad(uint32_t from, in_addr_t gate, uint32_t pref, ushort_t life, struct interface *ifp) argument 1004 send_rdisc(union ad_u *p, uint_t p_size, struct interface *ifp, in_addr_t dst, dstaddr_t type) argument 1092 send_adv(struct interface *ifp, in_addr_t dst, dstaddr_t type) argument 1131 struct interface *ifp; local 1174 struct interface *ifp; local 1220 ck_icmp(const char *act, in_addr_t from, struct interface *ifp, in_addr_t to, union ad_u *p, uint_t len) argument 1273 struct interface *ifp; local 1406 rdisc_suppress(struct interface *ifp) argument 1421 rdisc_restore(struct interface *ifp) argument [all...] |
H A D | parms.c | 56 get_parms(struct interface *ifp) argument 62 if (ifp == NULL) 68 strcmp(ifp->int_name, parmp->parm_name) == 0 || 70 on_net(ifp->int_addr, 77 ifp->int_state |= parmp->parm_int_state; 82 ifp->int_auth[num_passwds++] = 86 ifp->int_rdisc_pref = parmp->parm_rdisc_pref; 88 ifp->int_rdisc_int = parmp->parm_rdisc_int; 90 ifp->int_d_metric = parmp->parm_d_metric; 92 ifp 222 struct interface *ifp; local 1019 struct interface *ifp; local [all...] |
H A D | input.c | 59 struct interface *ifp, *ifp1, *ifp2; local 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; local 143 * ifp is the interface via which the packet arrived. 145 ifp 154 input(struct sockaddr_in *from, struct interface *ifp, struct rip *rip, int cc) argument [all...] |
H A D | output.c | 57 struct interface *ifp; /* usually output interface */ member in struct:__anon260 103 struct interface *ifp, 120 if (ifp == NULL && type == OUT_MULTICAST) { 155 ifp != NULL && ifp->int_phys != NULL) ? 156 ifp->int_phys->phyi_index : 0; 158 if (rip_sock_interface != ifp) { 164 if (ifp != NULL) { 165 addr.s_addr = (ifp->int_if_flags & IFF_POINTOPOINT) ? 166 ifp 101 output(enum output_type type, struct sockaddr_in *dst, struct interface *ifp, struct rip *buf, int size) argument 249 find_auth(struct interface *ifp) argument 741 supply(struct sockaddr_in *dst, struct interface *ifp, enum output_type type, int flash, int vers, boolean_t passwd_ok) argument 913 struct interface *ifp; local 986 struct interface *ifp; local [all...] |
H A D | table.c | 212 * either has the same (gateway, ifp), or if its state 317 struct interface *ifp, 346 nc_ag.ag_ifp = ifp; 425 if (ag->ag_nhop == nhop && ag->ag_ifp == ifp) { 442 ag->ag_ifp = ifp; 468 * differing gate nexthop/or ifp. Flush 494 (ag->ag_nhop == nhop && ag->ag_ifp == ifp && 541 ag->ag_ifp = ifp; 542 ifp = xifp; 649 nag->ag_ifp = ifp; 314 ag_check(in_addr_t dst, in_addr_t mask, in_addr_t gate, struct interface *ifp, in_addr_t nhop, uint8_t metric, uint8_t pref, uint32_t seqno, uint16_t tag, uint16_t state, void (*out)(struct ag_info *)) argument 794 rtioctl(int action, in_addr_t dst, in_addr_t gate, in_addr_t mask, struct interface *ifp, uint8_t metric, int flags) argument 904 kern_find(in_addr_t dst, in_addr_t mask, in_addr_t gate, struct interface *ifp, struct khash ***ppk) argument 927 kern_alternate(in_addr_t dst, in_addr_t mask, in_addr_t gate, struct interface *ifp, struct khash ***ppk) argument 945 kern_add(in_addr_t dst, uint32_t mask, in_addr_t gate, struct interface *ifp) argument 969 kern_flush_ifp(struct interface *ifp) argument 1019 kern_check_static(struct khash *k, struct interface *ifp) argument 1120 struct interface *ifp = ifptr; local 1302 struct interface *ifp; local 1352 struct interface *ifp; local 1571 struct interface *ifp; local 1883 struct interface *ifp; local 2177 del_static(in_addr_t dst, in_addr_t mask, in_addr_t gate, struct interface *ifp, int gone) argument 2572 struct interface *ifp, *ifp1; local 2726 struct interface *ifp; local 2801 struct interface *ifp; local 2883 struct interface *ifp; local 2906 struct interface *ifp; local [all...] |
H A D | main.c | 759 struct interface *ifp; local 769 for (ifp = ifnet; ifp != NULL; ifp = ifp->int_next) { 770 if ((ifp->int_if_flags & IFF_MULTICAST) && 771 !IS_IFF_QUIET(ifp->int_if_flags) && 772 !IS_RIP_IN_OFF(ifp->int_state) && 773 !(ifp->int_state & IS_DUP)) { 777 (ifp 802 rip_mcast_on(struct interface *ifp) argument 823 rip_mcast_off(struct interface *ifp) argument 843 rip_on(struct interface *ifp) argument [all...] |
H A D | trace.c | 810 trace_if(const char *act, struct interface *ifp) argument 817 ifp->int_name, 818 ifp->int_phys != NULL ? ifp->int_phys->phyi_index : 0); 820 naddr_ntoa(ifp->int_addr), 821 addrname(((ifp->int_if_flags & IFF_POINTOPOINT) ? 822 ifp->int_dstaddr : htonl(ifp->int_net)), 823 ifp->int_mask, 1)); 824 if (ifp 1081 struct interface *ifp; local 1106 trace_rip(const char *dir1, const char *dir2, struct sockaddr_in *who, struct interface *ifp, struct rip *msg, int size) argument [all...] |
/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | ip_fil.c | 438 void fr_forgetifp(ifp, ifs) 439 void *ifp; 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) 612 struct ifnet *ifp, **ifpp, **old_ifneta; local 735 struct ifnet *ifp, **ifpp; local 771 struct ifnet *ifp = fdp->fd_ifp; local 994 struct ifnet *ifp = ifptr; local [all...] |
/illumos-gate/usr/src/cmd/audio/audioconvert/ |
H A D | main.cc | 67 AudioUnixfile* ifp = NULL; // input & output audio objects local 242 ifp = 244 if (!ifp) { 248 if ((err = ifp->Open()) != AUDIO_SUCCESS) { 253 ifp->Reference(); 262 ohdr = ifp->GetHeader(); 263 ohdr = ifp->GetHeader(); 274 if (verify_conversion(ifp->GetHeader(), ohdr) == -1) { 282 infoString = ifp->GetInfostring(infoStringLen); 289 ohdr = ifp [all...] |
H A D | file.cc | 81 AudioUnixfile* ifp; local 110 ifp = new AudioRawPipe(fileno(stdin), 114 ifp = new AudioPipe(fileno(stdin), (FileAccess)ReadOnly, 118 if (!ifp) { 122 return (ifp); 147 ifp = new AudioRawPipe(fd, (FileAccess)ReadOnly, 162 ifp = new AudioFile(path, 166 ifp = new AudioRawPipe(fd, 173 ifp = new AudioRawPipe(fd, (FileAccess)ReadOnly, ihdr, 177 ifp [all...] |
/illumos-gate/usr/src/cmd/saf/ |
H A D | admutil.c | 278 FILE *ifp; /* file pointer for source file */ local 302 ifp = fopen(script, "r"); 303 if (ifp == NULL) { 311 while(fgets(buf, SIZE, ifp)) { 318 (void) fclose(ifp); 336 ifp = fopen(buf, "r"); 337 if (ifp == NULL) { 342 while (fgets(buf, SIZE, ifp)) 344 (void) fclose(ifp);
|
/illumos-gate/usr/src/lib/pam_modules/authtok_check/ |
H A D | packlib.c | 43 FILE *ifp; local 75 if (!(pdesc->ifp = fdopen(fd_i, mode))) { 84 ifp = pdesc->ifp; 95 1, ifp); 100 1, ifp)) { 102 (void) fclose(ifp); 109 (void) fclose(ifp); 116 (void) fclose(ifp); 142 if (fseek(pwp->ifp, [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, argument 380 char *host = remote_host_name(ifp); 406 receive_control_file(papi_service_t svc, FILE *ifp, FILE *ofp, int size) argument 419 if (((rc = fread(ptr, 1, size, ifp)) == 0) && 420 (feof(ifp) != 0)) { 430 if (fgetc(ifp) != 0) { 440 receive_data_file(FILE *ifp, FILE *ofp, int size) argument 455 if (((rc = fread(buf, 1, rc, ifp)) == 0) && 456 (feof(ifp) != 0)) { 479 if (fgetc(ifp) ! 489 berkeley_receive_files(papi_service_t svc, FILE *ifp, FILE *ofp, char *printer) argument 552 berkeley_transfer_files(papi_service_t svc, FILE *ifp, FILE *ofp, char *printer) argument 635 FILE *ifp = stdin; local [all...] |
/illumos-gate/usr/src/uts/common/xen/io/ |
H A D | xencons.c | 256 xcp->ifp = (volatile struct xencons_interface *)HYPERVISOR_console_page; 524 #define INBUF_IX(ix, ifp) (DOMAIN_IS_INITDOMAIN(xen_info) ? \ 525 (ix) : MASK_XENCONS_IDX((ix), (ifp)->in)) 542 volatile struct xencons_interface *ifp; local 558 ifp = xcp->ifp; 580 cons = ifp->in_cons; 581 prod = ifp->in_prod; 584 cp = (uchar_t *)ifp->in; 604 c = cp[INBUF_IX(cons + i, ifp)]; 734 volatile struct xencons_interface *ifp = xcp->ifp; local 860 volatile struct xencons_interface *ifp = xcp->ifp; local 1282 volatile struct xencons_interface *ifp = xcp->ifp; local 1320 volatile struct xencons_interface *ifp = xcp->ifp; local [all...] |
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | localaddr.c | 181 void printifaddr (struct ifaddrs *ifp) argument 183 printf ("%p={\n", ifp); 184 /* printf ("\tnext=%p\n", ifp->ifa_next); */ 185 printf ("\tname=%s\n", ifp->ifa_name); 188 int ch, flags = ifp->ifa_flags; 204 if (ifp->ifa_addr) 205 printf ("\n\taddr="), printaddr (ifp->ifa_addr); 206 if (ifp->ifa_netmask) 207 printf ("\n\tnetmask="), printaddr (ifp->ifa_netmask); 208 if (ifp 428 struct ifaddrs *ifp_head, *ifp, *ifp2; local [all...] |