Message ID | 20200818081733.10892-1-johannes@sipsolutions.net |
---|---|
Headers | show |
Series | netlink: allow NLA_BINARY length range validation | expand |
From: Johannes Berg <johannes@sipsolutions.net> Date: Tue, 18 Aug 2020 10:17:30 +0200 > In quite a few places (perhaps particularly in wireless) we need to > validation an NLA_BINARY attribute with both a minimum and a maximum > length. Currently, we can do either of the two, but not both, given > that we have NLA_MIN_LEN (minimum length) and NLA_BINARY (maximum). > > Extend the range mechanisms that we use for integer validation to > apply to NLA_BINARY as well. ... Series applied, thanks Johannes.