diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-07-01 09:19:25 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-07-01 09:19:25 +0000 |
commit | e0755c67259be27e90bb1c2c5d78acf0d8ac415c (patch) | |
tree | d08ff36155faaae8d1e6bf87c7766ca38e93980e /usr.sbin/bgpd/bgpd.h | |
parent | ae36f7fa11ba3a91c7f8fb688683282a5042d5b7 (diff) |
Make the pftable filter set use the name2id "cache" like the route labels.
This saves 14 bytes per aspath. OK henning@
Diffstat (limited to 'usr.sbin/bgpd/bgpd.h')
-rw-r--r-- | usr.sbin/bgpd/bgpd.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h index 2c888f73ba3..b55b424c0b9 100644 --- a/usr.sbin/bgpd/bgpd.h +++ b/usr.sbin/bgpd/bgpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpd.h,v 1.172 2005/06/29 09:43:25 claudio Exp $ */ +/* $OpenBSD: bgpd.h,v 1.173 2005/07/01 09:19:24 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -579,6 +579,7 @@ enum action_types { ACTION_SET_COMMUNITY, /* ACTION_SCRUB_COMMUNITY, */ ACTION_PFTABLE, + ACTION_PFTABLE_ID, ACTION_RTLABEL, ACTION_RTLABEL_ID }; @@ -707,6 +708,11 @@ u_int16_t rtlabel_name2id(char *); const char *rtlabel_id2name(u_int16_t); void rtlabel_unref(u_int16_t); void rtlabel_ref(u_int16_t); +u_int16_t pftable_name2id(char *); +const char *pftable_id2name(u_int16_t); +void pftable_unref(u_int16_t); +void pftable_ref(u_int16_t); + /* rde_filter.c */ void filterset_free(struct filter_set_head *); |