]> git.ipfire.org Git - thirdparty/krb5.git/commit
Avoid using length fields in socket addresses
authorGreg Hudson <ghudson@mit.edu>
Thu, 3 Jul 2014 16:48:53 +0000 (12:48 -0400)
committerGreg Hudson <ghudson@mit.edu>
Fri, 4 Jul 2014 19:14:03 +0000 (15:14 -0400)
commit48a0b16ab1f70b6486a6d7af7ca9e7b376b19956
treef761ac8f8209fca8708f9f55f8fc5c7b13ce8940
parent1fde9a67030845d3cae0661595f5737a4db8b9dd
Avoid using length fields in socket addresses

Remove code to set or reference the length fields of socket addresses
(sa_len/sin_len/sin6_len), since they aren't portable and setting them
is not required.  Remove autoconf tests for those fields which are no
longer used or which were never used.

There is one exception: in localaddr.c, we still neeed to reference
sa_len for the definition of ifreq_size on platforms which have
sa_len.  Leave that behind, along with the autoconf test which defines
SA_LEN.
src/clients/klist/klist.c
src/configure.in
src/lib/apputils/net-server.c
src/lib/krb5/os/localaddr.c
src/lib/rpc/clnt_generic.c
src/lib/rpc/clnt_simple.c
src/lib/rpc/getrpcport.c
src/lib/rpc/svc_tcp.c
src/lib/rpc/svc_udp.c
src/tests/resolve/addrinfo-test.c
src/util/support/fake-addrinfo.c