git: fbe9aa7ebfcd - main - 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.current.scm
Message-ID <[email protected]>
The branch main has been updated by kib:

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

commit fbe9aa7ebfcd6d89b298cc7a23de02d119367221
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2026-08-13 23:25:21 +0000
Commit:     Konstantin Belousov <[email protected]>
CommitDate: 2026-08-14 14:35:38 +0000

    netipsec/key.c::key_checksockaddrs(): constify src/dst address buffer pointers
    
    Reviewed by:    markj
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D58646
---
 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.