Skip to content
Snippets Groups Projects
udp.c 24.4 KiB
Newer Older
  • Learn to ignore specific revisions
  • Linus Torvalds's avatar
    Linus Torvalds committed
    	.prot =      &udpv6_prot,
    	.ops =       &inet6_dgram_ops,
    	.capability =-1,
    	.no_check =  UDP_CSUM_DEFAULT,
    	.flags =     INET_PROTOSW_PERMANENT,
    };
    
    
    void __init udpv6_init(void)
    {
    	if (inet6_add_protocol(&udpv6_protocol, IPPROTO_UDP) < 0)
    		printk(KERN_ERR "udpv6_init: Could not register protocol\n");
    	inet6_register_protosw(&udpv6_protosw);
    }