inet_add_protocol
int inet_add_protocol(const struct net_protocol *prot, unsigned char num);
if (inet_add_protocol(&icmp_protocol, IPPROTO_ICMP) < 0)
if (inet_add_protocol(&net_hotdata.udp_protocol, IPPROTO_UDP) < 0)
if (inet_add_protocol(&net_hotdata.tcp_protocol, IPPROTO_TCP) < 0)
if (inet_add_protocol(&igmp_protocol, IPPROTO_IGMP) < 0)
if (inet_add_protocol(&net_gre_protocol, IPPROTO_GRE) < 0) {
if (inet_add_protocol(&pim_protocol, IPPROTO_PIM) < 0) {
EXPORT_SYMBOL(inet_add_protocol);
if (inet_add_protocol(&tunnel4_protocol, IPPROTO_IPIP))
if (inet_add_protocol(&tunnel64_protocol, IPPROTO_IPV6)) {
if (inet_add_protocol(&tunnelmpls4_protocol, IPPROTO_MPLS)) {
if (inet_add_protocol(&udplite_protocol, IPPROTO_UDPLITE) < 0)
if (inet_add_protocol(netproto(protocol), protocol)) {
err = inet_add_protocol(&l2tp_ip_protocol, IPPROTO_L2TP);
if (inet_add_protocol(&sctp_protocol, IPPROTO_SCTP) < 0)