|
pinktrace
Version 0.1.3
|
Structure which defines a decoded socket address. More...
#include <pinktrace/socket.h>
Data Fields | |
| int | family |
| socklen_t | length |
| union { | |
| char _pad [128] | |
| struct sockaddr _sa | |
| struct sockaddr_un sa_un | |
| struct sockaddr_in sa_in | |
| struct sockaddr_in6 sa6 | |
| struct sockaddr_nl nl | |
| } | u |
Structure which defines a decoded socket address.
pink-simple-strace-freebsd.c, and pink-simple-strace-linux.c.
Family of the socket address
| socklen_t pink_socket_address_t::length |
Length of the socket address
| char pink_socket_address_t::_pad[128] |
| struct sockaddr pink_socket_address_t::_sa |
| struct sockaddr_un pink_socket_address_t::sa_un |
Unix socket address, only valid if family is AF_UNIX.
| struct sockaddr_in pink_socket_address_t::sa_in |
Inet socket address, only valid if family is AF_INET.
| struct sockaddr_in6 pink_socket_address_t::sa6 |
Inet6 socket address, only valid if family is AF_INET6. This member is only available if IPV6 support was enabled at compile time. Check with PINKTRACE_HAVE_IPV6.
| struct sockaddr_nl pink_socket_address_t::nl |
Netlink socket address, only valid if family is AF_NETLINK. Check with PINKTRACE_HAVE_NETLINK if this member is available.
| union { ... } pink_socket_address_t::u |
This union contains type-safe pointers to the real socket address. Check the family before attempting to obtain the real object.
1.7.5.1