KolibriOS kernel
IPv4.inc File Reference

Classes

struct  IPv4_header
 
struct  IPv4_FRAGMENT_slot
 
struct  IPv4_FRAGMENT_entry
 This structure will replace the ethernet header in fragmented ip packets. More...
 

Macros

#define ipv4_init
 --------------------------------------------------------------—; ; ipv4_init: Resets all IPv4 variables ; ; --------------------------------------------------------------—; More...
 
#define ipv4_decrease_fragment_ttls
 --------------------------------------------------------------—; ; Decrease TimeToLive of all fragment slots ; ; --------------------------------------------------------------—; More...
 
#define ipv4_checksum(ptr)
 

Functions

void ipv4_fragment (arg_t buffer)
 --------------------------------------------------------------—; ; ipv4_fragment ; ; IN: [esp] = ptr to packet buffer to fragment ; edi = ptrr to ip header in that buffer ; ebx = device ptr ; ; OUT: / ; ; --------------------------------------------------------------—; More...
 

Variables

rd IPv4_address
 
rd IPv4_subnet
 
rd IPv4_nameserver
 
rd IPv4_gateway
 
rd IPv4_broadcast
 
rd IPv4_packets_tx
 
rd IPv4_packets_rx
 
rd IPv4_packets_dumped
 
rb IPv4_fragments
 
label ipv4_input
 
label ipv4_find_fragment_slot
 
label ipv4_output
 
label ipv4_output_raw
 
dd offset
 
dd headerlength
 
dd headerptr
 
dd dataptr
 
dd remaining
 
dd segmentsize
 
edi IPv4_checksum
 Send the fragment. More...
 
label ipv4_route
 
label ipv4_get_frgmnt_num
 
label ipv4_connect
 
label ipv4_api
 

Macro Definition Documentation

◆ ipv4_checksum

#define ipv4_checksum (   ptr)

◆ ipv4_decrease_fragment_ttls

#define ipv4_decrease_fragment_ttls

--------------------------------------------------------------—; ; Decrease TimeToLive of all fragment slots ; ; --------------------------------------------------------------—;

Source
network/IPv4.inc:114

◆ ipv4_init

#define ipv4_init

--------------------------------------------------------------—; ; ipv4_init: Resets all IPv4 variables ; ; --------------------------------------------------------------—;

Source
network/IPv4.inc:99

Function Documentation

◆ ipv4_fragment()

void ipv4_fragment ( arg_t  buffer)

--------------------------------------------------------------—; ; ipv4_fragment ; ; IN: [esp] = ptr to packet buffer to fragment ; edi = ptrr to ip header in that buffer ; ebx = device ptr ; ; OUT: / ; ; --------------------------------------------------------------—;

Source
network/IPv4.inc:812

Variable Documentation

◆ dataptr

dd dataptr
Initial value
?
Source
network/IPv4.inc:818

◆ headerlength

dd headerlength
Initial value
?
Source
network/IPv4.inc:816

◆ headerptr

dd headerptr
Initial value
?
Source
network/IPv4.inc:817

◆ IPv4_address

rd IPv4_address
Initial value
NET_DEVICES_MAX
Source
network/IPv4.inc:77

◆ ipv4_api

label ipv4_api

◆ IPv4_broadcast

rd IPv4_broadcast
Initial value
NET_DEVICES_MAX
Source
network/IPv4.inc:81

◆ IPv4_checksum

edi IPv4_checksum

Send the fragment.

Initial value
Source
network/IPv4.inc:903

◆ ipv4_connect

label ipv4_connect

◆ ipv4_find_fragment_slot

label ipv4_find_fragment_slot

◆ IPv4_fragments

rb IPv4_fragments
Initial value
IPv4_MAX_FRAGMENTS * sizeof.IPv4_FRAGMENT_slot
Source
network/IPv4.inc:87

◆ IPv4_gateway

rd IPv4_gateway
Initial value
NET_DEVICES_MAX
Source
network/IPv4.inc:80

◆ ipv4_get_frgmnt_num

label ipv4_get_frgmnt_num

◆ ipv4_input

label ipv4_input

◆ IPv4_nameserver

rd IPv4_nameserver
Initial value
NET_DEVICES_MAX
Source
network/IPv4.inc:79

◆ ipv4_output

label ipv4_output

◆ ipv4_output_raw

label ipv4_output_raw

◆ IPv4_packets_dumped

rd IPv4_packets_dumped
Initial value
NET_DEVICES_MAX
Source
network/IPv4.inc:85

◆ IPv4_packets_rx

rd IPv4_packets_rx
Initial value
NET_DEVICES_MAX
Source
network/IPv4.inc:84

◆ IPv4_packets_tx

rd IPv4_packets_tx
Initial value
NET_DEVICES_MAX
Source
network/IPv4.inc:83

◆ ipv4_route

label ipv4_route

◆ IPv4_subnet

rd IPv4_subnet
Initial value
NET_DEVICES_MAX
Source
network/IPv4.inc:78

◆ offset

dd offset
Initial value
?
Source
network/IPv4.inc:815

◆ remaining

dd remaining
Initial value
?
Source
network/IPv4.inc:819

◆ segmentsize

dd segmentsize
Initial value
?
Source
network/IPv4.inc:820