Staging: bcm: Fix all white space issues in Protocol.h

This patch fixes all white space issues in
Protocol.h as reported by checkpatch.pl.

Signed-off-by: Kevin McKinney <klmckinney1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Kevin McKinney 2012-12-22 14:27:39 -05:00 committed by Greg Kroah-Hartman
parent 8c4f88a864
commit bd33dd31f7
1 changed files with 33 additions and 44 deletions

View File

@ -4,11 +4,9 @@
#ifndef __PROTOCOL_H__
#define __PROTOCOL_H__
#define IPV4 4
#define IPV6 6
struct ArpHeader {
struct arphdr arp;
unsigned char ar_sha[ETH_ALEN]; /* sender hardware address */
@ -17,7 +15,6 @@ struct ArpHeader {
unsigned char ar_tip[4]; /* target IP address */
} /*__attribute__((packed))*/;
struct TransportHeaderT
{
union
@ -28,7 +25,6 @@ struct TransportHeaderT
} __attribute__((packed));
typedef struct TransportHeaderT xporthdr;
typedef enum _E_NWPKT_IPFRAME_TYPE
{
eNonIPPacket,
@ -104,20 +100,13 @@ typedef enum _E_SERVICEFLOW_CS_SPEC_
eCSPacketUnsupported
} E_SERVICEFLOW_CS_SPEC;
#define IP6_HEADER_LEN 40
#define IP_VERSION(byte) (((byte&0xF0)>>4))
#define MAC_ADDRESS_SIZE 6
#define ETH_AND_IP_HEADER_LEN 14 + 20
#define L4_SRC_PORT_LEN 2
#define L4_DEST_PORT_LEN 2
#define CTRL_PKT_LEN 8 + ETH_AND_IP_HEADER_LEN
#define ETH_ARP_FRAME 0x806
@ -143,9 +132,9 @@ typedef struct _TCP_HEADER
USHORT usChkSum;
USHORT usUrgetPtr;
} TCP_HEADER, *PTCP_HEADER;
#define TCP_HEADER_LEN sizeof(TCP_HEADER)
#define TCP_ACK 0x10 //Bit 4 in tcpflags field.
#define GET_TCP_HEADER_LEN(byte) ((byte&0xF0)>>4)
#endif //__PROTOCOL_H__