about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog9
-rw-r--r--inet/netinet/in.h15
-rw-r--r--sysdeps/generic/getsourcefilter.c2
-rw-r--r--sysdeps/generic/setipv4sourcefilter.c3
-rw-r--r--sysdeps/generic/setsourcefilter.c4
-rw-r--r--sysdeps/unix/sysv/linux/getsourcefilter.c2
-rw-r--r--sysdeps/unix/sysv/linux/setipv4sourcefilter.c3
-rw-r--r--sysdeps/unix/sysv/linux/setsourcefilter.c4
8 files changed, 28 insertions, 14 deletions
diff --git a/ChangeLog b/ChangeLog
index 0f3ccff1f7..16e98b2e93 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2004-08-07  Ulrich Drepper  <drepper@redhat.com>
 
+	* inet/netinet/in.h: Add more const to the setipv4soucefilter,
+	getsourcefilter, and setsourcefilter parameter list.
+	* sysdeps/generic/setipv4sourcefilter.c: Likewise.
+	* sysdeps/generic/getsourcefilter.c: Likewise.
+	* sysdeps/generic/setsourcefilter.c: Likewise.
+	* sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
+	* sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
+	* sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
+
 	* po/tr.po: Update from translation team.
 
 2004-08-06  Ulrich Drepper  <drepper@redhat.com>
diff --git a/inet/netinet/in.h b/inet/netinet/in.h
index 0922dc789b..5034db1206 100644
--- a/inet/netinet/in.h
+++ b/inet/netinet/in.h
@@ -487,21 +487,24 @@ extern int getipv4sourcefilter (int __s, struct in_addr __interface,
 /* Set IPv4 source filter.  */
 extern int setipv4sourcefilter (int __s, struct in_addr __interface,
 				struct in_addr __group, uint32_t __fmode,
-				uint32_t __numsrc, struct in_addr *__slist)
+				uint32_t __numsrc,
+				__const struct in_addr *__slist)
      __THROW;
 
 
 /* Get source filter.  */
 extern int getsourcefilter (int __s, uint32_t __interface,
-			    struct sockaddr *__group, socklen_t __grouplen,
-			    uint32_t *__fmode, uint32_t *__numsrc,
+			    __const struct sockaddr *__group,
+			    socklen_t __grouplen, uint32_t *__fmode,
+			    uint32_t *__numsrc,
 			    struct sockaddr_storage *__slist) __THROW;
 
 /* Set source filter.  */
 extern int setsourcefilter (int __s, uint32_t __interface,
-			    struct sockaddr *__group, socklen_t __grouplen,
-			    uint32_t __fmode, uint32_t __numsrc,
-			    struct sockaddr_storage *__slist) __THROW;
+			    __const struct sockaddr *__group,
+			    socklen_t __grouplen, uint32_t __fmode,
+			    uint32_t __numsrc,
+			    __const struct sockaddr_storage *__slist) __THROW;
 #endif	/* use GNU */
 
 __END_DECLS
diff --git a/sysdeps/generic/getsourcefilter.c b/sysdeps/generic/getsourcefilter.c
index 9f4f543b89..373550beb3 100644
--- a/sysdeps/generic/getsourcefilter.c
+++ b/sysdeps/generic/getsourcefilter.c
@@ -23,7 +23,7 @@
 
 
 int
-getsourcefilter (int s, uint32_t interface, struct sockaddr *group,
+getsourcefilter (int s, uint32_t interface, const struct sockaddr *group,
 		 socklen_t grouplen, uint32_t *fmode, uint32_t *numsrc,
 		 struct sockaddr_storage *slist)
 {
diff --git a/sysdeps/generic/setipv4sourcefilter.c b/sysdeps/generic/setipv4sourcefilter.c
index 18562a7499..db2b8433bb 100644
--- a/sysdeps/generic/setipv4sourcefilter.c
+++ b/sysdeps/generic/setipv4sourcefilter.c
@@ -24,7 +24,8 @@
 
 int
 setipv4sourcefilter (int s, struct in_addr interface, struct in_addr group,
-		     uint32_t fmode, uint32_t numsrc, struct in_addr *slist)
+		     uint32_t fmode, uint32_t numsrc,
+		     const struct in_addr *slist)
 {
   __set_errno (ENOSYS);
   return -1;
diff --git a/sysdeps/generic/setsourcefilter.c b/sysdeps/generic/setsourcefilter.c
index 285a0980e1..870f5e2c38 100644
--- a/sysdeps/generic/setsourcefilter.c
+++ b/sysdeps/generic/setsourcefilter.c
@@ -23,9 +23,9 @@
 
 
 int
-setsourcefilter (int s, uint32_t interface, struct sockaddr *group,
+setsourcefilter (int s, uint32_t interface, const struct sockaddr *group,
 		 socklen_t grouplen, uint32_t fmode, uint32_t numsrc,
-		 struct sockaddr_storage *slist)
+		 const struct sockaddr_storage *slist)
 {
   __set_errno (ENOSYS);
   return -1;
diff --git a/sysdeps/unix/sysv/linux/getsourcefilter.c b/sysdeps/unix/sysv/linux/getsourcefilter.c
index 738c19809e..fdcf8d6130 100644
--- a/sysdeps/unix/sysv/linux/getsourcefilter.c
+++ b/sysdeps/unix/sysv/linux/getsourcefilter.c
@@ -88,7 +88,7 @@ __get_sol (int af, socklen_t len)
 
 
 int
-getsourcefilter (int s, uint32_t interface, struct sockaddr *group,
+getsourcefilter (int s, uint32_t interface, const struct sockaddr *group,
 		 socklen_t grouplen, uint32_t *fmode, uint32_t *numsrc,
 		 struct sockaddr_storage *slist)
 {
diff --git a/sysdeps/unix/sysv/linux/setipv4sourcefilter.c b/sysdeps/unix/sysv/linux/setipv4sourcefilter.c
index 07d6da0082..050d0a3e9f 100644
--- a/sysdeps/unix/sysv/linux/setipv4sourcefilter.c
+++ b/sysdeps/unix/sysv/linux/setipv4sourcefilter.c
@@ -28,7 +28,8 @@
 
 int
 setipv4sourcefilter (int s, struct in_addr interface, struct in_addr group,
-		     uint32_t fmode, uint32_t numsrc, struct in_addr *slist)
+		     uint32_t fmode, uint32_t numsrc,
+		     const struct in_addr *slist)
 {
   /* We have to create an struct ip_msfilter object which we can pass
      to the kernel.  */
diff --git a/sysdeps/unix/sysv/linux/setsourcefilter.c b/sysdeps/unix/sysv/linux/setsourcefilter.c
index 027699bd94..f5c4d9786f 100644
--- a/sysdeps/unix/sysv/linux/setsourcefilter.c
+++ b/sysdeps/unix/sysv/linux/setsourcefilter.c
@@ -31,9 +31,9 @@ extern int __get_sol (int af, socklen_t len);
 
 
 int
-setsourcefilter (int s, uint32_t interface, struct sockaddr *group,
+setsourcefilter (int s, uint32_t interface, const struct sockaddr *group,
 		 socklen_t grouplen, uint32_t fmode, uint32_t numsrc,
-		 struct sockaddr_storage *slist)
+		 const struct sockaddr_storage *slist)
 {
   /* We have to create an struct ip_msfilter object which we can pass
      to the kernel.  */