git: af11a69e5307 - stable/14 - netipsec/key.c::key_checksockaddrs(): constify src/dst address buffer pointers

Konstantin Belousov <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src
Message-ID <6a81e7f4.25f4c.558dafd7__45164.9024545745$1786898457$gmane$org@gitrepo.freebsd.org>
The branch stable/14 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=af11a69e53070b6002e9246d24696cd03ea9d40a

commit af11a69e53070b6002e9246d24696cd03ea9d40a
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2026-08-13 23:25:21 +0000
Commit:     Konstantin Belousov <[email protected]>
CommitDate: 2026-08-16 16:37:12 +0000

    netipsec/key.c::key_checksockaddrs(): constify src/dst address buffer pointers
    
    (cherry picked from commit fbe9aa7ebfcd6d89b298cc7a23de02d119367221)
---
 sys/netipsec/key.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sys/netipsec/key.c b/sys/netipsec/key.c
index b550182b581b..74f4e2527401 100644
--- a/sys/netipsec/key.c
+++ b/sys/netipsec/key.c
@@ -539,6 +539,9 @@ MALLOC_DEFINE(M_IPSEC_SPDCACHE, "ipsec-spdcache", "ipsec SPD cache");
 
 static uma_zone_t __read_mostly ipsec_key_lft_zone;
 
+static int key_checksockaddrs(const struct sockaddr *src,
+    const struct sockaddr *dst);
+
 /*
  * set parameters into secpolicyindex buffer.
  * Must allocate secpolicyindex buffer passed to this function.
@@ -855,7 +858,7 @@ key_bumpspgen(void)
 }
 
 static int
-key_checksockaddrs(struct sockaddr *src, struct sockaddr *dst)
+key_checksockaddrs(const struct sockaddr *src, const struct sockaddr *dst)
 {
 
 	/* family match */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.