You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

udp.h 459B

1234567891011121314151617181920212223242526272829
  1. #ifndef _UDP_H
  2. #define _UDP_H
  3. #include "stddef.h"
  4. #include "stdint.h"
  5. #include <gpxe/in.h>
  6. #include "ip.h"
  7. struct udp_pseudo_hdr {
  8. struct in_addr src;
  9. struct in_addr dest;
  10. uint8_t unused;
  11. uint8_t protocol;
  12. uint16_t len;
  13. } PACKED;
  14. struct udphdr {
  15. uint16_t src;
  16. uint16_t dest;
  17. uint16_t len;
  18. uint16_t chksum;
  19. struct {} payload;
  20. } PACKED;
  21. struct udppacket {
  22. struct iphdr ip;
  23. struct udphdr udp;
  24. struct {} payload;
  25. } PACKED;
  26. #endif /* _UDP_H */