pinktrace  Version 0.1.3
Data Fields
pink_socket_address_t Struct Reference

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

Detailed Description

Structure which defines a decoded socket address.

Examples:

pink-simple-strace-freebsd.c, and pink-simple-strace-linux.c.

Definition at line 56 of file socket.h.


Field Documentation

Family of the socket address

Examples:
pink-simple-strace-freebsd.c, and pink-simple-strace-linux.c.

Definition at line 58 of file socket.h.

Length of the socket address

Since:
0.0.5
Examples:
pink-simple-strace-freebsd.c, and pink-simple-strace-linux.c.

Definition at line 65 of file socket.h.

Padding, for internal use only

Definition at line 73 of file socket.h.

struct sockaddr pink_socket_address_t::_sa

Socket address, for internal use only

Definition at line 76 of file socket.h.

struct sockaddr_un pink_socket_address_t::sa_un

Unix socket address, only valid if family is AF_UNIX.

Examples:
pink-simple-strace-freebsd.c, and pink-simple-strace-linux.c.

Definition at line 79 of file socket.h.

struct sockaddr_in pink_socket_address_t::sa_in

Inet socket address, only valid if family is AF_INET.

Examples:
pink-simple-strace-freebsd.c, and pink-simple-strace-linux.c.

Definition at line 82 of file socket.h.

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.

Examples:
pink-simple-strace-freebsd.c, and pink-simple-strace-linux.c.

Definition at line 90 of file socket.h.

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.

Since:
0.0.5
Examples:
pink-simple-strace-linux.c.

Definition at line 101 of file socket.h.

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.

Examples:
pink-simple-strace-freebsd.c, and pink-simple-strace-linux.c.

The documentation for this struct was generated from the following file: