Lines Matching defs:protocol

141  * the ifnet lock.  The rest of the fields are initialized at protocol
598 * the hash bucket index and the protocol family defined
645 extern void if_rtproto_del(struct ifnet *ifp, int protocol);
659 /* No more reference on this, protocol must have been detached */
673 * interface/protocol pair.
678 * The reserved field carries the number of protocol still attached
1471 * c) protocol registrations
2880 /* find which protocol family this packet is for */
2913 /* Lookup the protocol attachment to this interface */
2929 /* no protocol for this packet, discard */
2935 /* pass up the list for the previous protocol */
3205 * Caller should have a lock on the protocol domain if the protocol
3210 * This does mean that we must take a protocol lock before we take
3212 * because a protocol is likely to interact with an ifp while it
3213 * is under the protocol lock.
3505 * We want to run all filters before calling the protocol,
3539 /* Allow the protocol to handle the ioctl */
3573 * already handled this in the protocol or family.
3627 /* Call the protocol first; callee holds a proto refcnt upon success */
3980 * Insert the protocol in the hash
3995 * The reserved field carries the number of protocol still attached
4009 ifnet_attach_protocol(ifnet_t ifp, protocol_family_t protocol,
4016 if (ifp == NULL || protocol == 0 || proto_details == NULL) {
4035 ifproto->protocol_family = protocol;
4049 printf("%s%d: attached v1 protocol %d\n", ifp->if_name,
4050 ifp->if_unit, protocol);
4055 DLIL_PRINTF("%s%d: failed to attach v1 protocol %d (err=%d)\n",
4056 ifp->if_name, ifp->if_unit, protocol, retval);
4065 ifnet_attach_protocol_v2(ifnet_t ifp, protocol_family_t protocol,
4072 if (ifp == NULL || protocol == 0 || proto_details == NULL) {
4091 ifproto->protocol_family = protocol;
4105 printf("%s%d: attached v2 protocol %d\n", ifp->if_name,
4106 ifp->if_unit, protocol);
4111 DLIL_PRINTF("%s%d: failed to attach v2 protocol %d (err=%d)\n",
4112 ifp->if_name, ifp->if_unit, protocol, retval);
4166 printf("%s%d: detached %s protocol %d\n", ifp->if_name,
4171 /* release proto refcnt held during protocol attach */
4176 * protocol detach steps will happen when the last proto
4187 ifproto_media_input_v1(struct ifnet *ifp, protocol_family_t protocol,
4190 #pragma unused(ifp, protocol, packet, header)
4195 ifproto_media_input_v2(struct ifnet *ifp, protocol_family_t protocol,
4198 #pragma unused(ifp, protocol, packet)
4204 ifproto_media_preout(struct ifnet *ifp, protocol_family_t protocol,
4208 #pragma unused(ifp, protocol, packet, dest, route, frame_type, link_layer_dest)
4214 ifproto_media_event(struct ifnet *ifp, protocol_family_t protocol,
4217 #pragma unused(ifp, protocol, event)
4221 ifproto_media_ioctl(struct ifnet *ifp, protocol_family_t protocol,
4224 #pragma unused(ifp, protocol, command, argument)
4304 * Allow interfaces without protocol families to attach
4316 /* Allocate protocol hash table */
4758 * aggressive protocol draining; if so, decrement the global