aboutsummaryrefslogtreecommitdiff
path: root/inet
AgeCommit message (Collapse)AuthorFilesLines
2013-10-17Fix inet_network("1 bar"). Fixes bug 15277.Ondřej Bílka2-1/+22
2013-09-06Coordinate IPv6 definitions for Linux and glibcCarlos O'Donell1-29/+40
This change synchronizes the glibc headers with the Linux kernel headers and arranges to coordinate the definition of structures already defined the Linux kernel UAPI headers. It is now safe to include glibc's netinet/in.h or Linux's linux/in6.h in any order in a userspace application and you will get the same ABI. The ABI is guaranteed by UAPI and glibc.
2013-08-27True stub __ifreq.Roland McGrath1-57/+4
2013-06-08Use (void) in no-arguments function definitions.Joseph Myers1-1/+1
2013-06-07Avoid use of "register" as optimization hint.Joseph Myers4-7/+7
2013-06-06Fix leading whitespaces.Ondrej Bilka1-1/+1
2013-06-05Remove trailing whitespace.Joseph Myers2-2/+2
2013-05-16Add #include <stdint.h> for uint[32|64]_t usage (except installed headers).Ryan S. Arnold10-3/+10
2013-01-02Update copyright notices with scripts/update-copyrights.Joseph Myers78-79/+78
2012-11-29Fix a strict-alias warning in tst-inet6_rth.Roland McGrath1-5/+9
2012-11-04[BZ #157] Remove include/stub-tag.h for good.Thomas Schwinge1-1/+0
2012-08-22Fix shadow, gshadow, networks, protocols, rpc, aliases, and nscd routines ↵Roland McGrath22-22/+88
for USE_NSCD case.
2012-08-22BZ#13696: Add --disable-nscd configure option.Roland McGrath2-20/+29
2012-08-16Do not pollute name space with internal_*netgrent functions.Roland McGrath2-29/+23
2012-07-31Conditionalize use of PTR_MANGLE.Roland McGrath1-2/+5
2012-07-30Fix lots of bitrot for stub configurations.Roland McGrath1-0/+2
2012-07-26Provide a generic empty version of __check_native.Pino Toscano1-0/+27
Add an empty implementation of __check_native, as used in the posix version of getaddrinfo. This allows non-Linux GNU-based OSes to compile.
2012-07-25Rename __secure_getenv to secure_getenvFlorian Weimer1-1/+1
2012-05-08tftp.h: rework layout to work with fortificationMike Frysinger1-9/+15
The current tftp structure does not work when fortification is enabled. Starting with gcc-4.5, more size checking was added to trigger these. Older versions just didn't have enough information, so they returned -1 as the sizes. First, the tu_stuff field is declared as 1 byte (when it's really an arbitrary length C string), so attempting to strcpy() with it results in crashes. This fails with _FORTIFY_SOURCE=1. Second, even if we change that to [0] (since gcc does not allow flexible array members in an union), gcc is not smart enough to see that they are two overlapping flexible arrays (tu_stuff and tu_data), so it will still trigger an abort with _FORTIFY_SOURCE=2. This is because it thinks that tu_stuff is 0 bytes and tu_data comes after it. Talking to upstream gcc, they don't seem terribly inclined to fix the 2nd issue, but even if they did, we still have plenty of 4.5 and 4.6 installs that would hit problems. So, let's re-order with a few more anonymous structs & unions so that the fields are laid out with a zero-length array always as the last field. This seems to fix things with gcc-4.6, and the tftp-hpa pkg continues to build & work. URL: https://bugs.launchpad.net/ubuntu/+source/tftp-hpa/+bug/691345 URL: https://bugs.archlinux.org/task/28103 URL: https://bugs.gentoo.org/357083 URL: http://gcc.gnu.org/PR52944 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-03-232012-03-23 Daniel Jacobowitz <dmj@google.com>Paul Pluzhnikov1-5/+0
Paul Pluzhnikov <ppluzhnikov@google.com> [BZ #6528] * grp/Makefile (otherlibs): Don't set it. * inet/Makefile (otherlibs): Likewise. * login/Makefile (otherlibs): Likewise. * nscd/Makefile (otherlibs): Likewise. * posix/Makefile (otherlibs): Likewise. * pwd/Makefile (otherlibs): Likewise. * rt/Makefile (otherlibs): Likewise. * sunrpc/Makefile (otherlibs): Likewise. * nss/Makefile (otherlibs): Likewise. Add libnss_files to routines and static-only-routines. ($(objpfx)getent): Remove rule. * resolv/Makefile: Add libnss_dns and libresolv to routines and static-only-routines.
2012-03-07Remove distribute variable from MakefilesUlrich Drepper1-3/+1
2012-02-09Replace FSF snail mail address with URLs.Paul Eggert77-231/+154
2012-01-07Remove pre-ISO C supportUlrich Drepper4-69/+69
No more __const.
2011-12-22Fix error code for too small input buffer to getnameinfoUlrich Drepper1-5/+6
2011-12-03Fix more warningsUlrich Drepper3-13/+238
2011-11-15Clean up internal fopen usesUlrich Drepper2-7/+7
No need to ever not use c and e.
2011-10-31Cache network interface informationUlrich Drepper1-1/+17
Whenever getaddrinfo needed network interface information it used the netlink interface to read the information every single time. The problem is that this information can change at any time. The patch implements monitoring of the network interfaces through nscd. If no change is detected the previously read information can be reused (which is the norm). This timestamp information is also made available to other processes using the shared memory segment between nscd and those processes.
2011-10-10Fix PLT use in getnetgrent_rAndreas Schwab1-3/+3
2011-10-07Implement caching of nscdUlrich Drepper1-5/+60
2011-09-10Remove support for !USE___THREADUlrich Drepper2-23/+3
2011-07-06Fix typo in last patchUlrich Drepper1-1/+1
2011-07-06Add the extra check also in innetgrUlrich Drepper1-0/+5
2011-07-06Fix handling of chained netgroupsUlrich Drepper1-0/+5
2011-06-27Minimal cleanup in innetgr.Ulrich Drepper1-1/+1
2011-06-21Add missing DL_CALL_FCTUlrich Drepper1-6/+8
2011-06-10Quash some new warnings from GCC 4.6.Roland McGrath1-5/+2
2011-05-05Don't use removed rpc headersAndreas Schwab1-1/+3
2011-05-01Fix getnameinfo flags parameter type.Bruno Haible1-2/+2
2009-06-15Fix type of nd_opt_home_agent_info_preference.Arnaud Ebalard1-2/+2
2009-05-16Remove redundant .gitignore files.Andreas Schwab1-6/+0
2009-05-15rename each .cvsignore file to .gitignoreJim Meyering1-0/+0
2009-04-26* sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inlineUlrich Drepper2-12/+22
from definition. * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define label if it is not used. * elf/dl-profile.c (_dl_start_profile): Define real-type variant of gmon_hist_hdr and gmon_hdr structures and use them. * elf/dl-load.c (open_verify): Add temporary variable to avoid warning. * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings. * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition to avoid cast. * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings. * inet/rcmd.c (rcmd_af): Make from a union of the various needed types to avoid warnings. (iruserok_af): Use ss_family instead of casts. * gmon/gmon.c (write_hist): Define real-type variant of gmon_hist_hdr structure and use it. (write_gmon): Likewise for gmon_hdr. * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement function if we are not going to define it. * sysdeps/unix/sysv/linux/writev.c: Likewise. * inet/inet6_option.c (optin_alloc): Add temporary variable to avoid warning. * libio/strfile.h (struct _IO_streambuf): Use correct type and name of VTable element. * libio/iovsprintf.c: Avoid casts to avoid warnings. * libio/iovsscanf.c: Likewise. * libio/vasprintf.c: Likewise. * libio/vsnprintf.c: Likewise. * stdio-common/isoc99_vsscanf.c: Likewise. * stdlib/strfmon_l.c: Likewise. * debug/vasprintf_chk.c: Likewise. * debug/vsnprintf_chk.c: Likewise. * debug/vsprintf_chk.c: Likewise.
2009-04-26* sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):Ulrich Drepper1-2/+3
Avoid warning by using may_alias attribute on ptrhack.
2009-03-15[BZ #9880]Ulrich Drepper2-1/+155
* inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments correctly. Set segleft member in output as required. Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>. * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
2009-03-15[BZ #9881]Ulrich Drepper3-3/+42
* inet/inet6_rth.c (inet6_rth_add): Add some error checking. Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>. * inet/Makefile (tests): Add tst-inet6_rth. * inet/tst-inet6_rth.c: New file. alignment of La_x86_64_regs. Store xmm parameters.
2008-12-09* inet/Makefile (tests): Add tst-getni2.Ulrich Drepper2-1/+42
* inet/tst-getni2.c: New file.
2008-12-09[BZ #7080]Ulrich Drepper3-1/+41
2008-12-08 Ulrich Drepper <drepper@redhat.com> [BZ #7080] * inet/getnameinfo.c (getnameinfo): Check for output buffers being NULL when NI_NAMEREQD is set. Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>. * inet/Makefile (tests): Add tst-getni1. * inet/tst-getni1.c: New file.
2008-05-14* sysdeps/posix/getaddrinfo.c: Implement handling of DCCP andUlrich Drepper1-1/+5
UDPlite. * nss/getent.c (ahosts_keys_int): Handle all known socket types. * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define. * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
2008-03-19Remove useless "if" before "free".Ulrich Drepper1-2/+1
2008-03-08[BZ #5774]Ulrich Drepper1-1/+1
* stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace on NAN(...) sequence. * stdlib/Makefile (tests): Add tst-strtod6. * stdlib/tst-strtod6.c: New file. * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.