2 * Copyright 2007, Broadcom Corporation
5 * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Broadcom Corporation;
6 * the contents of this file may not be disclosed to third parties, copied
7 * or duplicated in any form, in whole or in part, without the prior
8 * written permission of Broadcom Corporation.
10 * Fundamental constants relating to UDP Protocol
17 /* enable structure packing */
19 #define PACKED __attribute__((packed))
26 #define UDP_DEST_PORT_OFFSET 2 /* UDP dest port offset */
27 #define UDP_LEN_OFFSET 4 /* UDP length offset */
28 #define UDP_CHKSUM_OFFSET 6 /* UDP body checksum offset */
30 #define UDP_HDR_LEN 8 /* UDP header length */
31 #define UDP_PORT_LEN 2 /* UDP port length */
33 /* These fields are stored in network order */
36 uint16 src_port
; /* Source Port Address */
37 uint16 dst_port
; /* Destination Port Address */
38 uint16 len
; /* Number of bytes in datagram including header */
39 uint16 chksum
; /* entire datagram checksum with pseudoheader */
43 #if !defined(__GNUC__)
47 #endif /* #ifndef _bcmudp_h_ */
This page took 0.042152 seconds and 5 git commands to generate.