29 #include <arpa/inet.h> 31 #include <sys/types.h> 41 #ifndef _OPENVAS_NETWORKING_H 42 #define _OPENVAS_NETWORKING_H 96 ipv4_as_ipv6 (
const struct in_addr *,
struct in6_addr *);
void openvas_source_addr_as_addr6(struct in6_addr *)
Gives the source IPv4 mapped as an IPv6 address. eg. 192.168.20.10 would map to ::ffff:192.168.20.10.
int openvas_source_iface_init(const char *)
Initializes the source network interface name and related information.
void openvas_source_addr6(void *)
Gives the source IPv6 address.
char * addr6_as_str(const struct in6_addr *)
void openvas_source_addr(void *)
Gives the source IPv4 address.
int validate_port_range(const char *)
Validate a port range string.
char * openvas_source_addr_str(void)
Gives the source IPv4 address in string format.
int openvas_resolve_as_addr6(const char *, struct in6_addr *)
Resolves a hostname to an IPv4-mapped IPv6 or IPv6 address.
int openvas_source_set_socket(int, int, int)
Binds a socket to use the global source address.
int ipv6_is_enabled()
Checks if IPv6 support is enabled.
char * openvas_source_addr6_str(void)
Gives the source IPv6 address in string format.
int openvas_resolve(const char *, void *, int)
Resolves a hostname to an IPv4 or IPv6 address.
int port_in_port_ranges(int, port_protocol_t, array_t *)
Checks if a port num is in port ranges array.
port_protocol_t
Possible port types.
void sockaddr_as_str(const struct sockaddr_storage *, char *)
Convert an IP address to string format.
array_t * port_range_ranges(const char *)
Create a range array from a port_range string.
int openvas_source_iface_is_set(void)
void ipv4_as_ipv6(const struct in_addr *, struct in6_addr *)
Maps an IPv4 address as an IPv6 address. eg. 192.168.10.20 would map to ::ffff:192.168.10.20.