diff options
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/gpxe/udp.h | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/src/include/gpxe/udp.h b/src/include/gpxe/udp.h index ed45c183b..faad6c2d3 100644 --- a/src/include/gpxe/udp.h +++ b/src/include/gpxe/udp.h @@ -18,7 +18,6 @@ * UDP constants */ -#define UDP_HLEN 8 #define UDP_MAX_HLEN 72 #define UDP_MAX_TXPKB ETH_MAX_MTU #define UDP_MIN_TXPKB ETH_ZLEN @@ -29,10 +28,10 @@ typedef uint16_t port_t; * A UDP header */ struct udp_header { - port_t source_port; - port_t dest_port; - uint16_t len; - uint16_t chksum; + port_t source_port; + port_t dest_port; + uint16_t len; + uint16_t chksum; }; struct udp_connection; @@ -59,15 +58,15 @@ struct udp_operations { */ struct udp_connection { /** Address of the remote end of the connection */ - struct sockaddr sin; - /** Local port on which the connection receives packets */ - port_t local_port; - /** Transmit buffer */ - struct pk_buff *tx_pkb; - /** List of registered connections */ - struct list_head list; - /** Operations table for this connection */ - struct udp_operations *udp_op; + struct sockaddr sin; + /** Local port on which the connection receives packets */ + port_t local_port; + /** Transmit buffer */ + struct pk_buff *tx_pkb; + /** List of registered connections */ + struct list_head list; + /** Operations table for this connection */ + struct udp_operations *udp_op; }; /** |
