inet6_add_protocol
int inet6_add_protocol(const struct inet6_protocol *prot, unsigned char num);
ret = inet6_add_protocol(&rthdr_protocol, IPPROTO_ROUTING);
ret = inet6_add_protocol(&destopt_protocol, IPPROTO_DSTOPTS);
ret = inet6_add_protocol(&nodata_protocol, IPPROTO_NONE);
if (inet6_add_protocol(&icmpv6_protocol, IPPROTO_ICMPV6) < 0)
err = inet6_add_protocol(&ip6gre_protocol, IPPROTO_GRE);
if (inet6_add_protocol(&pim6_protocol, IPPROTO_PIM) < 0) {
EXPORT_SYMBOL(inet6_add_protocol);
ret = inet6_add_protocol(&frag_protocol, IPPROTO_FRAGMENT);
ret = inet6_add_protocol(&net_hotdata.tcpv6_protocol, IPPROTO_TCP);
if (inet6_add_protocol(&tunnel6_protocol, IPPROTO_IPV6)) {
if (inet6_add_protocol(&tunnel46_protocol, IPPROTO_IPIP)) {
inet6_add_protocol(&tunnelmpls6_protocol, IPPROTO_MPLS)) {
ret = inet6_add_protocol(&net_hotdata.udpv6_protocol, IPPROTO_UDP);
ret = inet6_add_protocol(&udplitev6_protocol, IPPROTO_UDPLITE);
if (inet6_add_protocol(netproto(protocol), protocol)) {
err = inet6_add_protocol(&l2tp_ip6_protocol, IPPROTO_L2TP);
if (inet6_add_protocol(&sctpv6_protocol, IPPROTO_SCTP) < 0)