RTRlib
Main Page
Modules
Data Structures
Examples
All
Data Structures
Functions
Typedefs
Enumerations
Enumerator
Groups
Pages
rtrlib
lib
ipv4.h
1
/*
2
* This file is part of RTRlib.
3
*
4
* This file is subject to the terms and conditions of the MIT license.
5
* See the file LICENSE in the top level directory for more details.
6
*
7
* Website: http://rtrlib.realmv6.org/
8
*/
9
10
#ifndef LRTR_IPV4_H
11
#define LRTR_IPV4_H
12
#include <inttypes.h>
13
#include <stdbool.h>
14
19
struct
lrtr_ipv4_addr
{
20
uint32_t addr;
21
};
22
31
struct
lrtr_ipv4_addr
lrtr_ipv4_get_bits(const struct
lrtr_ipv4_addr
*val,
const
uint8_t from,
const
uint8_t number);
32
40
int
lrtr_ipv4_str_to_addr(
const
char
*str,
struct
lrtr_ipv4_addr
*ip);
41
49
int
lrtr_ipv4_addr_to_str(
const
struct
lrtr_ipv4_addr
*ip,
char
*str,
const
unsigned
int
len);
50
58
bool
lrtr_ipv4_addr_equal(
const
struct
lrtr_ipv4_addr
*a,
const
struct
lrtr_ipv4_addr
*b);
59
60
#endif
lrtr_ipv4_addr
Struct storing an IPv4 address in host byte order.
Definition:
ipv4.h:19
Generated on Sun Apr 10 2016 04:30:49 for RTRlib by
1.8.5