KolibriOS kernel
udp.inc File Reference

Classes

struct  UDP_header
 

Macros

#define udp_init
 --------------------------------------------------------------—; ; udp_init: This function resets all UDP variables ; ; --------------------------------------------------------------—; More...
 
#define udp_checksum(IP1, IP2)
 esi = ptr to udp packet, ecx = packet size, destroys: ecx, edx More...
 

Variables

rd UDP_packets_tx
 
rd UDP_packets_rx
 
label udp_input
 --------------------------------------------------------------—; ; udp_input: Inject the UDP data in the application sockets. ; ; IN: [esp] = ptr to buffer ; ebx = ptr to device struct ; ecx = UDP packet size ; edx = ptr to IPv4 header ; esi = ptr to UDP packet data ; edi = interface number*4 ; ; OUT: / ; ; --------------------------------------------------------------—; More...
 
label udp_output
 
label udp_connect
 --------------------------------------------------------------—; ; udp_connect ; ; IN: eax = socket pointer ; edx = pointer to sockaddr struct ; ; OUT: eax = 0 on success ; eax = -1 on error ; ebx = error code on error ; ; --------------------------------------------------------------—; More...
 
label udp_disconnect
 --------------------------------------------------------------—; ; UDP_disconnect ; ; IN: eax = socket pointer ; ; OUT: eax = socket pointer ; ; --------------------------------------------------------------—; More...
 
label udp_api
 --------------------------------------------------------------—; ; UDP_api: Part of system function 76 ; ; IN: bl = subfunction number in bl ; bh = device number in bh ; ecx, edx, .. depends on subfunction ; ; OUT: depends on subfunction ; ; --------------------------------------------------------------—; More...
 

Macro Definition Documentation

◆ udp_checksum

#define udp_checksum (   IP1,
  IP2 
)

esi = ptr to udp packet, ecx = packet size, destroys: ecx, edx

Source
network/udp.inc:51

◆ udp_init

#define udp_init

--------------------------------------------------------------—; ; udp_init: This function resets all UDP variables ; ; --------------------------------------------------------------—;

Source
network/udp.inc:42

Variable Documentation

◆ udp_api

label udp_api

--------------------------------------------------------------—; ; UDP_api: Part of system function 76 ; ; IN: bl = subfunction number in bl ; bh = device number in bh ; ecx, edx, .. depends on subfunction ; ; OUT: depends on subfunction ; ; --------------------------------------------------------------—;

Source
network/udp.inc:413

◆ udp_connect

label udp_connect

--------------------------------------------------------------—; ; udp_connect ; ; IN: eax = socket pointer ; edx = pointer to sockaddr struct ; ; OUT: eax = 0 on success ; eax = -1 on error ; ebx = error code on error ; ; --------------------------------------------------------------—;

Source
network/udp.inc:314

◆ udp_disconnect

label udp_disconnect

--------------------------------------------------------------—; ; UDP_disconnect ; ; IN: eax = socket pointer ; ; OUT: eax = socket pointer ; ; --------------------------------------------------------------—;

Source
network/udp.inc:389

◆ udp_input

label udp_input

--------------------------------------------------------------—; ; udp_input: Inject the UDP data in the application sockets. ; ; IN: [esp] = ptr to buffer ; ebx = ptr to device struct ; ecx = UDP packet size ; edx = ptr to IPv4 header ; esi = ptr to UDP packet data ; edi = interface number*4 ; ; OUT: / ; ; --------------------------------------------------------------—;

Source
network/udp.inc:112

◆ udp_output

label udp_output

◆ UDP_packets_rx

rd UDP_packets_rx
Initial value
NET_DEVICES_MAX
Source
network/udp.inc:32

◆ UDP_packets_tx

rd UDP_packets_tx
Initial value
NET_DEVICES_MAX
Source
network/udp.inc:31