%type <iface> ipa_scope
%type <i> expr bool pxlen
+ %type <i32> expr_us
%type <time> datetime
-%type <a> ipa
+%type <a> ipa ipa_raw
%type <px> prefix prefix_or_ipa
%type <t> text_or_none
AC_SUBST(srcdir_rel_mf)
AC_SUBST(runtimedir)
- # all_protocols=bgp,ospf,pipe,radv,rip,static
-if test "$enable_ipv6" = yes ; then
- ip=ipv6
- SUFFIX=6
- all_protocols=bfd,bgp,ospf,pipe,radv,rip,static
-else
- ip=ipv4
- SUFFIX=""
- all_protocols=bfd,bgp,ospf,pipe,rip,static
-fi
-
-if test "$given_suffix" = yes ; then
- SUFFIX="$with_suffix"
-fi
-AC_SUBST(SUFFIX)
++# all_protocols=bfd,bgp,ospf,pipe,radv,rip,static
+all_protocols=pipe,radv,rip,static
if test "$with_protocols" = all ; then
with_protocols="$all_protocols"
/* laddr and lifindex are valid only if SKF_LADDR_RX flag is set to request it */
int fd; /* System-dependent data */
+ int af; /* Address family (AF_INET, AF_INET6 or 0 for non-IP) of fd */
+ int index; /* Index in poll buffer */
node n;
void *rbuf_alloc, *tbuf_alloc;
char *password; /* Password for MD5 authentication */
/* Socket flags */
-#define SKF_V6ONLY 1 /* Use IPV6_V6ONLY socket option */
-#define SKF_LADDR_RX 2 /* Report local address for RX packets */
-#define SKF_LADDR_TX 4 /* Allow to specify local address for TX packets */
-#define SKF_TTL_RX 8 /* Report TTL / Hop Limit for RX packets */
+#define SKF_V4ONLY 0x01 /* Use IPv4 for IP sockets */
+#define SKF_V6ONLY 0x02 /* Use IPV6_V6ONLY socket option */
+#define SKF_LADDR_RX 0x04 /* Report local address for RX packets */
+#define SKF_LADDR_TX 0x08 /* Allow to specify local address for TX packets */
+#define SKF_TTL_RX 0x10 /* Report TTL / Hop Limit for RX packets */
+ #define SKF_THREAD 0x100 /* Socked used in thread, Do not add to main loop */
/*
* Socket types SA SP DA DP IF TTL SendTo (?=may, -=must not, *=must)
*/
extern struct protocol
- proto_device, proto_radv, proto_rip, proto_static,
+ proto_device, proto_radv, proto_rip, proto_ripng, proto_static,
- proto_ospf, proto_pipe, proto_bgp;
+ proto_ospf, proto_pipe, proto_bgp, proto_bfd;
/*
* Routing Protocol Instance