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

Konstantin Belousov <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src,gmane.os.freebsd.devel.stable.scm
Message-ID <[email protected]>
The branch stable/15 has been updated by kib:

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

commit e4ce2c12f9947242b68070f22b6b168ef6447188
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2026-08-13 23:25:21 +0000
Commit:     Konstantin Belousov <[email protected]>
CommitDate: 2026-08-16 02:41:18 +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 4ba1b49c24f0..3cab8b4b6738 100644
--- a/sys/netipsec/key.c
+++ b/sys/netipsec/key.c
@@ -567,6 +567,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.
@@ -882,7 +885,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.