summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2007-04-07 05:15:31 +0000
committerKen Raeburn <raeburn@mit.edu>2007-04-07 05:15:31 +0000
commitd3b3888e6fed956304a699653a9277e14dc85533 (patch)
tree056307a79c91bfb93c5e416bbb4dd83c53c5368c /src/plugins
parent5ace55fd0e100506f4803ffebc9b1aeb8f252185 (diff)
downloadkrb5-d3b3888e6fed956304a699653a9277e14dc85533.tar.gz
krb5-d3b3888e6fed956304a699653a9277e14dc85533.tar.xz
krb5-d3b3888e6fed956304a699653a9277e14dc85533.zip
use IP(V6)_PKTINFO in KDC for UDP sockets
As Denis Vlasenko pointed out in ticket 3306, using IP(V6)_PKTINFO to get or set the local address in UDP communications instead of allocating one socket for each address seen at startup will behave better in environments where the addresses may change while the KDC is running, or in certain unusual network configurations. The patch from Denis was specific to Linux (didn't do IPV6_PKTINFO if IP_PKTINFO wasn't defined). I've reworked it a fair amount, and tested the results briefly on Mac OS X (which has IPV6_PKTINFO but not IP_PKTINFO) and Linux (which has both). With this change, on systems like Linux supporting both socket options, the KDC should be able to use just two UDP sockets, one for IPv4 and one for IPv6. (And if we turned off IPV6_V6ONLY, we might do with one.) Filed as a separate ticket, because Denis's complaint and patch in 3306 cover the RPC code as well. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19408 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/plugins')
0 files changed, 0 insertions, 0 deletions