The attributes L2TP_ATTR_UDP_ZERO_CSUM6_RX and L2TP_ATTR_UDP_ZERO_CSUM6_TX are used as flags, but is defined as a u8 in a comment. This patch redocuments them as flags. Adding nla_policy entries would break API, so not doing that.
Showing the changes to include/uapi (1 of 1 file). Show all
Unified · Split
| @@ -124,8 +124,8 @@ enum { · 123 unmodified lines | ||
| 124 | 124 | L2TP_ATTR_STATS, /* nested */ |
| 125 | 125 | L2TP_ATTR_IP6_SADDR, /* struct in6_addr */ |
| 126 | 126 | L2TP_ATTR_IP6_DADDR, /* struct in6_addr */ |
| 127 | − L2TP_ATTR_UDP_ZERO_CSUM6_TX, /* u8 */ | |
| 128 | − L2TP_ATTR_UDP_ZERO_CSUM6_RX, /* u8 */ | |
| 127 | + L2TP_ATTR_UDP_ZERO_CSUM6_TX, /* flag */ | |
| 128 | + L2TP_ATTR_UDP_ZERO_CSUM6_RX, /* flag */ | |
| 129 | 129 | L2TP_ATTR_PAD, |
| 130 | 130 | __L2TP_ATTR_MAX, |
| 131 | 131 | }; |