repo.or.cz
/
open-ps2-loader.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Disabling auto-refresh of game list by default, as it is causing bugs sometimes
[open-ps2-loader.git]
/
modules
/
wip
/
lanman
/
udp.h
blob
e11982421b33789ac9945fc97e39b5a855e6b89e
1
/*
2
Copyright (c) 2010 jimmikaelkael <jimmikaelkael@wanadoo.fr>
3
Licenced under Academic Free License version 3.0
4
*/
5
6
#ifndef UDP_H
7
#define UDP_H
8
9
#include <tamtypes.h>
10
11
#include
"eth.h"
12
#include
"ip.h"
13
14
typedef
struct
{
15
/* Ethernet header (14). */
16
eth_hdr_t eth
;
17
18
/* IP header (20). */
19
ip_hdr_t ip
;
20
21
/* UDP header (8). */
22
u16 udp_port_src
;
23
u16 udp_port_dst
;
24
u16 udp_len
;
25
u16 udp_csum
;
26
27
/* Data goes here. */
28
}
udp_pkt_t
__attribute__
((
packed
));
29
30
#endif
/* UDP_H */