commit | 4b9e91782269fc871d158ed4f11bfcfe4e3b8bf7 | [log] [tgz] |
---|---|---|
author | Phil Sutter <phil@nwl.cc> | Thu Aug 24 11:51:50 2017 +0200 |
committer | Stephen Hemminger <stephen@networkplumber.org> | Thu Aug 24 14:53:14 2017 -0700 |
tree | 6a869a90de83dd352e0e4a349e9df7c42a3acca0 | |
parent | 56270e54661e8ca51d4b3661b9f9bb12a0a40d95 [diff] |
lib/ll_map: Choose size of new cache items at run-time Instead of having a fixed buffer of 16 bytes for the interface name, tailor size of new ll_cache entry using the interface name's actual length. This also makes sure the following call to strcpy() is safe. Signed-off-by: Phil Sutter <phil@nwl.cc>