diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-08-12 12:55:48 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-08-12 15:09:40 +0200 |
commit | 962b3d28cbe2db8b7158e25d5e970b78c0119e1d (patch) | |
tree | 49377f77138cb1c74347cd46b4180b45b11cf59c | |
parent | 8404045d8734b12ecde815154ceac4bb87abc63d (diff) |
lib/in46_addr: Add 'struct in46_prefix' to represent addr + prefix
Change-Id: I797d105117e81951732bcfc2cc26a8d00fd69443
-rw-r--r-- | lib/in46_addr.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/in46_addr.h b/lib/in46_addr.h index 1614c1d..26dd2c4 100644 --- a/lib/in46_addr.h +++ b/lib/in46_addr.h @@ -14,6 +14,11 @@ struct in46_addr { }; }; +struct in46_prefix { + struct in46_addr addr; + uint8_t prefixlen; +}; + extern int in46a_to_af(const struct in46_addr *in); extern int in46a_to_sas(struct sockaddr_storage *out, const struct in46_addr *in); extern const char *in46a_ntop(const struct in46_addr *in, char *dst, socklen_t dst_size); |