Searched refs:proto (Results 1 - 25 of 98) sorted by relevance

1234

/darwin-on-arm/xnu/bsd/netinet/
H A Dip_encap.c161 int proto; local
171 proto = va_arg(ap, int);
180 proto = ip->ip_p;
197 if (ep->proto >= 0 && ep->proto != proto)
200 prio = (*ep->func)(m, off, proto, ep->arg);
253 if (proto == IPPROTO_IPV4) {
266 encap6_input(struct mbuf **mp, int *offp, int proto) argument
293 if (ep->proto >
[all...]
H A Dip_encap.h68 int proto; /* -1: don't care, I'll check myself */ member in struct:encaptab
H A Dkpi_ipfilter_var.h58 extern void ip_proto_dispatch_in(struct mbuf *m, int hlen, u_int8_t proto,
H A Din_gif.c112 int proto, error; local
129 proto = IPPROTO_IPV4;
144 proto = IPPROTO_IPV6;
173 iphdr.ip_p = proto;
242 int af, proto; local
246 proto = ip->ip_p;
260 switch (proto) {
335 __unused int proto,
332 gif_encapcheck4( const struct mbuf *m, __unused int off, __unused int proto, void *arg) argument
H A Dip_flowid.h70 u_int8_t proto; member in struct:ip_flow_id
/darwin-on-arm/xnu/bsd/net/
H A Dether_at_pr_module.c227 struct ifnet_attach_proto_param proto; local
241 bzero(&proto, sizeof(proto));
242 proto.demux_list = demux;
243 proto.demux_count = sizeof(demux) / sizeof(demux[0]);
244 proto.input = ether_at_input;
245 proto.pre_output = ether_at_pre_output;
246 proto.ioctl = ether_at_prmod_ioctl;
248 error = ifnet_attach_protocol(ifp, PF_APPLETALK, &proto);
H A Dether_inet6_pr_module.c244 struct ifnet_attach_proto_param proto; local
249 bzero(&proto, sizeof (proto));
253 proto.demux_list = demux;
254 proto.demux_count = 1;
255 proto.input = ether_inet6_input;
256 proto.pre_output = ether_inet6_pre_output;
257 proto.ioctl = ether_inet6_prmod_ioctl;
258 proto.resolve = ether_inet6_resolve_multi;
259 error = ifnet_attach_protocol(ifp, protocol_family, &proto);
[all...]
H A Dif_utun_crypto_ipsec.c74 utun_ipsec_proto_to_sadb_proto (if_utun_crypto_ipsec_proto_t proto) argument
76 switch (proto) {
87 utun_ipsec_proto_to_sadb_satype (if_utun_crypto_ipsec_proto_t proto) argument
89 switch (proto) {
175 u_int16_t proto,
184 if (proto != IPPROTO_ESP ||
196 saidx.proto = proto;
424 u_int16_t proto; local
448 proto
173 utun_ipsec_set_sah(struct secashead **sah, u_int8_t dir, u_int16_t proto, u_int8_t mode, u_int32_t reqid, struct sockaddr_storage *src_addr, struct sockaddr_storage *dst_addr) argument
538 utun_ipsec_get_spi(struct sockaddr_storage *src_addr, struct sockaddr_storage *dst_addr, u_int16_t proto, u_int8_t mode, u_int32_t reqid, u_int32_t spirange_min, u_int32_t spirange_max) argument
561 u_int16_t proto; local
701 protocol_family_t proto; local
[all...]
H A Dether_inet_pr_module.c535 struct ifnet_attach_proto_param_v2 proto; local
549 bzero(&proto, sizeof (proto));
550 proto.demux_list = demux;
551 proto.demux_count = sizeof (demux) / sizeof (demux[0]);
552 proto.input = ether_inet_input;
553 proto.pre_output = ether_inet_pre_output;
554 proto.ioctl = ether_inet_prmod_ioctl;
555 proto.event = ether_inet_event;
556 proto
[all...]
H A Diptap.c128 iptap_ipf_input(struct ifnet *ifp, protocol_family_t proto, struct mbuf *mp, char *frame_header) argument
139 iptap_enqueue_mbuf(ifp, proto, mp, ((size_t)hdr - (size_t)frame_header), 0, IPTAP_INPUT_TAG);
143 iptap_enqueue_mbuf(ifp, proto, mp, 0, 0, IPTAP_INPUT_TAG);
153 iptap_ipf_output(struct ifnet *ifp, protocol_family_t proto, struct mbuf *mp, u_int32_t pre, u_int32_t post) argument
157 iptap_enqueue_mbuf(ifp, proto, mp, pre, post, IPTAP_OUTPUT_TAG);
164 iptap_enqueue_mbuf(struct ifnet *ifp, protocol_family_t proto, struct mbuf *mp, u_int32_t pre, u_int32_t post, u_int8_t io) argument
178 header.protocol_family = proto;
H A Draw_usrreq.c107 raw_input(struct mbuf *m0, struct sockproto *proto, struct sockaddr *src, argument
123 if (rp->rcb_proto.sp_family != proto->sp_family)
126 rp->rcb_proto.sp_protocol != proto->sp_protocol)
203 raw_uattach(struct socket *so, int proto, __unused struct proc *p) argument
211 return raw_attach(so, proto);
H A Ddlil.c286 static unsigned int dlif_phash_size; /* size of ifnet proto hash table */
287 static struct zone *dlif_phash_zone; /* zone for ifnet proto hash table */
622 struct if_proto *proto = NULL; local
628 proto = SLIST_FIRST(&ifp->if_proto_hash[i]);
630 while (proto != NULL && proto->protocol_family != protocol_family)
631 proto = SLIST_NEXT(proto, next_hash);
633 if (proto != NULL)
634 if_proto_ref(proto);
640 if_proto_ref(struct if_proto *proto) argument
648 if_proto_free(struct if_proto *proto) argument
775 struct if_proto *proto; local
3027 struct if_proto *proto; local
3228 struct if_proto *proto = NULL; local
3541 struct if_proto *proto; local
3618 struct if_proto *proto; local
3658 struct if_proto *proto; local
3949 dlil_attach_protocol_internal(struct if_proto *proto, const struct ifnet_demux_desc *demux_list, u_int32_t demux_count) argument
4123 struct if_proto *proto = NULL; local
4981 struct if_proto *proto; local
[all...]
H A Dppp_deflate.c269 int proto, olen, wspace, r, flush; local
276 proto = PPP_PROTOCOL(rptr);
277 if (proto > 0x3fff || proto == 0xfd || proto == 0xfb) {
319 rptr += (proto > 0xff)? 2: 3; /* skip 1st proto byte if 0 */
664 int rlen, proto, r; local
670 proto = PPP_PROTOCOL(rptr);
671 if (proto >
[all...]
H A Draw_cb.c93 raw_attach(struct socket *so, int proto) argument
110 rp->rcb_proto.sp_protocol = proto;
H A Dpf.c812 if ((diff = a->proto - b->proto) != 0)
819 switch (a->proto) {
941 if ((diff = a->proto - b->proto) != 0)
949 switch (a->proto) {
1374 switch (sk->proto) {
1388 printf("PROTO=%u", sk->proto);
1392 pf_print_sk_host(&sk->lan, sk->af, sk->proto,
1395 pf_print_sk_host(&sk->gwy, sk->af, sk->proto,
1823 pf_print_sk_host(struct pf_state_host *sh, sa_family_t af, int proto, u_int8_t proto_variant) argument
2709 pf_match_xport(u_int8_t proto, u_int8_t proto_variant, union pf_rule_xport *rx, union pf_state_xport *sx) argument
3178 u_int8_t proto = pd->proto; local
[all...]
/darwin-on-arm/xnu/bsd/miscfs/devfs/
H A Ddevfs_proto.h40 int dev_add_node(int entrytype, devnode_type_t * typeinfo, devnode_t * proto,
48 devnode_t * proto, struct devfsmount *dvm, devdirent_t * *nm_pp);
H A Dreproto.sh48 if (m|/\*proto\*/|) {
H A Ddevfs_tree.c177 /*proto*/
495 * If typeinfo is null and proto exists, then the typeinfo field of
496 * the proto is used intead in the DEVFS_CREATE case.
506 dev_add_node(int entrytype, devnode_type_t * typeinfo, devnode_t * proto, argument
516 if (proto) {
517 dnp = proto->dn_nextsibling;
518 while( dnp != proto) {
526 typeinfo = &(proto->dn_typeinfo);
529 if ( proto ) {
530 switch (proto
1356 dev_add_entry(const char *name, devnode_t * parent, int type, devnode_type_t * typeinfo, devnode_t * proto, struct devfsmount *dvm, devdirent_t * *nm_pp) argument
[all...]
/darwin-on-arm/xnu/bsd/netat/
H A Dat_pcb.c168 int ddp_socket_inuse(ddpsock, proto)
169 u_char ddpsock, proto;
173 if ((!proto || (proto == DDP_ATP)) && atp_inputQ[ddpsock])
175 if ((!proto || (proto == DDP_ADSP)) && adsp_inputQ[ddpsock])
182 (!pcb->ddptype || !proto || (pcb->ddptype == proto)))
H A Dat_pcb.h101 unsigned char proto; /* old-style ATPROTO_* */ member in struct:atpcb
/darwin-on-arm/xnu/bsd/nfs/
H A Dkrpc.h43 u_int prog, u_int vers, u_int proto, u_int16_t *portp);
/darwin-on-arm/xnu/bsd/netinet6/
H A Ddest6.c57 dest6_input(struct mbuf **mp, int *offp, int proto) argument
59 #pragma unused(proto)
H A Din6_gif.c121 int proto; local
137 proto = IPPROTO_IPV4;
151 proto = IPPROTO_IPV6;
185 ip6->ip6_nxt = proto;
251 int in6_gif_input(struct mbuf **mp, int *offp, int proto) argument
272 switch (proto) {
389 __unused int proto,
386 gif_encapcheck6( const struct mbuf *m, __unused int off, __unused int proto, void *arg) argument
H A Dip6_fw.c426 char action2[32], proto[102], name[18]; local
476 len = snprintf(SNPARGS(proto, 0), "TCP [%s]",
479 len += snprintf(SNPARGS(proto, len), ":%d ",
482 len += snprintf(SNPARGS(proto, len), " ");
483 len += snprintf(SNPARGS(proto, len), "[%s]",
486 snprintf(SNPARGS(proto, len), ":%d",
490 len = snprintf(SNPARGS(proto, 0), "UDP [%s]",
493 len += snprintf(SNPARGS(proto, len), ":%d ",
496 len += snprintf(SNPARGS(proto, len), " ");
497 len += snprintf(SNPARGS(proto, le
[all...]
/darwin-on-arm/xnu/bsd/kern/
H A Dmakesyscalls.sh66 echo "usage: $0 input-file [<names|proto|header|table|audit> [<config-file>]]" 1>&2
79 proto)

Completed in 229 milliseconds

1234