The friendly Operating System for the Internet of Things
inet.h File Reference

Definitions for internet operations. More...

Detailed Description

#include <errno.h>
#include <inttypes.h>
#include <stdio.h>
#include "byteorder.h"
#include "net/af.h"
#include "net/ipv4/addr.h"
#include "net/ipv6/addr.h"
#include "sys/bytes.h"
#include "netinet/in.h"
+ Include dependency graph for inet.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define INADDRSZ   (sizeof(ipv4_addr_t))
 Size in byte of an IPv4 address.
 
#define IN6ADDRSZ   (sizeof(ipv6_addr_t))
 Size in byte of an IPv6 address.
 

Functions

static const char * inet_ntop (int af, const void *restrict src, char *restrict dst, socklen_t size)
 Converts an IP address to its string representation. More...
 
static int inet_pton (int af, const char *src, void *dst)
 Converts an IP address string representation to a byte-represented IP address. More...