diff options
author | Jiri Pirko <jiri@resnulli.us> | 2013-03-16 16:44:49 +0100 |
---|---|---|
committer | Jiri Pirko <jiri@resnulli.us> | 2013-03-17 11:11:48 +0100 |
commit | 37d1f82396af8b67e604c6a207ce28a03aca6f1d (patch) | |
tree | 716c383c2e2d5b8d0c566b268d766ac21fe17819 /include | |
parent | 04c2d9d32a7dad6a4830bca132fc4ca72b276ac6 (diff) | |
download | libndp-37d1f82396af8b67e604c6a207ce28a03aca6f1d.tar.gz |
lib: do not parse packet right away but do rather for every getter
Vice versa for setters.
Also store pointer to opts area and use type_infos to set that pointer
correctly.
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Diffstat (limited to 'include')
-rw-r--r-- | include/ndp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ndp.h b/include/ndp.h index b4647ce..2adec98 100644 --- a/include/ndp.h +++ b/include/ndp.h @@ -91,6 +91,8 @@ void ndp_msg_destroy(struct ndp_msg *msg); void *ndp_msg_payload(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); +size_t ndp_msg_payload_opts_len(struct ndp_msg *msg); struct ndp_msgrs *ndp_msgrs(struct ndp_msg *msg); struct ndp_msgra *ndp_msgra(struct ndp_msg *msg); struct ndp_msgns *ndp_msgns(struct ndp_msg *msg); |