diff options
author | Esben Norby <norby@cvs.openbsd.org> | 2005-03-12 11:03:06 +0000 |
---|---|---|
committer | Esben Norby <norby@cvs.openbsd.org> | 2005-03-12 11:03:06 +0000 |
commit | 42a7269bbaf14f17ea9879771eb567a1569cf7f6 (patch) | |
tree | 4285d63263b805a61c1c1aa9ed454a37fc1b9495 /usr.sbin/ospfd/ospfd.h | |
parent | a78ad5a1d9c16074b62d0c381281538b45f10eee (diff) |
Add "show rib" and "show rib detail" to ospfctl.
ok henning@
Diffstat (limited to 'usr.sbin/ospfd/ospfd.h')
-rw-r--r-- | usr.sbin/ospfd/ospfd.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/usr.sbin/ospfd/ospfd.h b/usr.sbin/ospfd/ospfd.h index 3496c29bdc8..5cadc3b4048 100644 --- a/usr.sbin/ospfd/ospfd.h +++ b/usr.sbin/ospfd/ospfd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ospfd.h,v 1.13 2005/03/08 20:12:18 norby Exp $ */ +/* $OpenBSD: ospfd.h,v 1.14 2005/03/12 11:03:05 norby Exp $ */ /* * Copyright (c) 2004 Esben Norby <norby@openbsd.org> @@ -91,6 +91,7 @@ enum imsg_type { IMSG_CTL_SHOW_INTERFACE, IMSG_CTL_SHOW_DATABASE, IMSG_CTL_SHOW_NBR, + IMSG_CTL_SHOW_RIB, IMSG_CTL_FIB_COUPLE, IMSG_CTL_FIB_DECOUPLE, IMSG_CTL_AREA, @@ -240,6 +241,12 @@ enum path_type { PT_TYPE2_EXT }; +enum rib_type { + RIB_NET = 1, + RIB_RTR, + RIB_EXT +}; + static const char * const path_type_names[] = { "Intra-Area", "Inter-Area", @@ -385,6 +392,17 @@ struct ctl_nbr { u_int8_t options; }; +struct ctl_rt { + struct in_addr prefix; + struct in_addr nexthop; + struct in_addr area; + struct in_addr adv_rtr; + u_int32_t cost; + enum path_type p_type; + enum dst_type d_type; + u_int8_t prefixlen; +}; + void show_config(struct ospfd_conf *xconf); /* area.c */ |