summaryrefslogtreecommitdiffstats
path: root/net/ipv4/af_inet.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1998-05-07 02:55:41 +0000
committerRalf Baechle <ralf@linux-mips.org>1998-05-07 02:55:41 +0000
commitdcec8a13bf565e47942a1751a9cec21bec5648fe (patch)
tree548b69625b18cc2e88c3e68d0923be546c9ebb03 /net/ipv4/af_inet.c
parent2e0f55e79c49509b7ff70ff1a10e1e9e90a3dfd4 (diff)
o Merge with Linux 2.1.99.
o Fix ancient bug in the ELF loader making ldd crash. o Fix ancient bug in the keyboard code for SGI, SNI and Jazz.
Diffstat (limited to 'net/ipv4/af_inet.c')
-rw-r--r--net/ipv4/af_inet.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c
index 6667b8d72..ce177c56b 100644
--- a/net/ipv4/af_inet.c
+++ b/net/ipv4/af_inet.c
@@ -117,10 +117,13 @@
#define min(a,b) ((a)<(b)?(a):(b))
+struct linux_mib net_statistics;
+
extern int sysctl_core_destroy_delay;
extern int raw_get_info(char *, char **, off_t, int, int);
extern int snmp_get_info(char *, char **, off_t, int, int);
+extern int netstat_get_info(char *, char **, off_t, int, int);
extern int afinet_get_info(char *, char **, off_t, int, int);
extern int tcp_get_info(char *, char **, off_t, int, int);
extern int udp_get_info(char *, char **, off_t, int, int);
@@ -352,7 +355,6 @@ static int inet_create(struct socket *sock, int protocol)
if (protocol && protocol != IPPROTO_TCP)
goto free_and_noproto;
protocol = IPPROTO_TCP;
- sk->no_check = TCP_NO_CHECK;
if (ipv4_config.no_pmtu_disc)
sk->ip_pmtudisc = IP_PMTUDISC_DONT;
else
@@ -1017,6 +1019,12 @@ static struct proc_dir_entry proc_net_raw = {
0, &proc_net_inode_operations,
raw_get_info
};
+static struct proc_dir_entry proc_net_netstat = {
+ PROC_NET_NETSTAT, 7, "netstat",
+ S_IFREG | S_IRUGO, 1, 0, 0,
+ 0, &proc_net_inode_operations,
+ netstat_get_info
+};
static struct proc_dir_entry proc_net_snmp = {
PROC_NET_SNMP, 4, "snmp",
S_IFREG | S_IRUGO, 1, 0, 0,
@@ -1044,6 +1052,8 @@ static struct proc_dir_entry proc_net_udp = {
#endif /* CONFIG_PROC_FS */
extern void tcp_init(void);
+extern void tcp_v4_init(struct net_proto_family *);
+
/*
* Called by socket.c on kernel startup.
@@ -1093,9 +1103,12 @@ __initfunc(void inet_proto_init(struct net_proto *pro))
ip_init();
+ tcp_v4_init(&inet_family_ops);
+
/* Setup TCP slab cache for open requests. */
tcp_init();
+
/*
* Set the ICMP layer up
*/
@@ -1142,6 +1155,7 @@ __initfunc(void inet_proto_init(struct net_proto *pro))
#endif /* RARP */
proc_net_register(&proc_net_raw);
proc_net_register(&proc_net_snmp);
+ proc_net_register(&proc_net_netstat);
proc_net_register(&proc_net_sockstat);
proc_net_register(&proc_net_tcp);
proc_net_register(&proc_net_udp);