int16_t kernel_pid_t
Unique process identifier.
static void gnrc_netapi_notify_ack(sema_inv_t *ack)
Acknowledge that a notify event was received and its data read.
int gnrc_netapi_notify_copy_event_data(gnrc_netapi_notify_t *notify, uint8_t data_len, void *data)
Copy the connection event data associated with a gnrc_netapi_notify_t event.
netapi_notify_t
Definition of notification event types in the network stack.
@ NETAPI_NOTIFY_L3_UNREACHABLE
Node became unreachable on the network layer.
@ NETAPI_NOTIFY_L2_NEIGH_CONNECTED
Connection established on layer 2.
@ NETAPI_NOTIFY_L3_DISCOVERED
Discovered node on the network layer.
@ NETAPI_NOTIFY_L2_NEIGH_DISCONNECTED
Connection closed on layer 2.
#define GNRC_NETIF_L2ADDR_MAXLEN
Maximum length of the link-layer address.
bool sema_inv_post(sema_inv_t *s)
Signal semaphore (counter mode).
Configuration macros for Network interface API.
Inverse Semaphore definitions.
Data structure to be sent for netapi notification events.
uint16_t _data_len
size of the event data
sema_inv_t ack
inverse semaphore for collecting ack's
netapi_notify_t event
the type of event
void * _data
associated event data.
L2 connection event data associated with NETAPI_NOTIFY_L2_NEIGH_CONNECTED or NETAPI_NOTIFY_L2_NEIGH_D...
uint8_t l2addr_len
length of L2 address in byte
uint8_t l2addr[GNRC_NETIF_L2ADDR_MAXLEN]
L2 address of the node.
kernel_pid_t if_pid
PID of network interface.