diff options
author | John Hurley <john.hurley@netronome.com> | 2018-06-28 17:03:04 +0100 |
---|---|---|
committer | Simon Horman <simon.horman@netronome.com> | 2018-06-29 14:57:32 +0200 |
commit | 135ee7ef362f77c8b3f132c004e79005ff368a6b (patch) | |
tree | c8104ecb9c095c4f8ecce397f9283ae0c8ba2071 /lib/rtnetlink.h | |
parent | 88dcf2aa82347da7bfcf4f6e1d72c2d3012b4c12 (diff) | |
download | openvswitch-135ee7ef362f77c8b3f132c004e79005ff368a6b.tar.gz |
rtnetlink: extend parser to include kind of master and slave
Extend the rtnetlink_parse function to look for linkinfo attributes and,
in turn, store pointers to the master and slave kinds (if any) in the
rtnetlink_change struct.
Signed-off-by: John Hurley <john.hurley@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Diffstat (limited to 'lib/rtnetlink.h')
-rwxr-xr-x[-rw-r--r--] | lib/rtnetlink.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rtnetlink.h b/lib/rtnetlink.h index 518320f73..422d1db11 100644..100755 --- a/lib/rtnetlink.h +++ b/lib/rtnetlink.h @@ -48,6 +48,10 @@ struct rtnetlink_change { /* Network device address status. */ /* xxx To be added when needed. */ + + /* Link info. */ + const char *master; /* Kind of master (NULL if not master). */ + const char *slave; /* Kind of slave (NULL if not slave). */ }; /* Function called to report that a netdev has changed. 'change' describes the |