diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2022-06-19 10:30:11 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2022-06-19 10:30:11 +0000 |
commit | e359a1b585a21d68f0739682982ffcc6f0061985 (patch) | |
tree | ac3c59ca23720efeca953f44da19d8888b7d3096 /usr.sbin/bgpd/bgpd.h | |
parent | c99821666aef211b0928ad4a55c523d4abd320c6 (diff) |
Implement a applymask() function that works on bgpd_addr structs.
Use this function in kroute so that kroute_find and kroute6_find can switch
to use struct bgpd_addr as argument.
OK tb@
Diffstat (limited to 'usr.sbin/bgpd/bgpd.h')
-rw-r--r-- | usr.sbin/bgpd/bgpd.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h index 175fd8ac7df..cc190a33496 100644 --- a/usr.sbin/bgpd/bgpd.h +++ b/usr.sbin/bgpd/bgpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpd.h,v 1.431 2022/06/16 15:33:05 claudio Exp $ */ +/* $OpenBSD: bgpd.h,v 1.432 2022/06/19 10:30:09 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -1435,6 +1435,7 @@ int prefix_compare(const struct bgpd_addr *, void inet4applymask(struct in_addr *, const struct in_addr *, int); void inet6applymask(struct in6_addr *, const struct in6_addr *, int); +void applymask(struct bgpd_addr *, const struct bgpd_addr *, int); const char *aid2str(uint8_t); int aid2afi(uint8_t, uint16_t *, uint8_t *); int afi2aid(uint16_t, uint8_t, uint8_t *); |