summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorNikhil Chandru Rao2006-06-28 09:46:28 +0200
committerNikhil Chandru Rao2006-06-28 09:46:28 +0200
commita6c6b3d73918bbd53bade803705ae626d17d83fc (patch)
tree44f3edb1bc798e84f3f70b03bc645b60f263f1f5 /src/include
parent- first check-in for mucurses_test.c (diff)
downloadipxe-a6c6b3d73918bbd53bade803705ae626d17d83fc.tar.gz
ipxe-a6c6b3d73918bbd53bade803705ae626d17d83fc.tar.xz
ipxe-a6c6b3d73918bbd53bade803705ae626d17d83fc.zip
Fixed whitespaces; updated UDP code
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gpxe/udp.h27
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;
};
/**