diff options
author | Martin Willi <martin@strongswan.org> | 2006-09-12 13:50:14 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2006-09-12 13:50:14 +0000 |
commit | d7934d0cfc84805bebc59f866c4af2f6e9687370 (patch) | |
tree | 25d99a2f178383e28996186a1d56de682f5eb503 /src/charon/network/socket.h | |
parent | a095243f604ea0dd3023acbef3622a0d53200dd3 (diff) | |
download | strongswan-d7934d0cfc84805bebc59f866c4af2f6e9687370.tar.bz2 strongswan-d7934d0cfc84805bebc59f866c4af2f6e9687370.tar.xz |
implemented updown script to handle firewalling
Diffstat (limited to 'src/charon/network/socket.h')
-rw-r--r-- | src/charon/network/socket.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/charon/network/socket.h b/src/charon/network/socket.h index 34a06c0bb..431d9f2eb 100644 --- a/src/charon/network/socket.h +++ b/src/charon/network/socket.h @@ -93,11 +93,15 @@ struct socket_t { /** * @brief Check if an address is an address of this host. * + * If the name parameter is not NULL, a string is allocated which + * holds the interfaces name. + * * @param this socket_t object to work on * @param host address to check + * @param name[out] interface name on which address is used * @return TRUE if local address, FALSE otherwise */ - bool (*is_local_address) (socket_t *this, host_t *host); + bool (*is_local_address) (socket_t *this, host_t *host, char **name); /** * @brief Create a list of hosts with all local addresses. |