* sock2p.c: New file.
authorKen Raeburn <raeburn@mit.edu>
Tue, 14 Mar 2000 16:13:53 +0000 (16:13 +0000)
committerKen Raeburn <raeburn@mit.edu>
Tue, 14 Mar 2000 16:13:53 +0000 (16:13 +0000)
commit6beb284fb38e0d28128f6572ef8434b5a22f5700
tree8654c0a92e71b19e8d06730a5707aa93c8a9fd85
parent49ea064b2c171aed7a79edc860f6381e5f784590
* sock2p.c: New file.
(inet_ntop): Define if system doesn't provide it.
(sockaddr2p): New function.
* Makefile.in (SRCS, OBJS): Add sock2p.
* kdc_util.h (inet_ntop, sockaddr2p): Declare them.

* network.c (add_fd): New function.  Reallocate udp_port_fds array as needed
here.
(setup_port): Use add_fd to record new sockets.  Use inet_ntop unconditionally.
Disable ipv6 support until process_packet and friends will support it.
(process_packet): Ignore ECONNREFUSED when reading UDP packets.  Fill in port
field of faddr properly, dependent on address family.  Use sockaddr2p when
logging source address.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12109 dc483132-0cff-0310-8789-dd5450dbe970
src/kdc/ChangeLog
src/kdc/Makefile.in
src/kdc/kdc_util.h
src/kdc/network.c
src/kdc/sock2p.c [new file with mode: 0644]