BlinkenArea - GitList
Repositories
Blog
Wiki
mips_sys
Code
Commits
Branches
Tags
Search
Tree:
2a4b80d
Branches
Tags
master
mips_sys
fw
udp.c
handle padding to minimum ethernet frame size (TX) in HW
Stefan Schuermans
commited
2a4b80d
at 2012-03-24 16:42:53
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 * 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; }