diff options
| author | Miguel <m.i@gmx.at> | 2018-09-26 10:22:37 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-09-26 10:22:37 +0200 |
| commit | ae33cc6557790a502a01b380b0926944ca2f3cfa (patch) | |
| tree | e72632052d1c6f6830c40d10d26c04b73aac74c6 /net/udp.h | |
| parent | daf374435560861681c3e4d14a2d44141aa11abc (diff) | |
ntp and udp
Diffstat (limited to 'net/udp.h')
| -rw-r--r-- | net/udp.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net/udp.h b/net/udp.h new file mode 100644 index 0000000..2c30804 --- /dev/null +++ b/net/udp.h @@ -0,0 +1,11 @@ +#include "netdev.h" +#include <stdint.h> + +struct udp_v4{ + uint16_t src_port; + uint16_t dst_port; + uint16_t len; + uint16_t csum; +} __attribute__((packed)); + +uint32_t udp_generic(struct netdev *dev, uint32_t ip, uint16_t src, uint16_t dst, uint8_t* pos,uint8_t *end); |
