summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2011-03-13 11:33:50 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2011-03-13 11:33:50 +0100
commit93e868c730dc0b1825b2a685e0b066c051b1cb07 (patch)
tree732a24861785cbefac966c365a762628bac9c0ac /lib
parent9d67ffb0b4cdfbbf88779ce2b44ba810d1ba85d3 (diff)
downloadbird-93e868c730dc0b1825b2a685e0b066c051b1cb07.tar
bird-93e868c730dc0b1825b2a685e0b066c051b1cb07.zip
Implements Router Advertisement protocol.
Diffstat (limited to 'lib')
-rw-r--r--lib/birdlib.h6
-rw-r--r--lib/socket.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/birdlib.h b/lib/birdlib.h
index c377a64..479f3d5 100644
--- a/lib/birdlib.h
+++ b/lib/birdlib.h
@@ -19,8 +19,14 @@
/* Utility macros */
+#ifdef PARSER
+#define _MIN(a,b) (((a)<(b))?(a):(b))
+#define _MAX(a,b) (((a)>(b))?(a):(b))
+#else
#define MIN(a,b) (((a)<(b))?(a):(b))
#define MAX(a,b) (((a)>(b))?(a):(b))
+#endif
+
#define ABS(a) ((a)>=0 ? (a) : -(a))
#define ARRAY_SIZE(a) (sizeof(a)/sizeof(*(a)))
diff --git a/lib/socket.h b/lib/socket.h
index e6ce125..348295f 100644
--- a/lib/socket.h
+++ b/lib/socket.h
@@ -67,6 +67,7 @@ int sk_leave_group(sock *s, ip_addr maddr);
#ifdef IPV6
int sk_set_ipv6_checksum(sock *s, int offset);
+int sk_set_icmp_filter(sock *s, int p1, int p2);
#endif
int sk_set_broadcast(sock *s, int enable);