ArvernOS
|
Data Structures | |
struct | udp_header_t |
Functions | |
void | udp_receive_packet (net_interface_t *interface, uint8_t *packet, ipv4_header_t *ipv4_header) |
void | udp_send_packet (net_interface_t *interface, uint16_t src_port, uint8_t dst_mac[6], struct sockaddr_in *dst_addr, uint8_t *data, uint32_t len) |
void udp_receive_packet | ( | net_interface_t * | interface, |
uint8_t * | packet, | ||
ipv4_header_t * | ipv4_header ) |
Receives a UDP packet.
interface | the interface on which the UDP packet has been received |
packet | the UDP packet |
ipv4_header | the IPv4 header |
void udp_send_packet | ( | net_interface_t * | interface, |
uint16_t | src_port, | ||
uint8_t | dst_mac[6], | ||
struct sockaddr_in * | dst_addr, | ||
uint8_t * | data, | ||
uint32_t | len ) |
Sends a UDP packet.
interface | the interface that should be used to send the UDP packet |
src_port | the source port |
dst_mac | the destination MAC address |
dst_addr | the destination socket address |
data | the UDP data |
len | the length of the UDP data |