Jean Delvare <[EMAIL PROTECTED]> wrote: > >> inet_diag is the preferred interface. > > How does it work? Is there some documentation available? I see > net/ipv4/inet_diag.c but I have no idea how to use it.
Have a look at the iproute package. It contains the ss command which provides a command-line interface to it. Of course it's also a good example of how you can access it from C. The Debian pidentd package has also been patched to use this interface. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html