Classes | |
struct | NET_DEVICE |
struct | NET_BUFF |
Macros | |
#define | pseudo_random(reg) |
Exactly as it says.. More... | |
#define | ntohd(reg) |
Network to Hardware byte order (dword) More... | |
#define | ntohw(reg) |
Network to Hardware byte order (word) More... | |
Functions | |
void | stack_handler_has_work () |
Wakeup every tick. More... | |
void | net_buff_alloc (arg_t buffersize) |
void | net_buff_free (arg_t buffer) |
Variables | |
dd | net_10ms |
dw | net_tmr_count |
dd | net_device_count |
rd | net_device_list |
rd | net_buffs_free |
list of pointers to actual net buffs More... | |
dd | _current |
pointer to current element in net_buffs_free list More... | |
dd | net_buffs_low |
actual net buff mem region start More... | |
dd | net_buffs_high |
actual net buff mem region stop More... | |
label | stack_init |
--------------------------------------------------------------—; ; stack_init: Initialize all network variables ; ; IN: / ; OUT: / ; ; --------------------------------------------------------------—; More... | |
label | stack_handler |
--------------------------------------------------------------—; ; stack_handler: Network handlers called from os_loop. ; ; IN: / ; OUT: / ; ; --------------------------------------------------------------—; More... | |
label | net_link_changed |
label | net_send_event |
label | net_add_device |
--------------------------------------------------------------—; ; net_add_device: Called by network driver to register interface. ; ; IN: ebx = ptr to device structure ; ; OUT: eax = device num on success ; eax = -1 on error ; ; --------------------------------------------------------------—; More... | |
label | net_remove_device |
--------------------------------------------------------------—; ; net_remove_device: Called by network driver to unregister dev. ; ; IN: ebx = ptr to device ; ; OUT: eax: -1 on error ; ; --------------------------------------------------------------—; More... | |
label | net_ptr_to_num |
--------------------------------------------------------------—; ; net_ptr_to_num ; ; IN: ebx = ptr to device struct ; ; OUT: edi = device number ; edi = -1 on error ; ; --------------------------------------------------------------—; More... | |
label | net_ptr_to_num4 |
Todo, place number in device structure so we only need to verify? More... | |
label | checksum_1 |
--------------------------------------------------------------—; ; checksum_1: Calculate semi-checksum for network packets. ; ; IN: edx = start offset for semi-checksum ; esi = pointer to data ; ecx = data size ; ; OUT: edx = semi-checksum ; ; --------------------------------------------------------------—; More... | |
label | checksum_2 |
--------------------------------------------------------------—; ; checksum_2: Calculate the final ip/tcp/udp checksum. ; ; IN: edx = semi-checksum ; ; OUT: dx = checksum (in INET byte order) ; ; --------------------------------------------------------------—; More... | |
label | sys_network |
--------------------------------------------------------------—; ; System function 74: Low level access to network devices. ; ; --------------------------------------------------------------—; More... | |
label | sys_protocols |
--------------------------------------------------------------—; ; System function 76: Low level access to protocol handlers. ; ; --------------------------------------------------------------—; More... | |
#define ntohd | ( | reg | ) |
Network to Hardware byte order (dword)
#define ntohw | ( | reg | ) |
Network to Hardware byte order (word)
#define pseudo_random | ( | reg | ) |
Exactly as it says..
void net_buff_alloc | ( | arg_t | buffersize | ) |
void net_buff_free | ( | arg_t | buffer | ) |
void stack_handler_has_work | ( | ) |
Wakeup every tick.
dd _current |
label checksum_1 |
--------------------------------------------------------------—; ; checksum_1: Calculate semi-checksum for network packets. ; ; IN: edx = start offset for semi-checksum ; esi = pointer to data ; ecx = data size ; ; OUT: edx = semi-checksum ; ; --------------------------------------------------------------—;
label checksum_2 |
--------------------------------------------------------------—; ; checksum_2: Calculate the final ip/tcp/udp checksum. ; ; IN: edx = semi-checksum ; ; OUT: dx = checksum (in INET byte order) ; ; --------------------------------------------------------------—;
dd net_10ms |
label net_add_device |
--------------------------------------------------------------—; ; net_add_device: Called by network driver to register interface. ; ; IN: ebx = ptr to device structure ; ; OUT: eax = device num on success ; eax = -1 on error ; ; --------------------------------------------------------------—;
rd net_buffs_free |
dd net_buffs_high |
dd net_buffs_low |
dd net_device_count |
rd net_device_list |
label net_link_changed |
label net_ptr_to_num |
--------------------------------------------------------------—; ; net_ptr_to_num ; ; IN: ebx = ptr to device struct ; ; OUT: edi = device number ; edi = -1 on error ; ; --------------------------------------------------------------—;
label net_ptr_to_num4 |
Todo, place number in device structure so we only need to verify?
label net_remove_device |
--------------------------------------------------------------—; ; net_remove_device: Called by network driver to unregister dev. ; ; IN: ebx = ptr to device ; ; OUT: eax: -1 on error ; ; --------------------------------------------------------------—;
label net_send_event |
dw net_tmr_count |
label stack_handler |
--------------------------------------------------------------—; ; stack_handler: Network handlers called from os_loop. ; ; IN: / ; OUT: / ; ; --------------------------------------------------------------—;
label stack_init |
--------------------------------------------------------------—; ; stack_init: Initialize all network variables ; ; IN: / ; OUT: / ; ; --------------------------------------------------------------—;
label sys_network |
--------------------------------------------------------------—; ; System function 74: Low level access to network devices. ; ; --------------------------------------------------------------—;
label sys_protocols |
--------------------------------------------------------------—; ; System function 76: Low level access to protocol handlers. ; ; --------------------------------------------------------------—;