[PATCH] idiag: fix a typo in idiagnl_req_set_ifindex()

Cong Wang xiyou.wangcong at gmail.com
Tue Sep 23 10:00:06 PDT 2014


Signed-off-by: Cong Wang <xiyou.wangcong at gmail.com>
---
 lib/idiag/idiag_req_obj.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/idiag/idiag_req_obj.c b/lib/idiag/idiag_req_obj.c
index d9dab8e..5d08f32 100644
--- a/lib/idiag/idiag_req_obj.c
+++ b/lib/idiag/idiag_req_obj.c
@@ -68,7 +68,7 @@ uint32_t idiagnl_req_get_ifindex(const struct idiagnl_req *req)
 
 void idiagnl_req_set_ifindex(struct idiagnl_req *req, uint32_t ifindex)
 {
-	req->idiag_states = ifindex;
+	req->idiag_ifindex = ifindex;
 }
 
 uint32_t idiagnl_req_get_states(const struct idiagnl_req *req)
-- 
1.8.3.1




More information about the libnl mailing list