diff options
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2008-02-29 11:06:47 -0500 |
---|---|---|
committer | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2008-03-04 01:18:22 -0500 |
commit | e898d4db2749c6052072e9bc4448e396cbdeb06a (patch) | |
tree | 2b8673d85210a23e67d0817b18f401411e8936f3 /include/net/ipv6.h | |
parent | c6aefafb7ec620911d46174eed514f9df639e5a4 (diff) |
[UDP]: Allow users to configure UDP-Lite.
Let's give users an option for disabling UDP-Lite (~4K).
old:
| text data bss dec hex filename
| 286498 12432 6072 305002 4a76a net/ipv4/built-in.o
| 193830 8192 3204 205226 321aa net/ipv6/ipv6.o
new (without UDP-Lite):
| text data bss dec hex filename
| 284086 12136 5432 301654 49a56 net/ipv4/built-in.o
| 191835 7832 3076 202743 317f7 net/ipv6/ipv6.o
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Diffstat (limited to 'include/net/ipv6.h')
-rw-r--r-- | include/net/ipv6.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/ipv6.h b/include/net/ipv6.h index 8b05c65415cb..96b1763bfcaa 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h | |||
@@ -603,8 +603,13 @@ extern int tcp6_proc_init(void); | |||
603 | extern void tcp6_proc_exit(void); | 603 | extern void tcp6_proc_exit(void); |
604 | extern int udp6_proc_init(void); | 604 | extern int udp6_proc_init(void); |
605 | extern void udp6_proc_exit(void); | 605 | extern void udp6_proc_exit(void); |
606 | #ifdef CONFIG_IP_UDPLITE | ||
606 | extern int udplite6_proc_init(void); | 607 | extern int udplite6_proc_init(void); |
607 | extern void udplite6_proc_exit(void); | 608 | extern void udplite6_proc_exit(void); |
609 | #else | ||
610 | static inline int udplite6_proc_init(void) { return 0; } | ||
611 | static inline void udplite6_proc_exit(void) { } | ||
612 | #endif | ||
608 | extern int ipv6_misc_proc_init(void); | 613 | extern int ipv6_misc_proc_init(void); |
609 | extern void ipv6_misc_proc_exit(void); | 614 | extern void ipv6_misc_proc_exit(void); |
610 | extern int snmp6_register_dev(struct inet6_dev *idev); | 615 | extern int snmp6_register_dev(struct inet6_dev *idev); |