Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Linux カーネルで最新の TPROXY を使用して、リモート/宛先マシンの IP アドレスを取得するにはどうすればよいですか? ローカル/ソース エンドポイントが から返されると想定していますaccept()。
accept()
元の (再ルーティング前の) リモート宛先は になりますgetsockname()。accept()ローカル(十分にローカルですが、コンピューター上のインターフェイスではない)ソースアドレスを返します。
getsockname()