Searched refs:protocol (Results 1 - 25 of 41) sorted by relevance

12

/xnu-2422.115.4/bsd/net/
H A Dkpi_protocol.h52 your protocol has specified a global lock, the lock will be held
54 @pararm protocol The protocol this packet is intended for.
57 typedef void (*proto_input_handler)(protocol_family_t protocol, mbuf_t packet);
62 protocol that it has been detached. When this function is
65 @pararm protocol The protocol detached.
67 typedef void (*proto_input_detached_handler)(protocol_family_t protocol);
72 packet for a protocol is received.
73 @param protocol Th
[all...]
H A Dkpi_interfacefilter.h68 @param protocol The protocol of this packet. If you specified a
69 protocol when attaching your filter, the protocol will only ever
70 be the protocol you specified.
85 protocol_family_t protocol, mbuf_t *data, char **frame_ptr);
108 protocol_family_t protocol, mbuf_t *data);
122 protocol_family_t protocol, const struct kev_msg *event_msg);
149 protocol_family_t protocol, unsigned long ioctl_cmd, void *ioctl_arg);
173 @field iff_protocol The protocol o
[all...]
H A Dkpi_protocol.c53 protocol_family_t protocol; member in struct:proto_input_entry
91 lck_group = lck_grp_alloc_init("protocol kpi", grp_attrib);
102 proto_register_input(protocol_family_t protocol, proto_input_handler input, argument
115 entry->protocol = protocol;
118 entry->hash = proto_hash_value(protocol);
123 if (dp->dom_family == (int)protocol)
145 proto_unregister_input(protocol_family_t protocol) argument
149 for (entry = proto_hash[proto_hash_value(protocol)]; entry != NULL;
151 if (entry->protocol
259 proto_input(protocol_family_t protocol, mbuf_t packet_list) argument
295 proto_inject(protocol_family_t protocol, mbuf_t packet_list) argument
[all...]
H A Dif_ether.h46 protocol_family_t *protocol);
47 errno_t ether_add_proto(ifnet_t interface, protocol_family_t protocol,
49 errno_t ether_del_proto(ifnet_t interface, protocol_family_t protocol);
H A Dif_utun.c73 protocol_family_t *protocol);
77 static errno_t utun_add_proto(ifnet_t interface, protocol_family_t protocol,
80 static errno_t utun_del_proto(ifnet_t interface, protocol_family_t protocol);
86 static errno_t utun_proto_input(ifnet_t interface, protocol_family_t protocol,
88 static errno_t utun_proto_pre_output(ifnet_t interface, protocol_family_t protocol,
156 /* Register the protocol plumbers */
165 /* Register the protocol plumbers */
196 /* Setup the protocol control block */
265 protocol_family_t protocol,
271 if (protocol
263 utun_detach_ip( ifnet_t interface, protocol_family_t protocol, socket_t pf_socket) argument
294 utun_remove_address( ifnet_t interface, protocol_family_t protocol, ifaddr_t address, socket_t pf_socket) argument
343 utun_cleanup_family( ifnet_t interface, protocol_family_t protocol) argument
690 utun_demux( __unused ifnet_t interface, mbuf_t data, __unused char *frame_header, protocol_family_t *protocol) argument
738 utun_add_proto( __unused ifnet_t interface, protocol_family_t protocol, __unused const struct ifnet_demux_desc *demux_array, __unused u_int32_t demux_count) argument
757 utun_del_proto( __unused ifnet_t interface, __unused protocol_family_t protocol) argument
802 utun_proto_input( __unused ifnet_t interface, protocol_family_t protocol, mbuf_t m, __unused char *frame_header) argument
819 utun_proto_pre_output( __unused ifnet_t interface, protocol_family_t protocol, __unused mbuf_t *packet, __unused const struct sockaddr *dest, __unused void *route, __unused char *frame_type, __unused char *link_layer_dest) argument
834 utun_attach_proto( ifnet_t interface, protocol_family_t protocol) argument
858 protocol_family_t protocol = 0; local
[all...]
H A Dif_ipsec.c68 protocol_family_t *protocol);
69 static errno_t ipsec_add_proto(ifnet_t interface, protocol_family_t protocol,
72 static errno_t ipsec_del_proto(ifnet_t interface, protocol_family_t protocol);
78 static errno_t ipsec_proto_input(ifnet_t interface, protocol_family_t protocol,
80 static errno_t ipsec_proto_pre_output(ifnet_t interface, protocol_family_t protocol,
147 /* Register the protocol plumbers */
156 /* Register the protocol plumbers */
207 /* Setup the protocol control block */
274 protocol_family_t protocol,
280 if (protocol
273 ipsec_detach_ip(ifnet_t interface, protocol_family_t protocol, socket_t pf_socket) argument
303 ipsec_remove_address(ifnet_t interface, protocol_family_t protocol, ifaddr_t address, socket_t pf_socket) argument
351 ipsec_cleanup_family(ifnet_t interface, protocol_family_t protocol) argument
788 ipsec_demux(__unused ifnet_t interface, mbuf_t data, __unused char *frame_header, protocol_family_t *protocol) argument
821 ipsec_add_proto(__unused ifnet_t interface, protocol_family_t protocol, __unused const struct ifnet_demux_desc *demux_array, __unused u_int32_t demux_count) argument
839 ipsec_del_proto(__unused ifnet_t interface, __unused protocol_family_t protocol) argument
883 ipsec_proto_input(__unused ifnet_t interface, protocol_family_t protocol, mbuf_t m, __unused char *frame_header) argument
895 ipsec_proto_pre_output(__unused ifnet_t interface, protocol_family_t protocol, __unused mbuf_t *packet, __unused const struct sockaddr *dest, __unused void *route, __unused char *frame_type, __unused char *link_layer_dest) argument
909 ipsec_attach_proto(ifnet_t interface, protocol_family_t protocol) argument
[all...]
H A Dif_ppp.h67 #define SC_COMP_PROT 0x00000001 /* protocol compression (output) */
105 int protocol; /* PPP procotol, e.g. PPP_IP */ member in struct:npioctl
H A Dether_inet6_pr_module.c111 ether_inet6_input(ifnet_t ifp, protocol_family_t protocol, argument
114 #pragma unused(ifp, protocol)
150 if (proto_input(protocol, packet) != 0)
H A Dether_if_module.c115 u_int16_t type; /* Type of protocol stored in data */
141 * Release all descriptor entries owned by this protocol (there may be several).
180 ether_add_proto_internal(struct ifnet *ifp, protocol_family_t protocol, argument
287 ed->protocol_family = protocol;
293 /* 2 byte ethernet raw protocol type is at native_type */
318 ether_add_proto(ifnet_t ifp, protocol_family_t protocol, argument
325 error = ether_add_proto_internal(ifp, protocol, &demux_list[i]);
327 ether_del_proto(ifp, protocol);
370 /* if we're bonded, bond "protocol" gets all the packets */
422 * Determine the packet's protocol typ
[all...]
H A Dif_loop.c71 * Loopback interface driver for protocol testing and timing.
124 protocol, sizeof (u_int32_t)); \
147 protocol_family_t protocol; member in struct:loopback_header
213 *protocol_family = header->protocol;
238 bcopy(frame_type, &header->protocol, sizeof (u_int32_t));
251 lo_del_proto(struct ifnet *ifp, protocol_family_t protocol) argument
253 #pragma unused(ifp, protocol)
420 * (should?) be split into separate pre-output routines for each protocol.
575 /* Register protocol registration functions */
H A Dkpi_interface.h162 @abstract Storage type for the protocol family.
285 @param proto_family The protocol family to handle the ioctl, may be
321 determine which protocol family the packet belongs to. This
323 protocol to pass the packet to. This function may return
324 protocol families for protocols that are not attached. If the
325 protocol family has not been attached to the interface, the
330 @param protocol_family Upon return, the protocol family matching the
362 @param dest The higher layer protocol destination (i.e. IP address).
364 protocol's pre-output function.
365 @param frame_type The frame type as determined by the protocol'
[all...]
H A Dether_inet_pr_module.c374 ether_inet_event(ifnet_t ifp, protocol_family_t protocol, argument
377 #pragma unused(protocol)
/xnu-2422.115.4/libsyscall/wrappers/legacy/
H A Dsocketpair.c47 socketpair(int domain, int type, int protocol, int socket_vector[2]) argument
49 int ret = __socketpair(domain, type, protocol, socket_vector);
/xnu-2422.115.4/bsd/kern/
H A Duipc_domain.c189 /* Recompute for new protocol */
373 /* pr_domain is set only after the protocol is attached */
404 * and thus DOM_INITIALIZED may not be set (yet). The protocol
552 net_del_proto(int type, int protocol, struct domain *dp) argument
563 if (pp->pr_type == type && pp->pr_protocol == protocol)
582 net_del_proto_old(int type, int protocol, struct domain_old *odp) argument
608 if (pp->pr_type == type && pp->pr_protocol == protocol)
818 pffindproto(int family, int protocol, int type) argument
824 pp = pffindproto_locked(family, protocol, type);
830 pffindproto_locked(int family, int protocol, in argument
860 pffindproto_old(int family, int protocol, int type) argument
875 pffindprotonotype_locked(int family, int protocol, int type) argument
898 pffindprotonotype(int family, int protocol) argument
917 int family, protocol, error = 0; local
[all...]
H A Dsocket_info.c103 short protocol; local
117 * {domain, type, protocol}
121 protocol = SOCK_PROTO(so);
144 if (type == SOCK_STREAM && (protocol == 0 ||
145 protocol == IPPROTO_TCP) && inp->inp_ppcb != NULL) {
H A Dkpi_mbuf.c759 mbuf_inet_cksum(mbuf_t mbuf, int protocol, u_int32_t offset, u_int32_t length, argument
766 *csum = inet_cksum(mbuf, protocol, offset, length);
772 mbuf_inet6_cksum(mbuf_t mbuf, int protocol, u_int32_t offset, u_int32_t length, argument
779 *csum = inet6_cksum(mbuf, protocol, offset, length);
784 mbuf_inet6_cksum(__unused mbuf_t mbuf, __unused int protocol, argument
H A Dkpi_socketfilter.c1254 int protocol)
1259 struct protosw *pr = pffindproto(domain, protocol, type);
1336 if (protocol == IPPROTO_TCP) {
1353 } else if (protocol == IPPROTO_UDP) {
1253 sflt_register(const struct sflt_filter *filter, int domain, int type, int protocol) argument
/xnu-2422.115.4/bsd/netinet/
H A Dkpi_ipfilter.h73 protocol such as udp or tcp. In the case of encapsulation, such
77 packet. Offset and protocol are used to determine where in the
79 interested in TCP or UDP packets, just return 0 if protocol
86 @param protocol The protocol type (udp/tcp/icmp/etc...) of the IP packet
96 u_int8_t protocol);
H A Din_pcblist.c397 inpcb_get_ports_used(uint32_t ifindex, int protocol, uint32_t wildcardok, argument
419 if (!(protocol == PF_UNSPEC ||
420 (protocol == PF_INET && (inp->inp_vflag & INP_IPV4)) ||
421 (protocol == PF_INET6 && (inp->inp_vflag & INP_IPV6))))
H A Din_proto.c95 * TCP/IP protocol family: IP, ICMP, UDP, TCP.
328 panic("%s: failed to register PF_INET protocol: %d\n",
336 ip_proto_input(protocol_family_t protocol, mbuf_t packet_list) argument
338 #pragma unused(protocol)
/xnu-2422.115.4/bsd/sys/
H A Dkpi_socket.h360 @param protocol The socket protocol.
367 extern errno_t sock_socket(int domain, int type, int protocol,
444 @param protocol The socket protocol. May be NULL.
447 extern errno_t sock_gettype(socket_t so, int *domain, int *type, int *protocol);
H A Dkpi_socketfilter.h311 A protocol will call this before accepting an incoming
332 connections. A protocol will call this before initiating an
343 protocol layer will not see the call.
363 protocol layer will not see the call.
383 command. The socket and protocol layers will not see the call.
403 command. The socket and protocol layers will not see the call.
421 protocol will not see the call.
564 desciption of domain, type, and protocol.
566 @param domain The protocol domain these filters will be attached to.
568 @param protocol Th
[all...]
H A Dkpi_mbuf.h113 @constant MBUF_MT_CONTROL Extra-data protocol message (control
122 MBUF_TYPE_PCB = 4, /* protocol control block */
131 MBUF_TYPE_CONTROL = 14, /* extra-data protocol message */
239 @field drain Number of times protocol drain functions were called.
1048 the caller must pass the protocol family of the packet as well
1049 as the offset from the start of the packet to the protocol
1052 @param protocol_family The protocol family of the packet in the
1055 protocol header. For an IP packet with an ethernet header, this
1067 @param vlan The protocol family of the aux data to add.
1080 @param vlan The protocol famil
[all...]
/xnu-2422.115.4/bsd/dev/dtrace/scripts/
H A Dip.d45 uint8_t protocol;
61 protocol = P->inp_ip_p;
147 uint8_t ipv4_protocol; /* next level protocol */
148 string ipv4_protostr; /* next level protocol, as a string */
191 uint8_t ipv6_nexthdr; /* next header protocol */
192 string ipv6_nextstr; /* next header protocol, as a string */
/xnu-2422.115.4/security/
H A Dmac_socket.c344 * If the protocol has expressed interest in socket layer changes,
526 mac_socket_check_create(kauth_cred_t cred, int domain, int type, int protocol) argument
533 MAC_CHECK(socket_check_create, cred, domain, type, protocol);

Completed in 78 milliseconds

12