diff options
author | denis <denis@cvs.openbsd.org> | 2020-10-29 21:15:28 +0000 |
---|---|---|
committer | denis <denis@cvs.openbsd.org> | 2020-10-29 21:15:28 +0000 |
commit | df7cbdab60153656c19a828195074a4d83bdb9e0 (patch) | |
tree | 5632d70895deead52edfa2e96b607e0325037343 /sys/net/art.h | |
parent | d73c97ddaa729cc0794f44fca3741a91952d2c93 (diff) |
Add feature to force the selection of source IP address
Based/previous work on an idea from deraadt@
Input from claudio@, djm@, deraadt@, sthen@
OK deraadt@
Diffstat (limited to 'sys/net/art.h')
-rw-r--r-- | sys/net/art.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/art.h b/sys/net/art.h index f7cb914d867..b53974edf10 100644 --- a/sys/net/art.h +++ b/sys/net/art.h @@ -1,4 +1,4 @@ -/* $OpenBSD: art.h,v 1.18 2019/03/31 14:03:40 mpi Exp $ */ +/* $OpenBSD: art.h,v 1.19 2020/10/29 21:15:27 denis Exp $ */ /* * Copyright (c) 2015 Martin Pieuchot @@ -21,6 +21,7 @@ #include <sys/rwlock.h> #include <sys/srp.h> +#include <netinet/in.h> #define ART_MAXLVL 32 /* We currently use 32 levels for IPv6. */ @@ -35,6 +36,7 @@ struct art_root { uint8_t ar_alen; /* Address length in bits */ uint8_t ar_off; /* Offset of the key in bytes */ unsigned int ar_rtableid; /* ID of this routing table */ + struct sockaddr *source; /* optional src addr to use */ }; #define ISLEAF(e) (((unsigned long)(e) & 1) == 0) |