summaryrefslogtreecommitdiff
path: root/dcb
diff options
context:
space:
mode:
authorPetr Machata <me@pmachata.org>2021-01-03 11:57:22 +0100
committerStephen Hemminger <stephen@networkplumber.org>2021-01-16 09:12:15 -0800
commit2e99c281611ad229dfd28818bb50824fb2586a20 (patch)
tree902cd0aaf6a7a8508dad6ad1bea2e23bffca3165 /dcb
parent8b4b1322614f85068a5e6d47205285bb3d20ab05 (diff)
downloadiproute2-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dcb/dcb.c b/dcb/dcb.c
index adec5747..f5c62790 100644
--- a/dcb/dcb.c
+++ b/dcb/dcb.c
@@ -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);