From 489aa29d623782c2c4045065ef1a22a07af921af Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 6 Aug 2004 04:56:04 +0000 Subject: Update. * inet/netinet/in.h: Define struct ip_msfilter, IP_MSFILTER_SIZE, struct group_filter, and GROUP_FILTER_SIZE. * include/sys/socket.h: Declare __getsockopt. * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: New file. * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: New file. * sysdeps/unix/sysv/linux/setsourcefilter.c: New file. * sysdeps/unix/sysv/linux/getsourcefilter.c: New file. --- include/sys/socket.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/sys/socket.h') diff --git a/include/sys/socket.h b/include/sys/socket.h index 05798095f8..937909a125 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.h @@ -97,6 +97,13 @@ extern int __setsockopt (int __fd, int __level, int __optname, __const void *__optval, socklen_t __optlen) attribute_hidden; +/* Put the current value for socket FD's option OPTNAME at protocol level LEVEL + into OPTVAL (which is *OPTLEN bytes long), and set *OPTLEN to the value's + actual length. Returns 0 on success, -1 for errors. */ +extern int __getsockopt (int __fd, int __level, int __optname, + void *__restrict __optval, + socklen_t *__restrict __optlen) attribute_hidden; + /* Put the local address of FD into *ADDR and its length in *LEN. */ extern int __getsockname (int __fd, __SOCKADDR_ARG __addr, socklen_t *__restrict __len) attribute_hidden; -- cgit v1.2.3