forked from Minki/linux
Staging: bcm: Remove typedef for TransportHeaderT and call directly.
This patch removes typedef for TransportHeaderT, and changes the name of the struct to bcm_transport_header. In addition, any calls to struct "xporthdr" are changed to call directly. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8ab1992114
commit
c5485e9ca7
@ -15,13 +15,12 @@ struct ArpHeader {
|
|||||||
unsigned char ar_tip[4]; /* target IP address */
|
unsigned char ar_tip[4]; /* target IP address */
|
||||||
};
|
};
|
||||||
|
|
||||||
struct TransportHeaderT {
|
struct bcm_transport_header {
|
||||||
union {
|
union {
|
||||||
struct udphdr uhdr;
|
struct udphdr uhdr;
|
||||||
struct tcphdr thdr;
|
struct tcphdr thdr;
|
||||||
};
|
};
|
||||||
} __packed;
|
} __packed;
|
||||||
typedef struct TransportHeaderT xporthdr;
|
|
||||||
|
|
||||||
enum bcm_ip_frame_type {
|
enum bcm_ip_frame_type {
|
||||||
eNonIPPacket,
|
eNonIPPacket,
|
||||||
|
@ -208,12 +208,12 @@ static USHORT IpVersion4(struct bcm_mini_adapter *Adapter,
|
|||||||
struct iphdr *iphd,
|
struct iphdr *iphd,
|
||||||
struct bcm_classifier_rule *pstClassifierRule)
|
struct bcm_classifier_rule *pstClassifierRule)
|
||||||
{
|
{
|
||||||
xporthdr *xprt_hdr=NULL;
|
struct bcm_transport_header *xprt_hdr = NULL;
|
||||||
BOOLEAN bClassificationSucceed=FALSE;
|
BOOLEAN bClassificationSucceed=FALSE;
|
||||||
|
|
||||||
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "========>");
|
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "========>");
|
||||||
|
|
||||||
xprt_hdr=(xporthdr *)((PUCHAR)iphd + sizeof(struct iphdr));
|
xprt_hdr=(struct bcm_transport_header *)((PUCHAR)iphd + sizeof(struct iphdr));
|
||||||
|
|
||||||
do {
|
do {
|
||||||
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "Trying to see Direction = %d %d",
|
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "Trying to see Direction = %d %d",
|
||||||
|
Loading…
Reference in New Issue
Block a user