summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJiri Pirko <jiri@resnulli.us>2013-03-17 10:44:58 +0100
committerJiri Pirko <jiri@resnulli.us>2013-03-17 11:11:48 +0100
commit65e5f7aa92359892004625f6ed1c7f5c90dae6ff (patch)
tree3ee9edf2fc8485a7fa67aa4a6be25d6a8c12f817 /include
parentb2164948b972fc09fcbd26dfdfd011a1773384a7 (diff)
downloadlibndp-65e5f7aa92359892004625f6ed1c7f5c90dae6ff.tar.gz
lib: init msg->len accorsding to ND type during init and introduce maxlen getter
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Diffstat (limited to 'include')
-rw-r--r--include/ndp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ndp.h b/include/ndp.h
index 6f310d6..1f271c2 100644
--- a/include/ndp.h
+++ b/include/ndp.h
@@ -89,6 +89,7 @@ uint32_t ndp_msgra_opt_mtu(struct ndp_msgra *msgra);
int ndp_msg_new(struct ndp_msg **p_msg, enum ndp_msg_type msg_type);
void ndp_msg_destroy(struct ndp_msg *msg);
void *ndp_msg_payload(struct ndp_msg *msg);
+size_t ndp_msg_payload_maxlen(struct ndp_msg *msg);
size_t ndp_msg_payload_len(struct ndp_msg *msg);
void ndp_msg_payload_len_set(struct ndp_msg *msg, size_t len);
void *ndp_msg_payload_opts(struct ndp_msg *msg);