From 89362a08fe4da0992e8dc10374b3d898fc78a4ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Wed, 6 Feb 2013 14:01:46 +0200 Subject: auth-snmp: allow specifying management network prefix So we don't go and try querying untrusted LLDP capable devices in non-managed subnets. --- src/blob.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/blob.h') diff --git a/src/blob.h b/src/blob.h index 1fcaec0..971ce61 100644 --- a/src/blob.h +++ b/src/blob.h @@ -3,6 +3,8 @@ #include +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); -- cgit v1.2.3