summaryrefslogtreecommitdiffstats
path: root/zebra/interface.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2009-10-04 16:21:49 +0200
committerDavid Lamparter <equinox@diac24.net>2010-02-03 05:19:36 +0100
commit446e7f9de21e049d37cd2cca035355b179819237 (patch)
tree33fa8966f352bb9bc304c11145b02ba8114b3829 /zebra/interface.c
parente78119339da91bedf0c6f8d9adfe828c60295161 (diff)
downloadquagga-446e7f9de21e049d37cd2cca035355b179819237.tar.bz2
quagga-446e7f9de21e049d37cd2cca035355b179819237.tar.xz
lib: add sockopt helper for setting IPV6_V6ONLY and use it
getaddrinfo returns a list of socket parameters for listening. it will contain both IPv4 and IPv6 listening sockets. unless we use IPV6_V6ONLY on the IPv6 ones, only the socket listed first will work. if the IPv4 one came first, the IPv6 one would get an "Address in use" error. this functionality was already present for bgpd and its listening sockets. as it is needed for vtys as well, make it a common helper.
Diffstat (limited to 'zebra/interface.c')
0 files changed, 0 insertions, 0 deletions