Kernel functions net_protocol_lookup(9F) NAME net_protocol_lookup - locate an implementation of a network layer protocol SYNOPSIS #include net_data_t net_protocol_lookup(netid_t id, const char *pro- tocol); INTERFACE LEVEL Solaris DDI specific (Solaris DDI) PARAMETERS id network instance identifier. family name of the network protocol to find. DESCRIPTION This function attempts to locate a data structure that defines what capabilities it is exporting through this interface. The value returned by this call is guaranteed to be valid until it is passed into a call to net_protocol_release(), after which it should no longer be treated as valid. The protocol must be a registered name of a network protocol that has been registered. The symbols NHF_INET and NHF_INET6 should be passed to net_protocol_lookup(9f) as the protocol name to gain access to either IPv4 or IPv6 respec- tively. RETURN VALUE This function returns NULL if it could not find any knowledge about the network protocol referenced and other- wise returns a value that can be used with other calls in this framework. ATTRIBUTES See attributes(5) for descriptions of the following attri- butes: ____________________________________________________________ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |_____________________________|_____________________________| | Interface Stability | Committed | SunOS 5.10 Last change: 25 March 2008 1 Kernel functions net_protocol_lookup(9F) |_____________________________|_____________________________| SEE ALSO net_protocol_release(9f) SunOS 5.10 Last change: 25 March 2008 2