diff options
| author | Joe Hershberger <joe.hershberger@ni.com> | 2012-05-23 07:58:09 +0000 | 
|---|---|---|
| committer | Joe Hershberger <joe.hershberger@ni.com> | 2012-05-23 17:46:15 -0500 | 
| commit | e0a630795b35f3137a3204e0d8e5fea928f8962b (patch) | |
| tree | f72792762c7481f2e0ef550de5dceaa40930ffa3 /include/net.h | |
| parent | 738853bb6d290dc4b52d8c2989c0998d7aa26913 (diff) | |
| download | olio-uboot-2014.01-e0a630795b35f3137a3204e0d8e5fea928f8962b.tar.xz olio-uboot-2014.01-e0a630795b35f3137a3204e0d8e5fea928f8962b.zip | |
net: cosmetic: Un-typedef ICMP_t
Remove typedef and lower-case name
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'include/net.h')
| -rw-r--r-- | include/net.h | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/include/net.h b/include/net.h index eeea466d6..fd19c42d1 100644 --- a/include/net.h +++ b/include/net.h @@ -298,7 +298,7 @@ struct arp_hdr {  /* Codes for NOT_REACH */  #define ICMP_NOT_REACH_PORT	3	/* Port unreachable		*/ -typedef struct icmphdr { +struct icmp_hdr {  	uchar		type;  	uchar		code;  	ushort		checksum; @@ -314,8 +314,10 @@ typedef struct icmphdr {  		} frag;  		uchar data[0];  	} un; -} ICMP_t; +}; +#define ICMP_HDR_SIZE		(sizeof(struct icmp_hdr)) +#define IP_ICMP_HDR_SIZE	(IP_HDR_SIZE + ICMP_HDR_SIZE)  /*   * Maximum packet size; used to allocate packet storage. |