Skip to content

Commit 6b58022

Browse files
committed
[ipheaders] fix windows build
1 parent 72110c6 commit 6b58022

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/net/ipheaders.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ typedef struct udp_hdr
6363
//
6464
typedef struct tcp_hdr
6565
{
66-
unsigned short source; // Source port no.
67-
unsigned short dest; // Dest. port no.
66+
unsigned short th_sport; // Source port no.
67+
unsigned short th_dport; // Dest. port no.
6868
unsigned long seq_num; // Sequence number
6969
unsigned long ack_num; // Acknowledgement number;
7070
unsigned short lenflags; // Header length and flags

0 commit comments

Comments
 (0)