On Wed, Dec 01, 2010 at 10:22:58AM -0800, John Fastabend wrote:
You have to check the return value here.
Same here
This is probably not what you want. NLA_BINARY only enforces a maximum
payload length but no minimum payload length.
Omit the .type and let it fall back to NLA_UNSPEC and only specify a
.len. This enforces that the attribute payload is at least .len in
length. You should not worry about payload that exceeds your size
expectations. This allows to extend ifla_tc_txq in the future.
Same here
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html