Commit fed1bceb authored by Ondrej Zajicek's avatar Ondrej Zajicek
Browse files

Some preliminary IS-IS commit.

parent 8ecbaf9c
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -72,6 +72,14 @@ void config_add_obstacle(struct config *);
void config_del_obstacle(struct config *);
void order_shutdown(void);

static inline void
cf_range(const char *opt, int val, int min, int max)
{ 
  if ((val < min) || (val > max))
    cf_error("%s must be in range %d-%d", opt, min, max);
}


#define CONF_DONE 0
#define CONF_PROGRESS 1
#define CONF_QUEUED 2
+7 −0
Original line number Diff line number Diff line
@@ -26,6 +26,13 @@ CF_HDR

CF_DEFINES

static void
check_u8(unsigned val)
{
  if (val > 0xFF)
    cf_error("Value %d out of range (0-255)", val);
}

static void
check_u16(unsigned val)
{
+1 −1
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ if test "$enable_ipv6" = yes ; then
else
	ip=ipv4
	SUFFIX=""
	all_protocols=bgp,ospf,pipe,rip,static
	all_protocols=bgp,ospf,isis,pipe,rip,static
fi

if test "$given_suffix" = yes ; then
+3 −0
Original line number Diff line number Diff line
@@ -701,6 +701,9 @@ protos_build(void)
#ifdef CONFIG_OSPF
  proto_build(&proto_ospf);
#endif
#ifdef CONFIG_ISIS
  proto_build(&proto_isis);
#endif
#ifdef CONFIG_PIPE
  proto_build(&proto_pipe);
#endif
+1 −1
Original line number Diff line number Diff line
@@ -75,7 +75,7 @@ void protos_dump_all(void);

extern struct protocol
  proto_device, proto_radv, proto_rip, proto_static,
  proto_ospf, proto_pipe, proto_bgp;
  proto_ospf, proto_isis, proto_pipe, proto_bgp;

/*
 *	Routing Protocol Instance
Loading