Searched defs:ifp (Results 1 - 25 of 54) sorted by relevance

123

/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dif.c48 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 Doutput.c50 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 Dinput.c46 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 Dmain.c81 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);
H A Dstartup.c44 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 Dtrace.c48 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 Dtables.c235 int metric, int tag, boolean_t ifroute, struct interface *ifp)
284 if (ifp->int_flags & RIP6_IFF_PRIVATE)
289 rt->rt_ifp = ifp;
300 prefix_length, ifp->int_name, rt->rt_flags);
326 struct interface *ifp)
340 if (!IN6_ARE_ADDR_EQUAL(&rt->rt_router, gate) || rt->rt_ifp != ifp)
369 rt->rt_ifp = ifp;
409 rt->rt_prefix_length, ifp->int_name, rt->rt_flags);
472 rtpurgeif(struct interface *ifp) argument
486 if (rt->rt_ifp == ifp) {
234 rtadd(struct in6_addr *dst, struct in6_addr *gate, int prefix_length, int metric, int tag, boolean_t ifroute, struct interface *ifp) argument
325 rtchange(struct rt_entry *rt, struct in6_addr *gate, short metric, struct interface *ifp) argument
[all...]
/illumos-gate/usr/src/cmd/saf/
H A Dadmutil.c278 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/cmd/audio/audioconvert/
H A Dfile.cc81 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...]
H A Dmain.cc67 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 Dconvert.cc553 AudioStream* ifp,
561 ihdr = ifp->GetHeader();
671 AudioStream* ifp,
688 ihdr = ifp->GetHeader();
692 if ((err = build_conversion_list(list, ifp, ofp)) != AUDIO_SUCCESS) {
695 Err(MGET("Cannot convert %s to %s\n"), ifp->GetName(), msg1);
704 ifp->GetName(), msg1);
710 ifp->GetName(), msg1);
718 ifp->GetName(), msg1, msg2);
756 if (err = ifp
551 build_conversion_list( struct conv_list *&list, AudioStream* ifp, AudioStream* ofp) argument
670 do_convert( AudioStream* ifp, AudioStream* ofp) argument
[all...]
/illumos-gate/usr/src/cmd/avs/dsw/
H A Diicpbmp.c129 FILE *ifp, *ofp; local
169 if ((ifp = fopen(old_bitmap, "r")) == NULL) {
177 if (fread(&header, sizeof (header), 1, ifp) != 1) {
215 while ((i = fread(cp_buffer, sizeof (char), sizeof (cp_buffer), ifp))
223 (void) fclose(ifp);
H A Diicpshd.c125 FILE *ifp; local
195 if ((ifp = fopen(real_bitmap, "r+")) == NULL) {
201 if (fread(&header, DSW_CBLK_FBA, FBA_SIZE(1), ifp) != FBA_SIZE(1)) {
224 rewind(ifp);
225 if (fwrite(&header, DSW_CBLK_FBA, FBA_SIZE(1), ifp) != FBA_SIZE(1)) {
231 (void) fclose(ifp);
/illumos-gate/usr/src/lib/pam_modules/authtok_check/
H A Dpacklib.c43 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...]
H A Dpacker.h54 FILE *ifp; member in struct:__anon4257
/illumos-gate/usr/src/lib/print/libprint/common/
H A Dnss_write.c93 FILE *ifp, local
125 if ((ifp = fdopen(fd, "r")) == NULL) {
132 (void) fclose(ifp);
160 while (freadline(ifp, buf, sizeof (buf)) != NULL) {
187 (void) fclose(ifp); /* releases the lock, after rename on purpose */
/illumos-gate/usr/src/uts/common/inet/ipf/
H A Dip_log.c246 void *ifp; local
249 qif_t *ifp; local
251 struct ifnet *ifp; local
258 ifp = fin->fin_ifp;
328 if (net_getifname(nif, (phy_if_t)ifp,
336 (void) strncpy(ipfl.fl_ifname, IFNAME(ifp), sizeof(ipfl.fl_ifname));
341 COPYIFNAME(ifp, ipfl.fl_ifname);
343 ipfl.fl_unit = (u_int)ifp->if_unit;
345 if ((ipfl.fl_ifname[0] = ifp->if_name[0]))
346 if ((ipfl.fl_ifname[1] = ifp
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/lib/ipmgmtd/
H A Dipmgmt_main.c532 ipadm_if_info_t *ifp; local
537 if ((ifp = cbarg.cb_ifinfo) != NULL) {
538 if ((af == AF_INET && (ifp->ifi_pflags & IFIF_IPV4)) ||
539 (af == AF_INET6 && (ifp->ifi_pflags & IFIF_IPV6))) {
543 free(ifp);
H A Dipmgmt_door.c719 ipadm_if_info_t *ifp, *rifp, *curifp; local
742 for (ifp = cbarg.cb_ifinfo; ifp != NULL; ifp = ifp->ifi_next)
744 rbufsize = sizeof (*rvalp) + count * sizeof (*ifp);
750 ifp = cbarg.cb_ifinfo;
759 (void) bcopy(ifp, rifp, sizeof (*rifp));
761 curifp = ifp->ifi_next;
762 free(ifp);
[all...]
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dipftest.c79 struct ifnet *ifp; local
221 ifp = get_unit(iface, IP_V(ip), ifs);
222 if (ifp == NULL) {
240 i = fr_check(ip, hlen, ifp, dir, &m, ifs);
286 if (dir && (ifp != NULL) && IP_V(ip) && (m != NULL))
288 (*ifp->if_output)(ifp, (void *)m, NULL);
291 (*ifp->if_output)(ifp, (void *)m, NULL, 0, 0);
293 (*ifp
[all...]
H A Dip_fil.c438 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/print/bsd-sysv-commands/
H A Din.lpd.c370 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/cmd/cmd-inet/usr.sbin/in.routed/
H A Dinput.c59 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 Doutput.c57 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 Dparms.c56 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...]

Completed in 98 milliseconds

123