Turnstone Operating System
|
IPv4 header. More...
#include <types.h>
#include <network.h>
#include <network/network_protocols.h>
#include <network/network_icmpv4.h>
#include <network/network_udpv4.h>
#include <network/network_tcpv4.h>
Classes | |
struct | network_ipv4_header_t |
Macros | |
#define | ___NETWORK_IPV4_H 0 |
#define | NETWORK_IPV4_VERSION 4 |
#define | NETWORK_IPV4_TTL 128 |
#define | NETWORK_IPV4_FLAG_DONT_FRAGMENT 2 |
#define | NETWORK_IPV4_FLAG_MORE_FRAGMENTS 1 |
Typedefs | |
typedef enum network_ipv4_protocol_t | network_ipv4_protocol_t |
typedef struct network_ipv4_header_t | network_ipv4_header_t |
Enumerations | |
enum | network_ipv4_protocol_t { NETWORK_IPV4_PROTOCOL_ICMPV4 =1 , NETWORK_IPV4_PROTOCOL_IGMPV4 =2 , NETWORK_IPV4_PROTOCOL_TCPV4 =6 , NETWORK_IPV4_PROTOCOL_UDPV4 =17 } |
Functions | |
boolean_t | network_ipv4_is_address_eq (const network_ipv4_address_t ipv4_addr1, const network_ipv4_address_t ipv4_addr2) |
list_t * | network_ipv4_process_packet (network_ipv4_header_t *recv_ipv4_packet, void *network_info) |
list_t * | network_ipv4_create_packet_from_icmp_packet (const network_ipv4_address_t sip, network_ipv4_address_t dip, network_icmpv4_header_t *icmp_hdr, uint16_t icmp_packet_len) |
list_t * | network_ipv4_create_packet_from_udp_packet (const network_ipv4_address_t sip, network_ipv4_address_t dip, network_udpv4_header_t *udp_hdr) |
list_t * | network_ipv4_create_packet_from_tcp_packet (const network_ipv4_address_t sip, network_ipv4_address_t dip, network_tcpv4_header_t *tcp_hdr, uint16_t packet_len) |
Variables | |
network_ipv4_address_t | NETWORK_IPV4_GLOBAL_BROADCAST_IP |
network_ipv4_address_t | NETWORK_IPV4_ZERO_IP |
IPv4 header.
This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.