summaryrefslogtreecommitdiff
path: root/libndp
diff options
context:
space:
mode:
authorJiri Pirko <jiri@resnulli.us>2013-03-16 22:05:36 +0100
committerJiri Pirko <jiri@resnulli.us>2013-03-17 11:11:48 +0100
commitafbaf91e575422be80fae5f4dd67f0a361eca4e7 (patch)
treefc0601ecc8922289074b20fb00c8f20dbe9d6fcc /libndp
parent650e30d185fd0b4ef5fcdebf6720e87a08ec90a3 (diff)
downloadlibndp-afbaf91e575422be80fae5f4dd67f0a361eca4e7.tar.gz
lib: add msg ifindex setter
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Diffstat (limited to 'libndp')
-rw-r--r--libndp/libndp.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libndp/libndp.c b/libndp/libndp.c
index 99ad3b5..0c631b0 100644
--- a/libndp/libndp.c
+++ b/libndp/libndp.c
@@ -1035,6 +1035,18 @@ uint32_t ndp_msg_ifindex(struct ndp_msg *msg)
}
/**
+ * ndp_msg_ifindex_set:
+ * @msg: message structure
+ *
+ * Set raw interface index of message.
+ **/
+NDP_EXPORT
+void ndp_msg_ifindex_set(struct ndp_msg *msg, uint32_t ifindex)
+{
+ msg->ifindex = ifindex;
+}
+
+/**
* ndp_msg_send:
* @ndp: libndp library context
* @msg: message structure