setsockopt in Java programs
<p>From version 8 onwards FreeBSD supports IP_BINDANY socket option which the man page defines as:</p>

<blockquote>
  <p>If the IP_BINDANY option is enabled on a SOCK_STREAM, SOCK_DGRAM or a
    SOCK_RAW socket, one can bind(2) to any address, even one not bound to
    any available network interface in the system.  This functionality (in
    conjunction with special firewall rules) can be used for implementing a
    transparent proxy.  The PRIV_NETINET_BINDANY privilege is needed to set
    this option.</p>
</blockquote>

<p>Is it possible to write a Java program that can use this functionality? I have checked the docs of <a href="http://download.oracle.com/javase/6/docs/api/java/net/SocketOptions.html" rel="nofollow">SocketOptions</a> and it obviously does not list this option. So is there any workaround?</p>

<p>with regards,</p>

<p>raj</p>
