BlinkenArea - GitList
Repositories
Blog
Wiki
mips_sys
Code
Commits
Branches
Tags
Search
Tree:
00d70be
Branches
Tags
master
mips_sys
fw
udp.c
implemented IP + ICMP, fixed ARP (padding overwriting stack)
Stefan Schuermans
commited
00d70be
at 2012-03-24 13:58:46
udp.c
Blame
History
Raw
#include "config.h" #include "checksum.h" #include "ethernet.h" #include "ip.h" #include "macros.h" #include "nethelp.h" #include "udp.h" /// tick procedure - call every 200ms void udp_tick200(void) { // TODO } /** * @brief process a received UDP packet * @param[in] ptr pointer to data of packet * @param[in] sz size of packet */ void udp_recv(void *ptr, unsigned int sz) { // TODO (void)ptr; (void)sz; } /** * @brief send a UDP packet * @param[in] ptr pointer to data of packet * @param[in] sz size of packet * * ptr must point to a udp_packet of sufficient size (ethernet padding) * with ip_hdr.proto and udp_hdr.src_port, udp_hdr.dest_port, ip_hdr.dest * already initialized */ void udp_send(void *ptr, unsigned int sz) { // TODO (void)ptr; (void)sz; }