Re: [RFC][PATCH 1/3] net/ipv4: UDP-Lite extensions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 23 Aug 2006, [email protected] wrote:

> +void __init udplite4_register(void)
> +{
> +	if (proto_register(&udplite_prot, 1))
> +		goto out_register_err;
> +
> +	if (inet_add_protocol(&udplite_protocol, IPPROTO_UDPLITE) < 0)
> +		goto out_unregister_proto;
> +
> +	inet_register_protosw(&udplite4_protosw);
> +
> +	return;
> +
> +out_unregister_proto:
> +	proto_unregister(&udplite_prot);
> +out_register_err:
> +	printk(KERN_ERR "udplite4_register: Cannot add UDP-Lite protocol\n");
> +}

Other protocols & network components call panic() if they fail during boot 
initialization.  Not sure if this is a great thing, but it raises the 
issue of whether udp-lite should remain consistent here.



- James
-- 
James Morris
<[email protected]>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux