XenevaOS
Loading...
Searching...
No Matches
udp.h
Go to the documentation of this file.
1
30#ifndef __UDP_H__
31#define __UDP_H__
32
33#include <list.h>
34
35#ifdef ARCH_X64
36#pragma pack(push,1)
37#endif
38__declspec(align(2))
39typedef struct _udpheader_ {
40 unsigned short srcPort;
41 unsigned short destPort;
42 unsigned short length;
43 unsigned short checksum;
44 unsigned char payload[];
46#ifdef ARCH_X64
47#pragma pack(pop)
48#endif
49
50/*
51* CreateUDPSocket -- create a new UDP
52* socket
53*/
54extern int CreateUDPSocket();
55
56/*
57 * UDPSocketInstall -- initialize the UDP socket
58 */
59extern void UDPProtocolInstall();
60
61/*
62 * UDPProtocolGetSockList -- returns the socket
63 * list
64 */
66
67#endif
Definition list.h:46
__declspec(align(2)) typedef struct _udpheader_
Definition udp.h:38
UDPHeader
Definition udp.h:45
void UDPProtocolInstall()
UDPProtocolInstall – initialize the UDP socket.
Definition udp.cpp:266
list_t * UDPProtocolGetSockList()
UDPProtocolGetSockList – returns the socket list.
Definition udp.cpp:274
int CreateUDPSocket()
Definition udp.cpp:234