- @function proto_unregister_plumber
- @discussion Unregisters a previously registered plumbing function.
- @param proto_fam The protocol family these plumbing functions
- handle.
- @param if_fam The interface family these plumbing functions handle.
+ * @function proto_unregister_plumber
+ * @discussion Unregisters a previously registered plumbing function.
+ * @param proto_fam The protocol family these plumbing functions
+ * handle.
+ * @param if_fam The interface family these plumbing functions handle.
+ */
+extern void proto_unregister_plumber(protocol_family_t proto_fam,
+ ifnet_family_t if_fam)
+__NKE_API_DEPRECATED;
+
+#ifdef BSD_KERNEL_PRIVATE
+/*
+ * @function proto_plumb
+ * @discussion Plumbs a protocol to an actual interface. This will find
+ * a registered protocol module and call its attach function.
+ * The module will typically call dlil_attach_protocol() with the
+ * appropriate parameters.
+ * @param protocol_family The protocol family.
+ * @param ifp The interface to plumb the protocol to.
+ * @result 0: No error.
+ * ENOENT: No module was registered.
+ * Other: Error returned by the attach_proto function