diff options
author | Jiri Pirko <jiri@resnulli.us> | 2013-04-05 14:37:35 +0200 |
---|---|---|
committer | Jiri Pirko <jiri@resnulli.us> | 2013-04-05 16:30:16 +0200 |
commit | 8296a5bf075543eef2167afdfecb222e70866744 (patch) | |
tree | 7a7818d470a192ff84583dde4f94ec86e7e6bdfa /libndp/ndp_private.h | |
parent | 49739ab207af9b134dbc57fe613f7ae2cf45594b (diff) | |
download | libndp-8296a5bf075543eef2167afdfecb222e70866744.tar.gz |
add support for Route Information Option (rfc4191)
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Diffstat (limited to 'libndp/ndp_private.h')
-rw-r--r-- | libndp/ndp_private.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/libndp/ndp_private.h b/libndp/ndp_private.h index a842677..7ab0ade 100644 --- a/libndp/ndp_private.h +++ b/libndp/ndp_private.h @@ -78,8 +78,19 @@ ndp_log_null(struct ndp *ndp, const char *format, ...) {} #endif /** - * SECTION: function prototypes - * @short_description: prototypes for internal functions + * SECTION: netinet/icmp6.h addendum + * @short_description: defines and structs missing from netinet/icmp6.h */ +#define __ND_OPT_ROUTE_INFO 24 /* rfc4191 */ + +struct __nd_opt_route_info { /* route information */ + uint8_t nd_opt_ri_type; + uint8_t nd_opt_ri_len; + uint8_t nd_opt_ri_prefix_len; + uint8_t nd_opt_ri_prf_reserved; + uint32_t nd_opt_ri_lifetime; + char nd_opt_ri_prefix[0]; +}; + #endif /* _NDP_PRIVATE_H_ */ |