FreeBSD Bugzilla – Attachment 182827 Details for
Bug 218907
tcpmd5 kernel module on STABLE/11 doesn't work with vultr bgp via bird
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch to net/bird port
patch-sysdep-bsd-setkey.h (text/plain), 812 bytes, created by
Andrey V. Elsukov
on 2017-05-23 10:00:45 UTC
(
hide
)
Description:
Proposed patch to net/bird port
Filename:
MIME Type:
Creator:
Andrey V. Elsukov
Created:
2017-05-23 10:00:45 UTC
Size:
812 bytes
patch
obsolete
>--- sysdep/bsd/setkey.h 2017-05-15 14:04:47.215628000 +0300 >+++ sysdep/bsd/setkey.h 2017-05-15 14:05:36.850028000 +0300 >@@ -158,12 +158,14 @@ sk_set_md5_in_sasp_db(sock *s, ip_addr local, ip_addr > if (len > TCP_KEYLEN_MAX) > ERR_MSG("The password for TCP MD5 Signature is too long"); > >- if (setkey_md5(&src, &dst, passwd, SADB_ADD) < 0) >+ if (setkey_md5(&src, &dst, passwd, SADB_ADD) < 0 || >+ setkey_md5(&dst, &src, passwd, SADB_ADD) < 0) > ERR_MSG("Cannot add TCP-MD5 password into the IPsec SA/SP database"); > } > else > { >- if (setkey_md5(&src, &dst, NULL, SADB_DELETE) < 0) >+ if (setkey_md5(&src, &dst, NULL, SADB_DELETE) < 0 && >+ setkey_md5(&dst, &src, NULL, SADB_DELETE) < 0) > ERR_MSG("Cannot delete TCP-MD5 password from the IPsec SA/SP database"); > } > return 0;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 218907
:
182147
|
182826
| 182827