diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2023-04-07 13:49:04 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2023-04-07 13:49:04 +0000 |
commit | 6a8ef5690a37446be40af71f30844833495fb174 (patch) | |
tree | e75d17527dfedea2ae28da35eb964c1b8fb1de0e /usr.sbin/bgpd/rde.h | |
parent | 50d2ac800321c8f0ee1e51203f86032ffdbc9b54 (diff) |
Pass a pt_entry pointer to rib_get() and rib_add().
Add rib_get_addr() to behave like rib_get() did before.
OK tb@
Diffstat (limited to 'usr.sbin/bgpd/rde.h')
-rw-r--r-- | usr.sbin/bgpd/rde.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde.h b/usr.sbin/bgpd/rde.h index 8999272df78..f244749d068 100644 --- a/usr.sbin/bgpd/rde.h +++ b/usr.sbin/bgpd/rde.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.h,v 1.290 2023/03/30 12:11:18 claudio Exp $ */ +/* $OpenBSD: rde.h,v 1.291 2023/04/07 13:49:03 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> and @@ -548,7 +548,8 @@ struct rib *rib_byid(uint16_t); uint16_t rib_find(char *); void rib_free(struct rib *); void rib_shutdown(void); -struct rib_entry *rib_get(struct rib *, struct bgpd_addr *, int); +struct rib_entry *rib_get(struct rib *, struct pt_entry *); +struct rib_entry *rib_get_addr(struct rib *, struct bgpd_addr *, int); struct rib_entry *rib_match(struct rib *, struct bgpd_addr *); int rib_dump_pending(void); void rib_dump_runner(void); |