diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-02-06 14:01:46 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-02-06 14:01:46 +0200 |
commit | 89362a08fe4da0992e8dc10374b3d898fc78a4ea (patch) | |
tree | 91fb7bc180a184d6b0e78d303d49d6cb98fc5209 /src/blob.h | |
parent | da50a45d29de99a8ed49e24e9c2e1e6d400fc4c3 (diff) | |
download | squark-89362a08fe4da0992e8dc10374b3d898fc78a4ea.tar.bz2 squark-89362a08fe4da0992e8dc10374b3d898fc78a4ea.tar.xz |
auth-snmp: allow specifying management network prefix
So we don't go and try querying untrusted LLDP capable devices in
non-managed subnets.
Diffstat (limited to 'src/blob.h')
-rw-r--r-- | src/blob.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -3,6 +3,8 @@ #include <string.h> +struct in_addr; + #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) #if defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ < 96 @@ -56,6 +58,7 @@ int blob_pull_matching(blob_t *b, blob_t e); unsigned int blob_pull_uint(blob_t *b, int radix); blob_t blob_pull_spn(blob_t *b, const blob_t spn); blob_t blob_pull_cspn(blob_t *b, const blob_t cspn); +int blob_pull_inet_addr(blob_t *b, struct in_addr *saddr); blob_t blob_expand_head(blob_t *b, blob_t limits, unsigned char sep); blob_t blob_expand_tail(blob_t *b, blob_t limits, unsigned char sep); |