/macosx-10.5.8/xnu-1228.15.4/bsd/net/ |
H A D | kpi_protocol.h | 53 your protocol has specified a global lock, the lock will be held 55 @pararm protocol The protocol this packet is intended for. 58 typedef void (*proto_input_handler)(protocol_family_t protocol, mbuf_t packet); 63 protocol that it has been detached. When this function is 66 @pararm protocol The protocol detached. 68 typedef void (*proto_input_detached_handler)(protocol_family_t protocol); 73 packet for a protocol is received. 74 @param protocol Th [all...] |
H A D | kpi_interfacefilter.h | 68 @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. 81 typedef errno_t (*iff_input_func)(void* cookie, ifnet_t interface, protocol_family_t protocol, 101 typedef errno_t (*iff_output_func)(void* cookie, ifnet_t interface, protocol_family_t protocol, 115 typedef void (*iff_event_func)(void* cookie, ifnet_t interface, protocol_family_t protocol, 139 typedef errno_t (*iff_ioctl_func)(void* cookie, ifnet_t interface, protocol_family_t protocol, 164 @field iff_protocol The protocol o [all...] |
H A D | if_ether.h | 46 protocol_family_t *protocol); 47 errno_t ether_add_proto(ifnet_t interface, protocol_family_t protocol, 50 errno_t ether_del_proto(ifnet_t interface, protocol_family_t protocol);
|
H A D | kpi_protocol.c | 53 protocol_family_t protocol; member in struct:proto_input_entry 88 protocol_family_t protocol) 90 switch(protocol) { 112 lck_group = lck_grp_alloc_init("protocol kpi", grp_attrib); 124 protocol_family_t protocol, 139 entry->protocol = protocol; 142 entry->hash = proto_hash_value(protocol); 150 while (dp && (protocol_family_t)dp->dom_family != protocol) 172 protocol_family_t protocol) 87 proto_hash_value( protocol_family_t protocol) argument 123 proto_register_input( protocol_family_t protocol, proto_input_handler input, proto_input_detached_handler detached, int chains) argument 171 proto_unregister_input( protocol_family_t protocol) argument 279 proto_input( protocol_family_t protocol, mbuf_t packet_list) argument 317 proto_inject( protocol_family_t protocol, mbuf_t packet_list) argument [all...] |
H A D | kpi_interface.h | 120 @abstract Storage type for the protocol family. 208 @param proto_family The protocol family to handle the ioctl, may be 243 which protocol family the packet belongs to. This information is then 244 used by the stack to determine which protocol to pass the packet to. 245 This function may return protocol families for protocols that are 246 not attached. If the protocol family has not been attached to the 251 @param protocol_family Upon return, the protocol family matching the 282 @param dest The higher layer protocol destination (i.e. IP address). 284 protocol's pre-output function. 285 @param frame_type The frame type as determined by the protocol' [all...] |
H A D | if_loop.c | 71 * Loopback interface driver for protocol testing and timing. 139 protocol_family_t protocol; member in struct:loopback_header 155 *protocol_family = header->protocol; 173 header->protocol = *(const u_long*)frame_type; 191 __unused protocol_family_t protocol) 233 ((struct loopback_header*)m->m_pkthdr.header)->protocol; 245 * (should?) be split into separate pre-output routines for each protocol. 403 /* Register protocol registration functions */ 189 lo_del_proto( __unused ifnet_t ifp, __unused protocol_family_t protocol) argument
|
H A D | if_ppp.h | 67 #define SC_COMP_PROT 0x00000001 /* protocol compression (output) */ 105 int protocol; /* PPP procotol, e.g. PPP_IP */ member in struct:npioctl
|
H A D | ether_if_module.c | 125 u_int16_t type; /* Type of protocol stored in data */ 167 * Release all descriptor entries owned by this protocol (there may be several). 208 protocol_family_t protocol, 314 ed->protocol_family = protocol; 320 /* 2 byte ethernet raw protocol type is at native_type */ 347 protocol_family_t protocol, 355 error = ether_add_proto_internal(ifp, protocol, &demux_list[i]); 357 ether_del_proto(ifp, protocol); 392 /* if we're bonded, bond "protocol" gets all the packets */ 443 * Determine the packet's protocol typ 206 ether_add_proto_internal( struct ifnet *ifp, protocol_family_t protocol, const struct ifnet_demux_desc *demux) argument 345 ether_add_proto( ifnet_t ifp, protocol_family_t protocol, const struct ifnet_demux_desc *demux_list, u_int32_t demux_count) argument [all...] |
H A D | dlil.h | 53 * DLIL_DESC_ETYPE2 - native_type must point to 2 byte ethernet raw protocol, 55 * DLIL_DESC_SAP - native_type must point to 3 byte SAP protocol 57 * DLIL_DESC_SNAP - native_type must point to 5 byte SNAP protocol 62 * Future interface families may define more protocol types they know about. 63 * The type implies the offset and context of the protocol data at native_type. 64 * The length of the protocol data specified at native_type must be set in 109 the input thread to run through packets queued for protocol input. 163 int dlil_detach_protocol(ifnet_t ifp, u_long protocol);
|
H A D | ether_inet6_pr_module.c | 124 protocol_family_t protocol, 130 if ((error = proto_input(protocol, packet))) 122 ether_inet6_input( __unused ifnet_t ifp, protocol_family_t protocol, mbuf_t packet, __unused char *header) argument
|
H A D | ndrv.c | 39 * protocol packets. This lets ndrv_output() call ifnet_output(), and 41 * The purpose here is for user-mode protocol implementation. 46 * strange protocol support. One of the main ones will be the 261 * within that protocol family (assuming there's 293 ndrv_event(struct ifnet *ifp, __unused protocol_family_t protocol, argument 510 case NDRV_SETDMXSPEC: /* Set protocol spec */ 801 /* Detach the protocol */ 809 ndrv_find_inbound(struct ifnet *ifp, u_long protocol) argument 813 if (protocol == PF_NDRV) return NULL; 816 if (np->nd_proto_family == protocol [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/netat/ |
H A D | at_pat.h | 58 unsigned char protocol[5]; member in struct:__anon261
|
H A D | drv_dep.c | 78 static void at_input_packet(protocol_family_t protocol, mbuf_t m); 204 __unused protocol_family_t protocol, 277 if (LLC_PROTO_EQUAL(llc_header->protocol,snap_proto_aarp)) { 281 else if (LLC_PROTO_EQUAL(llc_header->protocol, snap_proto_ddp)) { 291 llc_header->protocol[3], 292 llc_header->protocol[4]); 311 llc_header->protocol[3], 312 llc_header->protocol[4]); 203 at_input_packet( __unused protocol_family_t protocol, mbuf_t m) argument
|
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/ |
H A D | uipc_domain.c | 141 /* Recompute for new protocol */ 235 net_del_proto(int type, int protocol, struct domain *dp) argument 241 pp1->pr_protocol == protocol) 394 pffindproto(int family, int protocol, int type) argument 399 pr = pffindproto_locked(family, protocol, type); 405 pffindproto_locked(int family, int protocol, int type) argument 418 if ((pr->pr_protocol == protocol) && (pr->pr_type == type)) 429 pffindprotonotype_locked(int family, int protocol, __unused int type) argument 441 if (pr->pr_protocol == protocol) { 449 pffindprotonotype(int family, int protocol) argument 468 int family, protocol, error; local [all...] |
H A D | socket_info.c | 101 short protocol; local 112 /* The kind of socket is determined by the triplet {family, type, protocol} */ 115 protocol = so->so_proto->pr_protocol; 138 if (type == SOCK_STREAM && (protocol == 0 || protocol == IPPROTO_TCP) && inp->inp_ppcb != 0) {
|
H A D | kpi_mbuf.c | 690 mbuf_inet_cksum(mbuf_t mbuf, int protocol, u_int32_t offset, u_int32_t length, argument 697 *csum = inet_cksum(mbuf, protocol, offset, length); 703 mbuf_inet6_cksum(mbuf_t mbuf, int protocol, u_int32_t offset, u_int32_t length, argument 710 *csum = inet6_cksum(mbuf, protocol, offset, length); 715 mbuf_inet6_cksum(__unused mbuf_t mbuf, __unused int protocol, argument
|
H A D | kpi_socketfilter.c | 444 int protocol) 449 struct protosw *pr = pffindproto(domain, protocol, type); 440 sflt_register( const struct sflt_filter *filter, int domain, int type, int protocol) argument
|
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/ |
H A D | kpi_ipfilter.h | 66 protocol such as udp or tcp. In the case of encapsulation, such 70 packet. Offset and protocol are used to determine where in the 72 interested in TCP or UDP packets, just return 0 if protocol 79 @param protocol The protocol type (udp/tcp/icmp/etc...) of the IP packet 85 typedef errno_t (*ipf_input_func)(void* cookie, mbuf_t *data, int offset, u_int8_t protocol);
|
/macosx-10.5.8/xnu-1228.15.4/bsd/sys/ |
H A D | kpi_socket.h | 293 @param protocol The socket protocol. 300 errno_t sock_socket(int domain, int type, int protocol, sock_upcall callback, 377 @param protocol The socket protocol. May be NULL. 380 errno_t sock_gettype(socket_t so, int *domain, int *type, int *protocol);
|
H A D | pthread_internal.h | 43 u_int32_t protocol:2, /* protocol attribute */ member in struct:__anon408 60 u_int32_t protocol:2, /* protocol */ member in struct:_pthread_mutex
|
H A D | protosw.h | 89 * Each protocol has a handle initializing one of these structures, 90 * which is used for protocol-protocol and system-protocol communication. 92 * A protocol is called through the pr_init entry before any other. 102 * The protocol is responsible for the space occupied by any the 119 struct domain *pr_domain; /* domain protocol a member of */ 120 short pr_protocol; /* protocol number */ 122 /* protocol-protocol hook [all...] |
H A D | kpi_socketfilter.h | 303 protocol will call this before accepting an incoming connection and 322 connections. A protocol will call this before initiating an 529 desciption of domain, type, and protocol. 531 @param domain The protocol domain these filters will be attached to. 533 @param protocol The protocol these filters will be attached to. 537 int type, int protocol);
|
H A D | kpi_mbuf.h | 110 @constant MBUF_MT_CONTROL Extra-data protocol message (control 119 MBUF_TYPE_PCB = 4, /* protocol control block */ 128 MBUF_TYPE_CONTROL = 14, /* extra-data protocol message */ 223 @field drain Number of times protocol drain functions were called. 1007 the caller must pass the protocol family of the packet as well 1008 as the offset from the start of the packet to the protocol 1011 @param protocol_family The protocol family of the packet in the 1014 protocol header. For an IP packet with an ethernet header, this 1026 @param vlan The protocol family of the aux data to add. 1039 @param vlan The protocol famil [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/netkey/ |
H A D | key.c | 460 #define CMP_HEAD 0x1 /* protocol, addresses. */ 654 ipseclog((LOG_ERR, "protocol family mismatched %d != %d\n.", 845 * searching SAD with direction, protocol, mode and state. 1027 * security protocol (AH or ESP) identifier. 3298 * search SAD litmited alive SA, protocol, SPI. 3708 "protocol and algorithm mismated.\n")); 3717 "protocol and algorithm mismated.\n")); 5127 * 0: invalid protocol type. 5559 "key_update: protocol mismatched (DB=%u param=%u)\n", 7734 /* check field of upper layer protocol an 8470 ipsecif_detach_ip( ifnet_t interface, protocol_family_t protocol, socket_t pf_socket) argument 8501 ipsecif_remove_address( ifnet_t interface, protocol_family_t protocol, ifaddr_t address, socket_t pf_socket) argument 8550 ipsecif_cleanup_family( ifnet_t interface, protocol_family_t protocol) argument 8759 ipsecif_demux( __unused ifnet_t interface, mbuf_t data, __unused char *frame_header, protocol_family_t *protocol) argument 8788 ipsecif_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 8807 ipsecif_del_proto( __unused ifnet_t interface, __unused protocol_family_t protocol) argument 8862 ipsecif_proto_input( __unused ifnet_t interface, protocol_family_t protocol, mbuf_t m, __unused char *frame_header) argument 8874 ipsecif_attach_proto( ifnet_t interface, protocol_family_t protocol) argument [all...] |
/macosx-10.5.8/xnu-1228.15.4/security/ |
H A D | mac_socket.c | 350 * If the protocol has expressed interest in socket layer changes, 530 mac_socket_check_create(kauth_cred_t cred, int domain, int type, int protocol) argument 537 MAC_CHECK(socket_check_create, cred, domain, type, protocol);
|