summaryrefslogtreecommitdiffstats
path: root/include/linux/udp.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/udp.h')
-rw-r--r--include/linux/udp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/udp.h b/include/linux/udp.h
index eaea63bc79bb..ca840345571b 100644
--- a/include/linux/udp.h
+++ b/include/linux/udp.h
@@ -55,6 +55,7 @@ struct udp_sock {
55 * when the socket is uncorked. 55 * when the socket is uncorked.
56 */ 56 */
57 __u16 len; /* total length of pending frames */ 57 __u16 len; /* total length of pending frames */
58 __u16 gso_size;
58 /* 59 /*
59 * Fields specific to UDP-Lite. 60 * Fields specific to UDP-Lite.
60 */ 61 */
@@ -87,6 +88,8 @@ struct udp_sock {
87 int forward_deficit; 88 int forward_deficit;
88}; 89};
89 90
91#define UDP_MAX_SEGMENTS (1 << 6UL)
92
90static inline struct udp_sock *udp_sk(const struct sock *sk) 93static inline struct udp_sock *udp_sk(const struct sock *sk)
91{ 94{
92 return (struct udp_sock *)sk; 95 return (struct udp_sock *)sk;