Home
last modified time | relevance | path

Searched refs:inp (Results 1 – 25 of 63) sorted by relevance

123

/original-bsd/sys/deprecated/bbnnet/
H A Din_pcb.c40 insque(inp,head);
67 if (inp->inp_lport || inp->inp_laddr.s_addr != INADDR_ANY)
175 (*(advice->bind_used))(inp, lport, inp->inp_laddr.s_addr, 0));
190 struct inpcb *inp; variable
275 inp->inp_lport,
342 remque(inp);
391 for(inp = head->inp_next; inp != head; inp = inp->inp_next)
404 return(inp);
410 for(inp = head->inp_next; inp != head; inp = inp->inp_next)
416 if (fport && (inp->inp_fport != fport) && inp->inp_fport)
[all …]
H A Dhmp_subr.c62 inp->inp_lport = inp->inp_fport = 0;
71 in_pcbdetach(inp);
84 hmp_detach(inp) in hmp_detach() argument
95 hp = intohmpcb(inp);
99 in_pcbdetach(inp);
109 struct inpcb *inp; in hmp_binding_used()
136 hmp_bind(inp,nam)
137 struct inpcb *inp; variable
169 hmp_connect(inp,nam)
170 struct inpcb *inp; variable
[all …]
H A Dudp_usrreq.c48 udp_abort(inp)
49 struct inpcb *inp; variable
61 struct inpcb *inp; in udp_binding_used()
76 if (i != inp)
101 if (i != inp)
144 if (inp != NULL)
158 if (inp == NULL)
294 if (inp)
297 udp_abort(inp);
313 if (inp)
[all …]
H A Dhmp.c64 struct inpcb *inp; variable
111 hp = intohmpcb(inp);
171 hmp_output(inp, m0) in hmp_output() argument
335 hmp_disconnect(inp);
342 hmp_detach(inp);
343 hmp_disconnect(inp);
394 hmp_abort(inp) in hmp_abort() argument
422 struct inpcb *inp; local
424 inp = sotoinpcb(so);
451 struct inpcb *inp; variable
[all …]
H A Dtcp_usrreq.c57 dowedebug(inp, so, filter) in dowedebug() argument
158 tp->t_in_pcb = inp;
169 struct inpcb *inp; in tcp_binding_used()
181 if (i != inp)
212 struct inpcb *inp; in tcp_conn_used()
226 if (i != inp)
378 if (inp)
380 tp = inptotcpcb(inp);
414 if (inp)
700 struct inpcb *inp; variable
[all …]
H A Dtcp_prim.c52 inp = tp->t_in_pcb;
55 t->t_s = inp->inp_laddr;
56 t->t_d = inp->inp_faddr;
85 inp = tp->t_in_pcb;
143 if (inp->inp_route.ro_rt)
318 inp = tcp.inp_next; in tcp_timeo()
319 while (inp != &tcp) in tcp_timeo()
321 next = inp->inp_next; in tcp_timeo()
322 if (tp = inptotcpcb(inp)) in tcp_timeo()
350 inp = next; in tcp_timeo()
[all …]
H A Drdp_usrreq.c160 rdp_newrdpcb(inp) in rdp_newrdpcb() argument
161 register INPCB *inp; in rdp_newrdpcb()
224 INPCB *inp; in rdp_pcbdisconnect()
263 INPCB *inp; in rdp_binding_used()
275 if (i != inp)
300 INPCB *inp; in rdp_conn_used()
314 if (i != inp)
440 if (inp)
475 if (inp)
695 struct inpcb *inp; variable
[all …]
H A Dip_output.c198 ip_send(inp, mp, len, asis)
199 struct inpcb *inp; variable
254 if (inp->inp_optlen > 0)
267 bcopy(inp->inp_options, (caddr_t)(p+1), (unsigned)inp->inp_optlen);
278 (int)inp->inp_optlen, inp);
345 if ((so = inp->inp_socket) &&
350 inp->inp_route.ro_rt = rt;
468 register struct inpcb *inp; in ip_reroute()
473 return(ro->ro_rt = ip_route(&inp->inp_laddr, &inp->inp_faddr));
505 for(inp = head->inp_next; inp != head; inp = inp->inp_next)
[all …]
H A Dudp.c47 register struct inpcb *inp; local
117 if (inp != NULL)
134 sorcv = &inp->inp_socket->so_rcv;
146 sorwakeup(inp->inp_socket);
170 udp_output(inp, mp)
171 struct inpcb *inp; variable
204 p->u_src = inp->inp_lport;
205 p->u_dst = inp->inp_fport;
213 p->u_s = inp->inp_laddr;
214 p->u_d = inp->inp_faddr;
[all …]
H A Dhmp_traps.c122 struct inpcb inp; local
135 bzero((caddr_t)&inp,sizeof(inp));
138 inp.inp_ppcb = &hp;
139 hp.hp_inpcb = &inp;
160 inp.inp_faddr = mon_hosts[i].sin_addr;
161 inp.inp_fport = mon_hosts[i].sin_port;
163 (void) hmp_output(&inp,m);
/original-bsd/sys/netinet/
H A Din_pcb.c41 MALLOC(inp, struct inpcb *, sizeof(*inp), M_PCB, M_NOWAIT);
42 if (inp == NULL)
44 bzero((caddr_t)inp, sizeof(*inp));
67 if (inp->inp_lport || inp->inp_laddr.s_addr != INADDR_ANY)
275 remque(inp);
358 for (inp = head->inp_next; inp != head;) {
364 inp = inp->inp_next;
367 oinp = inp;
368 inp = inp->inp_next;
381 in_losing(inp) in in_losing() argument
[all …]
H A Dudp_usrreq.c157 for (inp = udb.inp_next; inp != &udb; inp = inp->inp_next) {
218 inp = udp_last_inpcb;
225 if (inp)
229 if (inp == 0) {
422 error = ip_output(m, inp->inp_options, &inp->inp_route,
467 if (inp != NULL) {
483 udp_detach(inp);
537 udp_detach(inp);
581 udp_detach(inp) in udp_detach() argument
582 struct inpcb *inp; in udp_detach()
[all …]
H A Draw_ip.c62 register struct inpcb *inp; local
66 for (inp = rawinpcb.inp_next; inp != &rawinpcb; inp = inp->inp_next) {
67 if (inp->inp_ip.ip_p && inp->inp_ip.ip_p != ip->ip_p)
69 if (inp->inp_laddr.s_addr &&
72 if (inp->inp_faddr.s_addr &&
87 last = inp->inp_socket;
131 opts = inp->inp_options;
141 return (ip_output(m, opts, &inp->inp_route, flags, inp->inp_moptions));
244 if (inp)
267 if (inp == 0)
[all …]
H A Dtcp_usrreq.c70 inp = sotoinpcb(so);
92 if (inp) {
93 tp = intotcpcb(inp);
108 if (inp) {
330 struct inpcb *inp; local
336 inp = sotoinpcb(so);
337 if (inp == NULL) {
348 tp = intotcpcb(inp);
414 struct inpcb *inp; local
425 inp = sotoinpcb(so);
[all …]
H A Dtcp_subr.c83 n->ti_src = inp->inp_laddr;
84 n->ti_dst = inp->inp_faddr;
181 tcp_newtcpcb(inp) in tcp_newtcpcb() argument
182 struct inpcb *inp; in tcp_newtcpcb()
194 tp->t_inpcb = inp;
332 inp->inp_ppcb = 0;
337 in_pcbdetach(inp);
354 tcp_notify(inp, error) in tcp_notify() argument
355 struct inpcb *inp; in tcp_notify()
411 tcp_quench(inp, errno) in tcp_quench() argument
[all …]
/original-bsd/old/cpp/
H A Dyylex.c34 if (*inp=='\n') return(stop); /* end of #if */ in yylex()
40 if (*inp<='9' && *inp>='0') {/* a number */ in yylex()
41 if (*inp=='0') yylval= (inp[1]=='x' || inp[1]=='X') ? in yylex()
42 tobinary(inp+2,16) : tobinary(inp+1,8); in yylex()
43 else yylval=tobinary(inp,10); in yylex()
45 } else if (isid(*inp)) { in yylex()
54 if (inp[1]=='\\') {/* escaped */ in yylex()
58 if (inp[2]<='9' && inp[2]>='0') yylval=c=tobinary(inp+2,8); in yylex()
59 else yylval=inp[2]; in yylex()
60 } else yylval=inp[1]; in yylex()
[all …]
H A Dcpp.c319 dump(); np=pbuf-(p-inp); op=inp;
321 macdam += np-inp; outp=inp=np;
574 if (*inp=='.' && !intss()) *inp='#';
576 while (inp<p) *cp++= *inp++;
582 while (inp<p) {if (*inp=='.' && !intss()) *inp='#'; *cp++= *inp++;}
584 while (inp<p) *cp++= *inp++;
697 outp=inp=p; p=cotoken(p); pin=inp;
758 *--inp=SALT; outp=inp; ++flslvl; np=slookup(inp,p,0); --flslvl;
803 } while (!isnum(*inp) && *inp != '\n');
822 while (inp < p && *inp != '"' &&
[all …]
/original-bsd/sbin/fsck/
H A Dpass3.c23 register struct inoinfo **inpp, *inp; in pass3() local
28 inp = *inpp; in pass3()
29 if (inp->i_number == ROOTINO || in pass3()
30 !(inp->i_parent == 0 || statemap[inp->i_number] == DSTATE)) in pass3()
32 if (statemap[inp->i_number] == DCLEAR) in pass3()
35 orphan = inp->i_number; in pass3()
36 if (inp->i_parent == 0 || in pass3()
37 statemap[inp->i_parent] != DSTATE || in pass3()
40 inp = getinoinfo(inp->i_parent); in pass3()
42 (void)linkup(orphan, inp->i_dotdot); in pass3()
[all …]
H A Dpass2.c102 inp = *inpp; in pass2()
115 getpathname(pathbuf, inp->i_number, inp->i_number); in pass2()
120 inp->i_isize = roundup(inp->i_isize, DIRBLKSIZ); in pass2()
142 if (inp->i_parent == 0 || inp->i_isize == 0) in pass2()
147 if (inp->i_dotdot == inp->i_parent || in pass2()
151 inp->i_dotdot = inp->i_parent; in pass2()
155 (void)makeentry(inp->i_number, inp->i_parent, ".."); in pass2()
159 fileerror(inp->i_parent, inp->i_number, in pass2()
165 inp->i_dotdot = inp->i_parent; in pass2()
166 (void)changeino(inp->i_number, "..", inp->i_parent); in pass2()
[all …]
/original-bsd/sys/netiso/
H A Dtp_inet.c102 struct inpcb *inp; variable
138 struct inpcb *inp; in in_putsufx()
143 bcopy(sufxloc, (caddr_t)&inp->inp_fport, sizeof(inp->inp_fport));
167 struct inpcb *inp; in in_recycle_tsuffix()
169 inp->inp_fport = inp->inp_lport = 0;
264 struct inpcb *inp;
339 struct inpcb *inp; in tpip_output()
544 tpin_quench(inp) in tpin_quench() argument
545 struct inpcb *inp; in tpin_quench()
644 tpin_abort(inp) in tpin_abort() argument
[all …]
H A Dtuba_usrreq.c60 register struct inpcb *inp; variable
73 inp = sotoinpcb(so);
83 if (inp) {
84 tp = intotcpcb(inp);
110 inp = sotoinpcb(so);
111 remque(inp);
112 insque(inp, &tuba_inpcb);
113 inp->inp_head = &tuba_inpcb;
114 tp = intotcpcb(inp);
160 if (inp->inp_lport == 0 &&
[all …]
/original-bsd/bin/dd/
H A Dconv.c34 u_char *inp, *t; in def() local
37 for (inp = in.dbp - (cnt = in.dbrcnt); cnt--; ++inp) in def()
38 *inp = t[*inp]; in def()
78 u_char *inp, *outp, *t; in block() local
97 in.dbp = inp + cnt - 1; in block()
187 u_char *inp, *t; in unblock() local
192 *--inp = t[*inp]; in unblock()
198 for (inp = in.db; in.dbcnt >= cbsz; inp += cbsz, in.dbcnt -= cbsz) { in unblock()
199 for (t = inp + cbsz - 1; t >= inp && *t == ' '; --t); in unblock()
200 if (t >= inp) { in unblock()
[all …]
/original-bsd/usr.bin/pascal/pxref/
H A Dpxref.p173 inp :file of char;
184 get(inp);
198 get(inp)
201 if not eoln(inp) then
206 reset(inp,inpfile);
215 read(inp,line[lineptr]);
221 inputfile[k]:=inp^;
224 until inp^ = '"';
235 if (inp^ = ' ') or (inp^ = tab) then begin
244 a[k] := inp^;
[all …]
/original-bsd/lib/libcurses/
H A Dgetch.c22 register int inp, weset; local
37 inp = getchar();
39 __CTRACE("wgetch got '%s'\n", unctrl(inp));
43 win->cury + win->begy, win->curx + win->begx, inp);
44 waddch(win, inp);
48 return (inp);
/original-bsd/old/refer/refer/
H A Dglue4.c19 char *inp, inb[500]; local
25 strcpy (inp=inb, in);
31 for(cv[nv++] = "fgrep"; c = *inp; inp++)
34 c = *inp = 0;
36 *inp = tolower(c);
39 cv[nv++] = inp;
41 *inp = 0;

123