Johannes Berg 33188bd643 netlink: add validation function to policy
Add the ability to have an arbitrary validation function attached
to a netlink policy that doesn't already use the validation_data
pointer in another way.

This can be useful to validate for example the content of a binary
attribute, like in nl80211 the "(information) elements", which must
be valid streams of "u8 type, u8 length, u8 value[length]".

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-10-01 23:05:31 -07:00
..
2018-07-04 08:37:50 +02:00
2018-07-10 15:00:52 -06:00
2018-08-22 10:52:48 -07:00
2018-08-16 12:14:42 -07:00
2018-08-22 10:52:48 -07:00
2018-07-23 15:22:39 +10:00
2018-08-18 11:44:53 -07:00
2018-08-21 23:54:21 -04:00
2018-07-17 09:27:43 +02:00