Skip to content

Commit

Permalink
Staging: bcm: Replace USHORT with unsigned short in IPv6ProtocolHdr.h
Browse files Browse the repository at this point in the history
This patch replace "USHORT" with "unsigned
short" in IPv6ProtocolHdr.h

Signed-off-by: Kevin McKinney <klmckinney1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Kevin McKinney authored and Greg Kroah-Hartman committed Jan 7, 2013
1 parent eb379da commit 5ef43c3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions drivers/staging/bcm/IPv6ProtocolHdr.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
typedef struct IPV6HeaderFormatTag {
UCHAR ucVersionPrio;
UCHAR aucFlowLabel[3];
USHORT usPayloadLength;
unsigned short usPayloadLength;
UCHAR ucNextHeader;
UCHAR ucHopLimit;
ULONG ulSrcIpAddress[4];
Expand All @@ -42,7 +42,7 @@ typedef struct IPV6RoutingHeaderFormatTag {
typedef struct IPV6FragmentHeaderFormatTag {
UCHAR ucNextHeader;
UCHAR ucReserved;
USHORT usFragmentOffset;
unsigned short usFragmentOffset;
ULONG ulIdentification;
} IPV6FragmentHeader;

Expand All @@ -61,14 +61,14 @@ typedef struct IPV6HopByHopOptionsHeaderFormatTag {
typedef struct IPV6AuthenticationHeaderFormatTag {
UCHAR ucNextHeader;
UCHAR ucLength;
USHORT usReserved;
unsigned short usReserved;
ULONG ulSecurityParametersIndex;
} IPV6AuthenticationHeader;

typedef struct IPV6IcmpHeaderFormatTag {
UCHAR ucType;
UCHAR ucCode;
USHORT usChecksum;
unsigned short usChecksum;
} IPV6IcmpHeader;

typedef enum _E_IPADDR_CONTEXT {
Expand All @@ -78,14 +78,14 @@ typedef enum _E_IPADDR_CONTEXT {

/* Function Prototypes */

USHORT IpVersion6(struct bcm_mini_adapter *Adapter, /* < Pointer to the driver control structure */
unsigned short IpVersion6(struct bcm_mini_adapter *Adapter, /* < Pointer to the driver control structure */
PVOID pcIpHeader, /* <Pointer to the IP Hdr of the packet */
struct bcm_classifier_rule *pstClassifierRule);

VOID DumpIpv6Address(ULONG *puIpv6Address);

extern BOOLEAN MatchSrcPort(struct bcm_classifier_rule *pstClassifierRule, USHORT ushSrcPort);
extern BOOLEAN MatchDestPort(struct bcm_classifier_rule *pstClassifierRule, USHORT ushSrcPort);
extern BOOLEAN MatchSrcPort(struct bcm_classifier_rule *pstClassifierRule, unsigned short ushSrcPort);
extern BOOLEAN MatchDestPort(struct bcm_classifier_rule *pstClassifierRule, unsigned short ushSrcPort);
extern BOOLEAN MatchProtocol(struct bcm_classifier_rule *pstClassifierRule, UCHAR ucProtocol);

#endif

0 comments on commit 5ef43c3

Please sign in to comment.