diff options
Diffstat (limited to 'ospf6d/ospf6d.h')
-rw-r--r-- | ospf6d/ospf6d.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ospf6d/ospf6d.h b/ospf6d/ospf6d.h index c738df65..3274242d 100644 --- a/ospf6d/ospf6d.h +++ b/ospf6d/ospf6d.h @@ -22,7 +22,7 @@ #ifndef OSPF6D_H #define OSPF6D_H -#define OSPF6_DAEMON_VERSION "0.9.7e" +#define OSPF6_DAEMON_VERSION "0.9.7i" /* global variables */ extern int errno; @@ -50,6 +50,12 @@ extern struct thread_master *master; #endif /* IPV6_DROP_MEMBERSHIP */ #endif /* ! IPV6_LEAVE_GROUP */ +/* cast macro */ +#define OSPF6_PROCESS(x) ((struct ospf6 *) (x)) +#define OSPF6_AREA(x) ((struct ospf6_area *) (x)) +#define OSPF6_INTERFACE(x) ((struct ospf6_interface *) (x)) +#define OSPF6_NEIGHBOR(x) ((struct ospf6_neighbor *) (x)) + /* operation on timeval structure */ #ifndef timerclear #define timerclear(a) (a)->tv_sec = (tvp)->tv_usec = 0 |