Skip to content

Commit f2186c1

Browse files
authored
Update ipheaders.h
1 parent 23ce2b3 commit f2186c1

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

include/net/ipheaders.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ typedef struct udp_hdr
5454
{
5555
unsigned short source; // Source port no.
5656
unsigned short dest; // Dest. port no.
57-
unsigned short length; // Udp packet length
57+
unsigned short len; // Udp packet length
5858
unsigned short check; // Udp checksum
5959
} UDP_HDR, * PUDP_HDR, udphdr;
6060

@@ -63,8 +63,8 @@ typedef struct udp_hdr
6363
//
6464
typedef struct tcp_hdr
6565
{
66-
unsigned short src_portno; // Source port no.
67-
unsigned short dest_portno; // Dest. port no.
66+
unsigned short source; // Source port no.
67+
unsigned short dest; // 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
@@ -126,5 +126,3 @@ typedef struct igmp_hdr_report_v3
126126
#include <poppack.h>
127127

128128
#endif
129-
130-

0 commit comments

Comments
 (0)