about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/ifaddrs.c
Commit message (Collapse)AuthorAgeFilesLines
* [BZ #966]Ulrich Drepper2005-06-141-46/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-06-13 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/clock_gettime.c (clock_gettime): Implement case where HANDLED_REALTIME is not defined. [BZ #966] 2005-06-13 Jakub Jelinek <jakub@redhat.com> * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_sendreq, __netlink_receive): Remove prototypes. (__netlink_request): New prototype. * sysdeps/unix/sysv/linux/ifaddrs.c: Include <alloca.h> and <stdint.h>. (__netlink_sendreq): Make static. (__netlink_receive): Rename to... (__netlink_request): ... this. Add type argument, call __netlink_sendreq. If MSG_TRUNC is set after recvmsg, retry with a bigger buffer. Don't record buffers that contain no messages we are expecting. (getifaddrs): Use __netlink_request instead of __netlink_sendreq and __netlink_receive pairs. Formatting. * sysdeps/unix/sysv/linux/if_index.c (if_nameindex_netlink): Use __netlink_request instead of __netlink_sendreq and __netlink_receive pair. 2005-06-13 Thorsten Kukuk <kukuk@suse.de> * sysdeps/unix/sysv/linux/netinet/if_tr.h: Don't include kernel headers, instead copy important structs/defines. 2005-06-13 Jakub Jelinek <jakub@redhat.com> * elf/rtld.c (dl_main): Move DT_DEBUG setup before first _dl_debug_state call.
* (CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.Ulrich Drepper2004-12-221-87/+51
|
* 2.5-18.1Jakub Jelinek2007-07-121-51/+87
|
* Update.Ulrich Drepper2004-11-101-2/+2
| | | | | | | | 2004-11-09 Jakub Jelinek <jakub@redhat.com> * posix/regcomp.c (calc_eclosure_iter): Don't access dfa->edests[node].elems[0] if dfa->edests[node].nelem == 0. * posix/rxspencer/tests: Add 5 new tests.
* Update.Ulrich Drepper2004-11-101-3/+3
| | | | | | | 2004-11-09 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/ifaddrs.c: Determine sin6_scope_id field value correctly.
* Update.Ulrich Drepper2004-06-301-54/+29
| | | | | | | | | | | | | | | | | 2004-06-30 Ulrich Drepper <drepper@redhat.com> * include/net/if.h: Handle if_nameindex and if_freenameindex with libc_proto_hidden. * sysdeps/unix/sysv/linux/netlinkaccess.h: New file. * sysdeps/unix/sysv/linux/ifaddrs.c: Export netlink handling functions. * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Implement using netlink if possible. Fall back on ioctl method if necessary. * include/unistd.h: Declare __truncate. * sysdeps/generic/truncate.c: Also define __truncate. * sysdeps/mach/hurd/truncate.c: Likewise. * sysdeps/unix/common/syscalls.list: Likewise. * sysdeps/unix/sysv/linux/truncate64.c: Use __truncate, not truncate.
* Update.Ulrich Drepper2003-11-131-1/+2
| | | | | | | | 2003-11-04 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/ifaddrs.c: Make sure it's the kernel who sends the netlink data. * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
* Update.Ulrich Drepper2003-06-101-5/+5
| | | | | | | | | | | | | * inet/Makefile (aux): Add check_fd. * include/ifaddrs.h: Add prototype for __check_fd. * sysdeps/generic/check_fd.c: New file. * sysdeps/unix/sysv/linux/check_fd.c: New file. * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed from no_netlink_support. Export. * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs, call __check_pf. * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
* Update.Ulrich Drepper2003-06-031-2/+8
| | | | | | | | * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname to get the actual PID value used in the records passed up. (getifaddrs): Don't initialize nh.pid here. 2003-06-02 Ulrich Drepper <drepper@redhat.com>
* Update.Ulrich Drepper2003-06-031-8/+3
| | | | | * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor optimization.
* Update.Ulrich Drepper2003-04-291-6/+6
| | | | | * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected variants of socket, bind, recvmsg, and sendto.
* Update.Ulrich Drepper2003-04-241-0/+2
| | | | | | | | | | | | | 2003-04-24 Ulrich Drepper <drepper@redhat.com> * include/ifaddrs.h: New file. * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and AI_ADDRCONFIG... * resolv/netdb.h: ...here. * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate. * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise. * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and AI_ADDRCONFIG.
* Update.Ulrich Drepper2003-04-171-64/+111
| | | | | | | | | * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths before copying. This might leave holes in the list. Adjust pointers if necessary. (netlink_receive): Allocate only one block. (free_netlink_handle): Adjust appropriately. (getifaddrs): Lots of cleanups.
* (netlink_receive): Allocate only one block. (free_netlink_handle): Adjust ↵Ulrich Drepper2003-04-161-48/+34
| | | | appropriately. (getifaddrs): Lots of cleanups.
* Update.Ulrich Drepper2003-03-291-4/+8
| | | | | | | 2003-03-29 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid netlink_open calls if netlink is known to not be available.
* Update.Ulrich Drepper2003-03-291-0/+770
2003-03-28 Thorsten Kukuk <kukuk@suse.de> * sysdeps/unix/sysv/linux/ifaddrs.c: New file. * inet/test-ifaddrs.c: Allow AF_PACKET. * sysdeps/unix/sysv/linux/kernel-features.h: Add __ASSUME_NETLINK_SUPPORT.