/
githubmirror
/
ipxe
Обзор
Документация
Войти
/
githubmirror
/
ipxe
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v0.9.3
src/include/udp.h
29 строк
459 B
Michael Brown
Moved include/in.h to include/gpxe/in.h, so that it can be included by
23 мар 2006, 19:45
23 мар 2006, 19:45
dde1c5a
Код
Авторство
О чём код?
#ifndef _UDP_H #define _UDP_H #include "stddef.h" #include "stdint.h" #include <gpxe/in.h> #include "ip.h" struct udp_pseudo_hdr { struct in_addr src; struct in_addr dest; uint8_t unused; uint8_t protocol; uint16_t len; } PACKED; struct udphdr { uint16_t src; uint16_t dest; uint16_t len; uint16_t chksum; struct {} payload; } PACKED; struct udppacket { struct iphdr ip; struct udphdr udp; struct {} payload; } PACKED; #endif /* _UDP_H */