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/rde.c | |
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/rde.c')
-rw-r--r-- | usr.sbin/bgpd/rde.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c index 25716d6189d..a8684266ae1 100644 --- a/usr.sbin/bgpd/rde.c +++ b/usr.sbin/bgpd/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.163 2005/06/29 09:43:25 claudio Exp $ */ +/* $OpenBSD: rde.c,v 1.164 2005/07/01 09:19:24 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -1660,16 +1660,16 @@ rde_send_kroute(struct prefix *new, struct prefix *old) * pf table specific functions */ void -rde_send_pftable(const char *table, struct bgpd_addr *addr, +rde_send_pftable(u_int16_t id, struct bgpd_addr *addr, u_int8_t len, int del) { struct pftable_msg pfm; - if (*table == '\0') + if (id == 0) return; bzero(&pfm, sizeof(pfm)); - strlcpy(pfm.pftable, table, sizeof(pfm.pftable)); + strlcpy(pfm.pftable, pftable_id2name(id), sizeof(pfm.pftable)); memcpy(&pfm.addr, addr, sizeof(pfm.addr)); pfm.len = len; |