Commit d83beb86 authored by Kevin McKinney's avatar Kevin McKinney Committed by Greg Kroah-Hartman

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

This patch fixes all white space issues in
IPv6ProtocolHdr.h as reported by checkpatch.pl.
Signed-off-by: default avatarKevin McKinney <klmckinney1@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7e5df051
#ifndef _IPV6_PROTOCOL_DEFINES_ #ifndef _IPV6_PROTOCOL_DEFINES_
#define _IPV6_PROTOCOL_DEFINES_ #define _IPV6_PROTOCOL_DEFINES_
#define IPV6HDR_TYPE_HOPBYHOP 0x0 #define IPV6HDR_TYPE_HOPBYHOP 0x0
#define IPV6HDR_TYPE_ROUTING 0x2B #define IPV6HDR_TYPE_ROUTING 0x2B
#define IPV6HDR_TYPE_FRAGMENTATION 0x2C #define IPV6HDR_TYPE_FRAGMENTATION 0x2C
...@@ -10,9 +9,8 @@ ...@@ -10,9 +9,8 @@
#define IPV6HDR_TYPE_ENCRYPTEDSECURITYPAYLOAD 0x34 #define IPV6HDR_TYPE_ENCRYPTEDSECURITYPAYLOAD 0x34
#define MASK_IPV6_CS_SPEC 0x2 #define MASK_IPV6_CS_SPEC 0x2
#define TCP_HEADER_TYPE 0x6
#define TCP_HEADER_TYPE 0x6 #define UDP_HEADER_TYPE 0x11
#define UDP_HEADER_TYPE 0x11
#define IPV6_ICMP_HDR_TYPE 0x2 #define IPV6_ICMP_HDR_TYPE 0x2
#define IPV6_FLOWLABEL_BITOFFSET 9 #define IPV6_FLOWLABEL_BITOFFSET 9
...@@ -36,7 +34,7 @@ typedef struct IPV6HeaderFormatTag ...@@ -36,7 +34,7 @@ typedef struct IPV6HeaderFormatTag
UCHAR ucHopLimit; UCHAR ucHopLimit;
ULONG ulSrcIpAddress[4]; ULONG ulSrcIpAddress[4];
ULONG ulDestIpAddress[4]; ULONG ulDestIpAddress[4];
}IPV6Header; } IPV6Header;
typedef struct IPV6RoutingHeaderFormatTag typedef struct IPV6RoutingHeaderFormatTag
{ {
...@@ -47,15 +45,15 @@ typedef struct IPV6RoutingHeaderFormatTag ...@@ -47,15 +45,15 @@ typedef struct IPV6RoutingHeaderFormatTag
ULONG ulReserved; ULONG ulReserved;
//UCHAR aucAddressList[0]; //UCHAR aucAddressList[0];
}IPV6RoutingHeader; } IPV6RoutingHeader;
typedef struct IPV6FragmentHeaderFormatTag typedef struct IPV6FragmentHeaderFormatTag
{ {
UCHAR ucNextHeader; UCHAR ucNextHeader;
UCHAR ucReserved; UCHAR ucReserved;
USHORT usFragmentOffset; USHORT usFragmentOffset;
ULONG ulIdentification; ULONG ulIdentification;
}IPV6FragmentHeader; } IPV6FragmentHeader;
typedef struct IPV6DestOptionsHeaderFormatTag typedef struct IPV6DestOptionsHeaderFormatTag
{ {
...@@ -63,54 +61,48 @@ typedef struct IPV6DestOptionsHeaderFormatTag ...@@ -63,54 +61,48 @@ typedef struct IPV6DestOptionsHeaderFormatTag
UCHAR ucHdrExtLen; UCHAR ucHdrExtLen;
UCHAR ucDestOptions[6]; UCHAR ucDestOptions[6];
//UCHAR udExtDestOptions[0]; //UCHAR udExtDestOptions[0];
}IPV6DestOptionsHeader; } IPV6DestOptionsHeader;
typedef struct IPV6HopByHopOptionsHeaderFormatTag typedef struct IPV6HopByHopOptionsHeaderFormatTag
{ {
UCHAR ucNextHeader; UCHAR ucNextHeader;
UCHAR ucMisc[3]; UCHAR ucMisc[3];
ULONG ulJumboPayloadLen; ULONG ulJumboPayloadLen;
}IPV6HopByHopOptionsHeader; } IPV6HopByHopOptionsHeader;
typedef struct IPV6AuthenticationHeaderFormatTag typedef struct IPV6AuthenticationHeaderFormatTag
{ {
UCHAR ucNextHeader; UCHAR ucNextHeader;
UCHAR ucLength; UCHAR ucLength;
USHORT usReserved; USHORT usReserved;
ULONG ulSecurityParametersIndex; ULONG ulSecurityParametersIndex;
//UCHAR ucAuthenticationData[0]; //UCHAR ucAuthenticationData[0];
} IPV6AuthenticationHeader;
}IPV6AuthenticationHeader;
typedef struct IPV6IcmpHeaderFormatTag typedef struct IPV6IcmpHeaderFormatTag
{ {
UCHAR ucType; UCHAR ucType;
UCHAR ucCode; UCHAR ucCode;
USHORT usChecksum; USHORT usChecksum;
//UCHAR ucIcmpMsg[0]; //UCHAR ucIcmpMsg[0];
} IPV6IcmpHeader;
}IPV6IcmpHeader;
typedef enum _E_IPADDR_CONTEXT typedef enum _E_IPADDR_CONTEXT
{ {
eSrcIpAddress, eSrcIpAddress,
eDestIpAddress eDestIpAddress
} E_IPADDR_CONTEXT;
}E_IPADDR_CONTEXT;
//Function Prototypes //Function Prototypes
USHORT IpVersion6(struct bcm_mini_adapter *Adapter, /**< Pointer to the driver control structure */ USHORT IpVersion6(struct bcm_mini_adapter *Adapter, /**< Pointer to the driver control structure */
PVOID pcIpHeader, /**<Pointer to the IP Hdr of the packet*/ PVOID pcIpHeader, /**<Pointer to the IP Hdr of the packet*/
struct bcm_classifier_rule *pstClassifierRule ); struct bcm_classifier_rule *pstClassifierRule);
VOID DumpIpv6Address(ULONG *puIpv6Address); VOID DumpIpv6Address(ULONG *puIpv6Address);
extern BOOLEAN MatchSrcPort(struct bcm_classifier_rule *pstClassifierRule,USHORT ushSrcPort); extern BOOLEAN MatchSrcPort(struct bcm_classifier_rule *pstClassifierRule, USHORT ushSrcPort);
extern BOOLEAN MatchDestPort(struct bcm_classifier_rule *pstClassifierRule,USHORT ushSrcPort); extern BOOLEAN MatchDestPort(struct bcm_classifier_rule *pstClassifierRule, USHORT ushSrcPort);
extern BOOLEAN MatchProtocol(struct bcm_classifier_rule *pstClassifierRule,UCHAR ucProtocol); extern BOOLEAN MatchProtocol(struct bcm_classifier_rule *pstClassifierRule, UCHAR ucProtocol);
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment