diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-01-11 22:01:14 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-01-11 22:01:14 +0000 |
commit | b78cea9003594c6f78ee5ee7b40a8376aca9659c (patch) | |
tree | 8a53d2d5095d1201ff9c527036b68246be2dc667 /usr.sbin/bgpd/bgpd.h | |
parent | 5bdbf6ecafeb03c17ea95d37cc550e6b20c2395d (diff) |
use bgpd_addr in the nexthop tree; change nexthop_add/_remove accordingly
ok claudio@
Diffstat (limited to 'usr.sbin/bgpd/bgpd.h')
-rw-r--r-- | usr.sbin/bgpd/bgpd.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h index 5460caf2110..c20da322fe8 100644 --- a/usr.sbin/bgpd/bgpd.h +++ b/usr.sbin/bgpd/bgpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpd.h,v 1.65 2004/01/11 20:13:00 claudio Exp $ */ +/* $OpenBSD: bgpd.h,v 1.66 2004/01/11 22:01:13 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -87,9 +87,15 @@ struct bgpd_addr { union { struct in_addr v4; struct in6_addr v6; + u_int8_t addr8[16]; + u_int16_t addr16[8]; + u_int32_t addr32[4]; } ba; /* 128-bit address */ #define v4 ba.v4 #define v6 ba.v6 +#define addr8 ba.addr8 +#define addr16 ba.addr16 +#define addr32 ba.addr32 }; struct bgpd_config { @@ -268,8 +274,8 @@ void kr_shutdown(void); void kr_fib_couple(void); void kr_fib_decouple(void); int kr_dispatch_msg(void); -int kr_nexthop_add(in_addr_t); -void kr_nexthop_delete(in_addr_t); +int kr_nexthop_add(struct bgpd_addr *); +void kr_nexthop_delete(struct bgpd_addr *); void kr_show_route(struct imsg *); /* control.c */ |