dev_add_pack(&ip_packet_type);  
static int __init inet_init(void){	struct sk_buff *dummy_skb;	struct inet_protosw *q;	struct list_head *r;	int rc = -EINVAL;	if (sizeof(struct inet_skb_parm) > sizeof(dummy_skb->cb)) {		printk(KERN_CRIT "%s: panic\n", __FUNCTION__);		goto out;	}	rc = proto_register(&tcp_prot, 1);	if (rc)		goto out;	rc = proto_register(&udp_prot, 1);	if (rc)		goto out_unregister_tcp_proto;	rc = proto_register(&raw_prot, 1);	if (rc)		goto out_unregister_udp_proto;	/*	 *	Tell SOCKET that we are alive... 	 */  	(void)sock_register(&inet_family_ops);	/*	 *	Add all the base protocols.	 */	if (inet_add_protocol(&icmp_protocol, IPPROTO_ICMP) < 0)		printk(KERN_CRIT "inet_init: Cannot add ICMP protocol\n");	if (inet_add_protocol(&udp_protocol, IPPROTO_UDP) < 0)		printk(KERN_CRIT "inet_init: Cannot add UDP protocol\n");	if (inet_add_protocol(&tcp_protocol, IPPROTO_TCP) < 0)		printk(KERN_CRIT "inet_init: Cannot add TCP protocol\n");#ifdef CONFIG_IP_MULTICAST	if (inet_add_protocol(&igmp_protocol, IPPROTO_IGMP) < 0)		printk(KERN_CRIT "inet_init: Cannot add IGMP protocol\n");#endif	/* Register the socket-side information for inet_create. */	for (r = &inetsw[0]; r < &inetsw[SOCK_MAX]; ++r)		INIT_LIST_HEAD(r);	for (q = inetsw_array; q < &inetsw_array[INETSW_ARRAY_LEN]; ++q)		inet_register_protosw(q);	/*	 *	Set the ARP module up	 */	arp_init();  	/*  	 *	Set the IP module up  	 */	ip_init();	tcp_v4_init(&inet_family_ops);	/* Setup TCP slab cache for open requests. */	tcp_init();	/*	 *	Set the ICMP layer up	 */	icmp_init(&inet_family_ops);	/*	 *	Initialise the multicast router	 */#if defined(CONFIG_IP_MROUTE)	ip_mr_init();#endif	/*	 *	Initialise per-cpu ipv4 mibs	 */ 	if(init_ipv4_mibs())		printk(KERN_CRIT "inet_init: Cannot init ipv4 mibs\n"); ;		ipv4_proc_init();	ipfrag_init();	rc = 0;out:	return rc;out_unregister_tcp_proto:	proto_unregister(&tcp_prot);out_unregister_udp_proto:	proto_unregister(&udp_prot);	goto out;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/30e224d76f34e041c30df66a4dcbeeb53556ea3f/af_inet.c/clean/net/ipv4/af_inet.c