diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2020-02-27 16:16:48 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2020-02-27 17:29:17 +0100 |
commit | 757cab18d6427d9246618ce48c158f2b05183838 (patch) | |
tree | 3dc5a4d2923be9e5e54f374f9788635428269423 /sysdep/bsd/sysio.h | |
parent | 22c3cf955dbbb65aa29e322efa70dabb749f0232 (diff) |
BGP: Support for MD5SIG together with remote range
When dynamic BGP with remote range is configured, MD5SIG needs to use
newer socket option (TCP_MD5SIG_EXT) to specify remote addres range for
listening socket.
Thanks to Adam KuĊagowski for the suggestion.
Diffstat (limited to 'sysdep/bsd/sysio.h')
-rw-r--r-- | sysdep/bsd/sysio.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdep/bsd/sysio.h b/sysdep/bsd/sysio.h index a5d161ba..929bfaf6 100644 --- a/sysdep/bsd/sysio.h +++ b/sysdep/bsd/sysio.h @@ -210,11 +210,11 @@ sk_prepare_ip_header(sock *s, void *hdr, int dlen) #endif int -sk_set_md5_auth(sock *s, ip_addr local UNUSED, ip_addr remote UNUSED, struct iface *ifa UNUSED, char *passwd, int setkey UNUSED) +sk_set_md5_auth(sock *s, ip_addr local UNUSED, ip_addr remote UNUSED, int pxlen UNUSED, struct iface *ifa UNUSED, char *passwd, int setkey UNUSED) { #ifdef USE_MD5SIG_SETKEY if (setkey) - if (sk_set_md5_in_sasp_db(s, local, remote, ifa, passwd) < 0) + if (sk_set_md5_in_sasp_db(s, local, remote, pxlen, ifa, passwd) < 0) return -1; #endif |