diff options
author | Petr Machata <me@pmachata.org> | 2021-01-03 11:57:22 +0100 |
---|---|---|
committer | Stephen Hemminger <stephen@networkplumber.org> | 2021-01-16 09:12:15 -0800 |
commit | 2e99c281611ad229dfd28818bb50824fb2586a20 (patch) | |
tree | 902cd0aaf6a7a8508dad6ad1bea2e23bffca3165 /dcb | |
parent | 8b4b1322614f85068a5e6d47205285bb3d20ab05 (diff) | |
download | iproute2-2e99c281611ad229dfd28818bb50824fb2586a20.tar.gz |
dcb: Set values with RTM_SETDCB type
dcb currently sends all netlink messages with a type RTM_GETDCB, even the
set ones. Change to the appropriate type.
Fixes: 67033d1c1c8a ("Add skeleton of a new tool, dcb")
Signed-off-by: Petr Machata <me@pmachata.org>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Diffstat (limited to 'dcb')
-rw-r--r-- | dcb/dcb.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -177,7 +177,7 @@ int dcb_set_attribute(struct dcb *dcb, const char *dev, int attr, const void *da struct nlattr *nest; int ret; - nlh = dcb_prepare(dcb, dev, RTM_GETDCB, DCB_CMD_IEEE_SET); + nlh = dcb_prepare(dcb, dev, RTM_SETDCB, DCB_CMD_IEEE_SET); nest = mnl_attr_nest_start(nlh, DCB_ATTR_IEEE); mnl_attr_put(nlh, attr, data_len, data); |