Searched refs:inp (Results 1 - 25 of 47) sorted by relevance

12

/darwin-on-arm/xnu/bsd/netinet/
H A Din_pcb.c264 struct inpcb *inp; local
279 inp = (struct inpcb *) zalloc(pcbinfo->ipi_zone);
280 if (inp == NULL)
282 bzero((caddr_t)inp, sizeof(*inp));
288 inp = (struct inpcb *)(void *)so->so_saved_pcb;
289 temp = inp->inp_saved_ppcb;
290 bzero((caddr_t) inp, sizeof(*inp));
291 inp
364 struct inpcb *inp; local
425 in_pcbbind(struct inpcb *inp, struct sockaddr *nam, struct proc *p) argument
693 in_pcbladdr(struct inpcb *inp, struct sockaddr *nam, struct sockaddr_in *plocal_sin, struct ifnet **outif) argument
896 in_pcbconnect(struct inpcb *inp, struct sockaddr *nam, struct proc *p, struct ifnet **outif) argument
960 in_pcbdisconnect(struct inpcb *inp) argument
981 in_pcbdetach(struct inpcb *inp) argument
1029 in_pcbdispose(struct inpcb *inp) argument
1110 struct inpcb *inp; local
1138 struct inpcb *inp; local
1167 struct inpcb *inp; local
1196 in_losing(struct inpcb *inp) argument
1243 in_rtchange(struct inpcb *inp, __unused int errno) argument
1270 struct inpcb *inp; local
1370 struct inpcb *inp; local
1506 struct inpcb *inp; local
1623 in_pcbinshash(struct inpcb *inp, int locked) argument
1698 in_pcbrehash(struct inpcb *inp) argument
1722 in_pcbremlists(struct inpcb *inp) argument
1850 inpcb_to_compat( struct inpcb *inp, struct inpcb_compat *inp_compat) argument
1877 inpcb_to_xinpcb64( struct inpcb *inp, struct xinpcb64 *xinp) argument
1928 inp_route_copyout(struct inpcb *inp, struct route *dst) argument
1947 inp_route_copyin(struct inpcb *inp, struct route *src) argument
1964 inp_bindif(struct inpcb *inp, unsigned int ifscope) argument
2006 inp_nocellular(struct inpcb *inp, unsigned int val) argument
2030 inp_calc_flowhash(struct inpcb *inp) argument
2071 inp_fc_addinp(struct inpcb *inp) argument
2157 inp_fc_feedback(struct inpcb *inp) argument
2188 inp_reset_fc_state(struct inpcb *inp) argument
2210 inp_set_fc_state(struct inpcb *inp, int advcode) argument
2245 inp_flush(struct inpcb *inp, int optval) argument
2272 struct inpcb *inp = NULL; local
[all...]
H A Dudp_usrreq.c257 register struct inpcb *inp; local
423 LIST_FOREACH(inp, &udb, inp_list) {
424 if (inp->inp_socket == NULL)
426 if (inp != sotoinpcb(inp->inp_socket))
427 panic("udp_input: bad so back ptr inp=%p\n", inp);
429 if ((inp->inp_vflag & INP_IPV4) == 0)
434 !(inp->inp_flags & INP_RECV_ANYIF))
437 if ((inp
882 struct inpcb *inp; local
919 struct inpcb *inp; local
985 struct inpcb *inp, **inp_list; variable in typeref:struct:inpcb
1089 struct inpcb *inp, **inp_list; variable in typeref:struct:inpcb
1685 struct inpcb *inp; local
1698 struct inpcb *inp; local
1722 struct inpcb *inp; local
1739 struct inpcb *inp; local
1759 struct inpcb *inp; local
1772 struct inpcb *inp; local
1795 struct inpcb *inp; local
1809 struct inpcb *inp; local
1886 struct inpcb *inp = sotoinpcb(so); local
1901 struct inpcb *inp, *inpnxt; local
[all...]
H A Dtcp_usrreq.c181 struct inpcb *inp = sotoinpcb(so); local
186 if (inp) {
214 struct inpcb *inp = sotoinpcb(so); local
218 if (inp == 0 || (inp->inp_state == INPCB_STATE_DEAD)) {
222 tp = intotcpcb(inp);
238 if (inp == 0 || (inp->inp_state == INPCB_STATE_DEAD)) { \
241 tp = intotcpcb(inp); \
267 struct inpcb *inp local
300 struct inpcb *inp = sotoinpcb(so); local
360 struct inpcb *inp = sotoinpcb(so); local
376 struct inpcb *inp = sotoinpcb(so); local
403 struct inpcb *inp = sotoinpcb(so); local
449 struct inpcb *inp = sotoinpcb(so); local
510 struct inpcb *inp = sotoinpcb(so); local
531 struct inpcb *inp = sotoinpcb(so); local
557 struct inpcb *inp = sotoinpcb(so); local
599 struct inpcb *inp = sotoinpcb(so); local
620 struct inpcb *inp = sotoinpcb(so); local
669 struct inpcb *inp = sotoinpcb(so); local
797 struct inpcb *inp = sotoinpcb(so); local
821 struct inpcb *inp = sotoinpcb(so); local
892 struct inpcb *inp = tp->t_inpcb, *oinp; local
1011 struct inpcb *inp = tp->t_inpcb, *oinp; local
1122 struct inpcb *inp = tp->t_inpcb; local
1187 struct inpcb *inp = NULL; local
1278 struct inpcb *inp = (struct inpcb*)so->so_pcb; local
1319 struct inpcb *inp; local
1674 struct inpcb *inp; local
[all...]
H A Draw_ip.c201 register struct inpcb *inp; local
211 LIST_FOREACH(inp, &ripcb, inp_list) {
213 if ((inp->inp_vflag & INP_IPV4) == 0)
216 if (inp->inp_ip_p && (inp->inp_ip_p != ip->ip_p))
218 if (inp->inp_laddr.s_addr &&
219 inp->inp_laddr.s_addr != ip->ip_dst.s_addr)
221 if (inp->inp_faddr.s_addr &&
222 inp->inp_faddr.s_addr != ip->ip_src.s_addr)
257 last = inp;
354 register struct inpcb *inp = sotoinpcb(so); local
518 struct inpcb *inp = sotoinpcb(so); local
793 struct inpcb *inp; local
818 struct inpcb *inp; local
852 struct inpcb *inp = sotoinpcb(so); local
880 struct inpcb *inp = sotoinpcb(so); local
907 struct inpcb *inp = sotoinpcb(so); local
933 struct inpcb *inp = sotoinpcb(so); local
975 struct inpcb *inp, **inp_list; variable in typeref:struct:inpcb
1079 struct inpcb *inp, **inp_list; variable in typeref:struct:inpcb
[all...]
H A Din_pcblist.c170 inpcb_to_xinpcb_n(struct inpcb *inp, struct xinpcb_n *xinp) argument
174 xinp->xi_inpp = (u_int64_t)(uintptr_t)inp;
175 xinp->inp_fport = inp->inp_fport;
176 xinp->inp_lport = inp->inp_lport;
177 xinp->inp_ppcb = (u_int64_t)(uintptr_t)inp->inp_ppcb;
178 xinp->inp_gencnt = inp->inp_gencnt;
179 xinp->inp_flags = inp->inp_flags;
180 xinp->inp_flow = inp->inp_flow;
181 xinp->inp_vflag = inp->inp_vflag;
182 xinp->inp_ip_ttl = inp
260 struct inpcb *inp, **inp_list = NULL; local
392 struct inpcb *inp; local
413 struct inpcb *inp; local
[all...]
H A Dip_divert.c209 struct inpcb *inp; local
283 LIST_FOREACH(inp, &divcb, inp_list) {
284 if (inp->inp_lport == nport)
285 sa = inp->inp_socket;
315 struct inpcb *const inp = sotoinpcb(so); local
369 if (((ip->ip_hl != (sizeof (*ip) >> 2)) && inp->inp_options) ||
383 inp_route_copyout(inp, &ro);
387 imo = inp->inp_moptions;
392 mac_mbuf_label_associate_inpcb(inp, m);
395 error = ip_output(m, inp
442 struct inpcb *inp; local
476 struct inpcb *inp; local
508 struct inpcb *inp; local
693 struct inpcb *inp = sotoinpcb(so); local
[all...]
H A Dtcp_subr.c300 struct inpcb inp; member in struct:inp_tp
484 struct inpcb *inp = tp->t_inpcb; local
488 if ((inp->inp_vflag & INP_IPV6) != 0) {
493 (inp->in6p_flowinfo & IPV6_FLOWINFO_MASK);
498 ip6->ip6_src = inp->in6p_laddr;
499 ip6->ip6_dst = inp->in6p_faddr;
500 tcp_hdr->th_sum = in6_cksum_phdr(&inp->in6p_laddr,
501 &inp->in6p_faddr, htonl(sizeof(struct tcphdr)),
516 ip->ip_src = inp->inp_laddr;
517 ip->ip_dst = inp
907 struct inpcb *inp = tp->t_inpcb; local
967 struct inpcb *inp = tp->t_inpcb; local
1373 struct inpcb *inp, **inp_list; variable in typeref:struct:inpcb
1560 struct inpcb *inp, **inp_list; variable in typeref:struct:inpcb
1714 struct inpcb *inp; local
2016 tcp_mtudisc( struct inpcb *inp, __unused int errno ) argument
2296 struct inpcb *inp; local
2452 struct inpcb *inp = sotoinpcb(so); local
2522 struct inpcb *inp = tp->t_inpcb; local
2617 struct inpcb *inp = sotoinpcb(so); local
[all...]
H A Dtcp_input.c1088 register struct inpcb *inp; local
1453 inp = in_pcblookup_hash(&tcbinfo, ip->ip_src, th->th_sport,
1455 if (!inp) {
1460 inp = in_pcblookup_hash(&tcbinfo, ip->ip_src,
1464 inp = in_pcblookup_hash(&tcbinfo,
1476 inp = in6_pcblookup_hash(&tcbinfo, &ip6->ip6_src, th->th_sport,
1481 inp = in_pcblookup_hash(&tcbinfo, ip->ip_src, th->th_sport,
1491 if (inp != NULL && (inp->inp_flags & INP_BOUND_IF))
1492 ifscope = inp
4350 struct inpcb *inp; local
4680 struct inpcb *inp = NULL; local
4829 struct inpcb *inp = sotoinpcb(so); local
4872 inp_fc_unthrottle_tcp(struct inpcb *inp) argument
[all...]
H A Dtcp_timer.c318 tcp_garbage_collect(struct inpcb *inp, int istimewait) argument
323 so = inp->inp_socket;
324 tp = intotcpcb(inp);
333 if (so->so_usecount > 1 || !lck_mtx_try_lock_spin(&inp->inpcb_mtx))
338 lck_mtx_unlock(&inp->inpcb_mtx);
357 if (inp->inp_state != INPCB_STATE_DEAD) {
359 lck_mtx_convert_spin(&inp->inpcb_mtx);
362 in6_pcbdetach(inp);
365 in_pcbdetach(inp);
368 lck_mtx_unlock(&inp
415 struct inpcb *inp, *nxt; local
[all...]
H A Din_mcast.c1431 inp_block_unblock_source(struct inpcb *inp, struct sockopt *sopt) argument
1529 imo = inp_findmoptions(inp);
1627 inp_findmoptions(struct inpcb *inp) argument
1634 if ((imo = inp->inp_moptions) != NULL) {
1672 inp->inp_moptions = imo; /* keep reference from ip_allocmoptions() */
1681 inp_get_source_filters(struct inpcb *inp, struct sockopt *sopt) argument
1698 imo = inp->inp_moptions;
1842 inp_getmoptions(struct inpcb *inp, struct sockopt *sopt) argument
1852 imo = inp->inp_moptions;
1857 if (inp
1985 inp_lookup_mcast_ifp(const struct inpcb *inp, const struct sockaddr_in *gsin, const struct in_addr ina) argument
2045 inp_join_group(struct inpcb *inp, struct sockopt *sopt) argument
2349 inp_leave_group(struct inpcb *inp, struct sockopt *sopt) argument
2582 inp_set_multicast_if(struct inpcb *inp, struct sockopt *sopt) argument
2666 inp_set_source_filters(struct inpcb *inp, struct sockopt *sopt) argument
2872 inp_setmoptions(struct inpcb *inp, struct sockopt *sopt) argument
[all...]
/darwin-on-arm/xnu/bsd/netinet6/
H A Din6_pcb.c157 struct inpcb *inp; local
160 inp = in6_pcblookup_local(pcbinfo, laddr, lport_arg, wild_okay);
163 if (inp && inp->inp_wantcnt == WNT_STOPUSING) {
164 struct socket *so = inp->inp_socket;
166 lck_mtx_lock(&inp->inpcb_mtx);
169 if (inp->inp_state != INPCB_STATE_DEAD)
170 in6_pcbdetach(inp);
171 in_pcbdispose(inp);
172 inp
183 in6_pcbbind(struct inpcb *inp, struct sockaddr *nam, struct proc *p) argument
398 in6_pcbladdr(struct inpcb *inp, struct sockaddr *nam, struct in6_addr *plocal_addr6, struct ifnet **outif) argument
488 in6_pcbconnect( struct inpcb *inp, struct sockaddr *nam, struct proc *p) argument
561 in6_pcbdisconnect( struct inpcb *inp) argument
581 in6_pcbdetach( struct inpcb *inp) argument
691 struct inpcb *inp; local
713 struct inpcb *inp; local
733 struct inpcb *inp = sotoinpcb(so); local
752 struct inpcb *inp = sotoinpcb(so); local
787 struct inpcb *inp, *ninp; local
895 struct inpcb *inp; local
1022 in6_rtchange( struct inpcb *inp, __unused int errno) argument
1052 struct inpcb *inp; local
1157 struct inpcb *inp; local
1262 in6p_route_copyout(struct inpcb *inp, struct route_in6 *dst) argument
1276 in6p_route_copyin(struct inpcb *inp, struct route_in6 *src) argument
[all...]
H A Dudp6_usrreq.c642 struct inpcb *inp; variable in typeref:struct:inpcb
657 inp = in6_pcblookup_hash(&udbinfo, &addrs[1].sin6_addr,
661 if (!inp || !inp->inp_socket || !inp->inp_socket->so_cred) {
671 error = SYSCTL_OUT(req, inp->inp_socket->so_cred->pc_ucred,
687 struct inpcb *inp; local
689 inp = sotoinpcb(so);
690 if (inp == 0)
693 in6_pcbdetach(inp);
700 struct inpcb *inp; local
737 struct inpcb *inp; local
771 struct inpcb *inp; local
816 struct inpcb *inp; local
828 struct inpcb *inp; local
859 struct inpcb *inp; local
[all...]
H A Dudp6_var.h76 int udp6_output(struct inpcb *inp, struct mbuf *m,
H A Dipsec6.h63 extern int ipsec6_set_policy(struct inpcb *inp, int optname,
65 extern int ipsec6_get_policy(struct inpcb *inp, caddr_t request, size_t len,
H A Draw_ip6.c742 struct inpcb *inp; local
745 inp = sotoinpcb(so);
746 if (inp)
757 inp = (struct inpcb *)so->so_pcb;
758 inp->inp_vflag |= INP_IPV6;
759 inp->in6p_ip6_nxt = (char)proto;
760 inp->in6p_hops = -1; /* use kernel default */
761 inp->in6p_cksum = -1;
762 MALLOC(inp->in6p_icmp6filt, struct icmp6_filter *,
764 if (inp
773 struct inpcb *inp; local
801 struct inpcb *inp = sotoinpcb(so); local
812 struct inpcb *inp = sotoinpcb(so); local
851 struct inpcb *inp = sotoinpcb(so); local
906 struct inpcb *inp = sotoinpcb(so); local
[all...]
H A Din6_src.c202 struct inpcb *inp, struct route_in6 *ro,
226 if (inp != NULL) {
227 mopts = inp->in6p_moptions;
228 if (inp->inp_flags & INP_NO_IFT_CELLULAR)
300 if (inp != NULL && !IN6_IS_ADDR_UNSPECIFIED(&inp->in6p_laddr)) {
301 src_storage = &inp->in6p_laddr;
1191 struct inpcb *inp,
1195 struct socket *so = inp->inp_socket;
1198 struct inpcbinfo *pcbinfo = inp
201 in6_selectsrc(struct sockaddr_in6 *dstsock, struct ip6_pktopts *opts, struct inpcb *inp, struct route_in6 *ro, struct ifnet **ifpp, struct in6_addr *src_storage, unsigned int ifscope, int *errorp) argument
1189 in6_pcbsetport( __unused struct in6_addr *laddr, struct inpcb *inp, struct proc *p, int locked) argument
[all...]
/darwin-on-arm/xnu/security/
H A Dmac_inet.c101 mac_inpcb_label_init(struct inpcb *inp, int flag) argument
104 inp->inp_label = mac_inpcb_label_alloc(flag);
105 if (inp->inp_label == NULL)
148 mac_inpcb_label_destroy(struct inpcb *inp) argument
151 mac_inpcb_label_free(inp->inp_label);
152 inp->inp_label = NULL;
156 mac_inpcb_label_recycle(struct inpcb *inp) argument
159 MAC_PERFORM(inpcb_label_recycle, inp->inp_label);
179 mac_inpcb_label_associate(struct socket *so, struct inpcb *inp) argument
182 MAC_PERFORM(inpcb_label_associate, so, so->so_label, inp,
219 mac_mbuf_label_associate_inpcb(struct inpcb *inp, struct mbuf *m) argument
274 mac_inpcb_check_deliver(struct inpcb *inp, struct mbuf *m, int family, int type) argument
296 struct inpcb *inp; local
[all...]
/darwin-on-arm/xnu/libkern/stdio/
H A Dscanf.c131 vsscanf(const char *inp, char const *fmt0, va_list ap) argument
152 inr = strlen(inp);
163 while (inr > 0 && isspace(*inp))
164 nread++, inr--, inp++;
181 if (*inp != c)
183 inr--, inp++;
296 while (isspace(*inp)) {
299 inp++;
325 inp += n;
332 inp
[all...]
/darwin-on-arm/xnu/bsd/net/
H A Ddlil.c900 dlil_create_input_thread(ifnet_t ifp, struct dlil_threading_info *inp) argument
909 VERIFY(inp == dlil_main_input_thread);
910 (void) strlcat(inp->input_name,
914 VERIFY(inp != dlil_main_input_thread);
915 (void) snprintf(inp->input_name, DLIL_THREADNAME_LEN,
919 VERIFY(inp != dlil_main_input_thread);
920 (void) snprintf(inp->input_name, DLIL_THREADNAME_LEN,
923 VERIFY(inp->input_thr == THREAD_NULL);
925 inp->lck_grp = lck_grp_alloc_init(inp
994 dlil_terminate_input_thread(struct dlil_threading_info *inp) argument
1479 struct dlil_threading_info *inp = v; local
1548 struct dlil_threading_info *inp = v; local
1625 struct dlil_threading_info *inp = v; local
1862 dlil_rxpoll_calc_limits(struct dlil_threading_info *inp) argument
1927 struct dlil_threading_info *inp; local
2129 struct dlil_threading_info *inp = dlil_main_input_thread; local
2240 struct dlil_threading_info *inp; local
2483 struct dlil_threading_info *inp; local
2506 struct dlil_threading_info *inp; local
2726 dlil_input_stats_add(const struct ifnet_stat_increment_param *s, struct dlil_threading_info *inp, boolean_t poll) argument
2755 dlil_input_stats_sync(struct ifnet *ifp, struct dlil_threading_info *inp) argument
4931 struct dlil_threading_info *inp; local
[all...]
H A Dntstat.c757 struct inpcb *inp = NULL; local
770 inp = in_pcblookup_hash(inpinfo, param->remote.v4.sin_addr, param->remote.v4.sin_port,
794 inp = in6_pcblookup_hash(inpinfo, remote.in6, param->remote.v6.sin6_port,
804 if (inp == NULL) return ENOENT;
807 *out_cookie = inp;
824 struct inpcb *inp = (struct inpcb*)cookie; local
825 struct tcpcb *tp = intotcpcb(inp);
826 return (inp->inp_state == INPCB_STATE_DEAD || tp->t_state == TCPS_TIME_WAIT) ? 1 : 0;
835 struct inpcb *inp = (struct inpcb*)cookie; local
836 struct tcpcb *tp = intotcpcb(inp);
871 struct inpcb *inp = (struct inpcb*)cookie; local
884 struct inpcb *inp; local
910 nstat_tcp_new_pcb( struct inpcb *inp) argument
939 nstat_pcb_detach(struct inpcb *inp) argument
998 struct inpcb *inp = (struct inpcb*)cookie; local
1085 struct inpcb *inp = (struct inpcb*)cookie; local
1095 struct inpcb *inp = (struct inpcb*)cookie; local
1118 struct inpcb *inp = (struct inpcb*)cookie; local
1131 struct inpcb *inp; local
1157 nstat_udp_new_pcb( struct inpcb *inp) argument
1197 struct inpcb *inp = (struct inpcb*)cookie; local
[all...]
H A Dkpi_protocol.c124 struct dlil_threading_info *inp = dlil_main_input_thread; local
146 lck_mtx_lock(&inp->input_lck);
150 inp->input_waiting |= DLIL_PROTO_REGISTER;
151 if ((inp->input_waiting & DLIL_INPUT_RUNNING) == 0)
152 wakeup((caddr_t)&inp->input_waiting);
153 lck_mtx_unlock(&inp->input_lck);
207 struct dlil_threading_info *inp = dlil_main_input_thread; local
211 lck_mtx_assert(&inp->input_lck, LCK_MTX_ASSERT_NOTOWNED);
213 if (inp->input_waiting & DLIL_PROTO_REGISTER) {
214 lck_mtx_lock_spin(&inp
314 struct dlil_threading_info *inp = dlil_main_input_thread; local
[all...]
/darwin-on-arm/xnu/bsd/dev/random/YarrowCoreLib/src/
H A Dcomp.h89 comp_error_status comp_add_data(COMP_CTX* ctx,Bytef* inp,uInt inplen);
H A Dcomp.c48 __unused Bytef* inp,
112 comp_error_status comp_add_data(COMP_CTX* ctx,Bytef* inp,uInt inplen) argument
119 PCHECK(inp);
126 memmove(buf,inp,blocksize);
138 memmove(buf+ctx->spaceused,inp,inplen);
47 comp_add_data( __unused COMP_CTX* ctx, __unused Bytef* inp, __unused uInt inplen ) argument
/darwin-on-arm/xnu/bsd/kern/
H A Dsocket_info.c121 struct inpcb *inp = (struct inpcb *)so->so_pcb; local
125 insi->insi_fport = inp->inp_fport;
126 insi->insi_lport = inp->inp_lport;
127 insi->insi_gencnt = inp->inp_gencnt;
128 insi->insi_flags = inp->inp_flags;
129 insi->insi_vflag = inp->inp_vflag;
130 insi->insi_ip_ttl = inp->inp_ip_ttl;
131 insi->insi_faddr.ina_6 = inp->inp_dependfaddr.inp6_foreign;
132 insi->insi_laddr.ina_6 = inp->inp_dependladdr.inp6_local;
133 insi->insi_v4.in4_tos = inp
[all...]
/darwin-on-arm/xnu/libkern/libkern/arm/
H A DOSByteOrder.h114 volatile uint32_t * inp; local
120 inp = (volatile uint32_t *)((volatile uintptr_t)base + offset);
121 outv.ul[0] = inp[1];
122 outv.ul[1] = inp[0];

Completed in 204 milliseconds

12