On Sunday 05 January 2014 23:25:34 Antonio Quartulli wrote:
Other part of batctl may require to open and send a message to RTNL. Extract this code and put it in a generic helper to simplify future uses.
Signed-off-by: Antonio Quartulli antonio@meshcoding.com
Changes from v2:
- removed IFLA_NAME attribute from request (now we send the ifindex
directly) - improved rtnl_open()
Changes from v1:
- fixed typ0
- removed len argument from rtnl_open() in 1/3
- removed error messages in 2/3
- avoided double free in 2/3
- simplified 3/3
functions.c | 51 +++++++++++++++++++++++++++++++++++---------------- 1 file changed, 35 insertions(+), 16 deletions(-)
Applied in revision 148ba1c.
Thanks, Marek