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.
Unified · Split
| @@ -124,8 +124,8 @@ enum { · 123 unmodified lines | |||
| 124 | L2TP_ATTR_STATS, /* nested */ | 124 | L2TP_ATTR_STATS, /* nested */ |
| 125 | L2TP_ATTR_IP6_SADDR, /* struct in6_addr */ | 125 | L2TP_ATTR_IP6_SADDR, /* struct in6_addr */ |
| 126 | L2TP_ATTR_IP6_DADDR, /* struct in6_addr */ | 126 | L2TP_ATTR_IP6_DADDR, /* struct in6_addr */ |
| 127 | L2TP_ATTR_UDP_ZERO_CSUM6_TX, /* u8 */ | 127 | L2TP_ATTR_UDP_ZERO_CSUM6_TX, /* flag */ |
| 128 | L2TP_ATTR_UDP_ZERO_CSUM6_RX, /* u8 */ | 128 | L2TP_ATTR_UDP_ZERO_CSUM6_RX, /* flag */ |
| 129 | L2TP_ATTR_PAD, | 129 | L2TP_ATTR_PAD, |
| 130 | __L2TP_ATTR_MAX, | 130 | __L2TP_ATTR_MAX, |
| 131 | }; | 131 | }; |