* 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.
This commit is contained in:
Ulrich Drepper 2004-08-07 18:22:26 +00:00
parent 65e70412ad
commit d3c99ad106
8 changed files with 28 additions and 14 deletions

View File

@ -1,5 +1,14 @@
2004-08-07 Ulrich Drepper <drepper@redhat.com> 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. * po/tr.po: Update from translation team.
2004-08-06 Ulrich Drepper <drepper@redhat.com> 2004-08-06 Ulrich Drepper <drepper@redhat.com>

View File

@ -487,21 +487,24 @@ extern int getipv4sourcefilter (int __s, struct in_addr __interface,
/* Set IPv4 source filter. */ /* Set IPv4 source filter. */
extern int setipv4sourcefilter (int __s, struct in_addr __interface, extern int setipv4sourcefilter (int __s, struct in_addr __interface,
struct in_addr __group, uint32_t __fmode, struct in_addr __group, uint32_t __fmode,
uint32_t __numsrc, struct in_addr *__slist) uint32_t __numsrc,
__const struct in_addr *__slist)
__THROW; __THROW;
/* Get source filter. */ /* Get source filter. */
extern int getsourcefilter (int __s, uint32_t __interface, extern int getsourcefilter (int __s, uint32_t __interface,
struct sockaddr *__group, socklen_t __grouplen, __const struct sockaddr *__group,
uint32_t *__fmode, uint32_t *__numsrc, socklen_t __grouplen, uint32_t *__fmode,
uint32_t *__numsrc,
struct sockaddr_storage *__slist) __THROW; struct sockaddr_storage *__slist) __THROW;
/* Set source filter. */ /* Set source filter. */
extern int setsourcefilter (int __s, uint32_t __interface, extern int setsourcefilter (int __s, uint32_t __interface,
struct sockaddr *__group, socklen_t __grouplen, __const struct sockaddr *__group,
uint32_t __fmode, uint32_t __numsrc, socklen_t __grouplen, uint32_t __fmode,
struct sockaddr_storage *__slist) __THROW; uint32_t __numsrc,
__const struct sockaddr_storage *__slist) __THROW;
#endif /* use GNU */ #endif /* use GNU */
__END_DECLS __END_DECLS

View File

@ -23,7 +23,7 @@
int 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, socklen_t grouplen, uint32_t *fmode, uint32_t *numsrc,
struct sockaddr_storage *slist) struct sockaddr_storage *slist)
{ {

View File

@ -24,7 +24,8 @@
int int
setipv4sourcefilter (int s, struct in_addr interface, struct in_addr group, 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); __set_errno (ENOSYS);
return -1; return -1;

View File

@ -23,9 +23,9 @@
int 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, socklen_t grouplen, uint32_t fmode, uint32_t numsrc,
struct sockaddr_storage *slist) const struct sockaddr_storage *slist)
{ {
__set_errno (ENOSYS); __set_errno (ENOSYS);
return -1; return -1;

View File

@ -88,7 +88,7 @@ __get_sol (int af, socklen_t len)
int 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, socklen_t grouplen, uint32_t *fmode, uint32_t *numsrc,
struct sockaddr_storage *slist) struct sockaddr_storage *slist)
{ {

View File

@ -28,7 +28,8 @@
int int
setipv4sourcefilter (int s, struct in_addr interface, struct in_addr group, 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 /* We have to create an struct ip_msfilter object which we can pass
to the kernel. */ to the kernel. */

View File

@ -31,9 +31,9 @@ extern int __get_sol (int af, socklen_t len);
int 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, 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 /* We have to create an struct ip_msfilter object which we can pass
to the kernel. */ to the kernel. */