Nick Jones <nick.jones@xxxxxxxxxxxxxxx> wrote: > > getsockopt(m_sock, SOL_IP, SO_ORIGINAL_DST, &m_server_addr, &addrsize) > > > > but for ipv6 no such option existed. > > > > This adds getsockopt(..., IPPROTO_IPV6, IP6T_SO_ORIGINAL_DST, ...). > > > > Without this, userspace needs to parse /proc or use ctnetlink, which > > appears to be overkill. > > Doesn't getsockname(2) provide this information? No. It will show the local address (the address we REDIRECT'ed to). > It does for TPROXY'd connections. Yes, because with TPROXY the destination won't be rewritten. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html