Skip to content

Commit

Permalink
Fix for qosmap not working
Browse files Browse the repository at this point in the history
While refractoring vrouter-utils/ library for *nix and windows, due to
incorrect offset calculation of nlmsghdr when parsing OS specific nl
replies, qosmap was not working. Fixing the same.

Change-Id: Idae686f3082d912ff5411dd4e0f693e675c2d821
Closes-Bug: 1770316
  • Loading branch information
kirankn80 committed Aug 1, 2018
1 parent 424fa50 commit 7c12561
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/unix_util.c
Expand Up @@ -314,7 +314,8 @@ nl_reset_cl_sock(struct nl_client *cl)
struct nl_response *
nl_parse_reply_os_specific(struct nl_client *cl)
{
struct nlmsghdr *nlh = (struct nlmsghdr *)(cl->cl_buf + cl->cl_buf_offset);
struct nlmsghdr *nlh = (struct nlmsghdr *)(cl->cl_buf +
cl->cl_buf_offset - NLMSG_HDRLEN);
struct nl_response *resp = &cl->resp;

if ((nlh->nlmsg_type == RTM_SETDCB) || (nlh->nlmsg_type == RTM_GETDCB)) {
Expand Down

0 comments on commit 7c12561

Please sign in to comment.