summaryrefslogtreecommitdiff
path: root/src/check_ucast_static.h
diff options
context:
space:
mode:
authorsusheela <susheela.vaidya@vyatta.com>2012-10-06 15:28:22 -0700
committersusheela <susheela.vaidya@vyatta.com>2012-10-06 15:28:22 -0700
commit473953777890587b54254d243b2b56f0e76b1a56 (patch)
tree14f183237378493098b29b1e28978e7af2fd916b /src/check_ucast_static.h
parent8ba7a2f544b20a53380f9019c8c72913b98195d5 (diff)
parent93268c07a6514bd33e142b1c1d42d14f9fe0b40b (diff)
downloadvyatta-cfg-quagga-473953777890587b54254d243b2b56f0e76b1a56.tar.gz
vyatta-cfg-quagga-473953777890587b54254d243b2b56f0e76b1a56.zip
Merge branch 'pacifica' of git.vyatta.com:/git/vyatta-cfg-quagga into pacifica
Diffstat (limited to 'src/check_ucast_static.h')
-rw-r--r--src/check_ucast_static.h58
1 files changed, 0 insertions, 58 deletions
diff --git a/src/check_ucast_static.h b/src/check_ucast_static.h
deleted file mode 100644
index e5d87ade..00000000
--- a/src/check_ucast_static.h
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * Check format of network prefix
- */
-#include <stdio.h>
-#include <stdarg.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <arpa/inet.h>
-
-#define IS_CLASSD(a) ((((uint32_t)(a)) & 0x000000f0) == 0x000000e0)
-#define IS_MULTICAST(a) IS_CLASSD(a)
-#define IS_BROADCAST(a) ((((uint32_t)(a)) & 0xffffffff) == 0xffffffff)
-
-#define IS_IPV6_MULTICAST(a) ((((uint32_t)(a)) & 0x000000ff) == 0x000000ff)
-
-
-typedef struct
-{
- uint8_t family;
- uint8_t bytelen;
- unsigned int plen;
- uint32_t data[4];
-} inet_prefix;
-
-void get_addr_1(inet_prefix *addr, const char *name, int family);
-void err(const char *fmt, ...);
-
-/*
-static void get_addr_1(inet_prefix *addr, const char *name, int family)
-{
- memset(addr, 0, sizeof(*addr));
-
- if (strchr(name, ':')) {
- addr->family = AF_INET6;
- addr->bytelen = 16;
- if (family != AF_UNSPEC && family != AF_INET6)
- err("IPV6 address not allowed\n");
-
- if (inet_pton(AF_INET6, name, addr->data) <= 0)
- err("Invalid IPV6 address: %s\n", name);
-
- return;
- }
-
- addr->family = AF_INET;
- addr->bytelen = 4;
- if (family != AF_UNSPEC && family != AF_INET)
- err("IPV4 address not allowed\n");
-
- if (inet_pton(AF_INET, name, addr->data) <= 0)
- err("Invalid IPV4 address: %s\n", name);
- return;
-}
-*/
-void err(const char *fmt, ...);