C
cpptutor2000
Could someone please help me? I have the following C struct.
typedef struct
_FIREWALL_RULE_INFO
{
ULONG Precedence;
BOOL bEnabled;
BOOL bLoggingEnabled;
BOOL bAllowFragments;
BOOL bAllowInbound; /* only used
if 'SohoFirewallModel' is enabled */
BOOL bAllowOutbound; /* only used
if 'SohoFirewallModel' is enabled */
ULONG SessionTimeout; /* override
the session timeout value, in minutes */
ULONG Action;
BOOL bAnyService;
char
ServiceName[BOND_SERVICE_NAME_SIZE ];
BOOL bSrcAllIpAddrs;
BOND_ADDRESS_POOL SrcIpAddrPool;
BOOL bDstAllIpAddrs;
BOND_ADDRESS_POOL DstIpAddrPool;
BOOL bBwmEnabled;
ULONG BwmType;
ULONG GuaBandwidthInKbps;
ULONG MaxBandwidthInKbps;
ULONG Priority;
BOND_ADDRESS_GROUP SrcIpAddrGroup; /* this field
is for internal use only */
BOND_ADDRESS_GROUP DstIpAddrGroup; /* this field
is for internal use only */
}
FIREWALL_RULE_INFO, *PFIREWALL_RULE_INFO;
I get the following compile time error message, while compiling a
function that clones a FIREWALL_RULE_INFO struct.
request for member `MaxBandwidthInKbps' in something not a structure
or union
Could someone please point out what I might be doing wrong? Thanks in
advance for your help.
typedef struct
_FIREWALL_RULE_INFO
{
ULONG Precedence;
BOOL bEnabled;
BOOL bLoggingEnabled;
BOOL bAllowFragments;
BOOL bAllowInbound; /* only used
if 'SohoFirewallModel' is enabled */
BOOL bAllowOutbound; /* only used
if 'SohoFirewallModel' is enabled */
ULONG SessionTimeout; /* override
the session timeout value, in minutes */
ULONG Action;
BOOL bAnyService;
char
ServiceName[BOND_SERVICE_NAME_SIZE ];
BOOL bSrcAllIpAddrs;
BOND_ADDRESS_POOL SrcIpAddrPool;
BOOL bDstAllIpAddrs;
BOND_ADDRESS_POOL DstIpAddrPool;
BOOL bBwmEnabled;
ULONG BwmType;
ULONG GuaBandwidthInKbps;
ULONG MaxBandwidthInKbps;
ULONG Priority;
BOND_ADDRESS_GROUP SrcIpAddrGroup; /* this field
is for internal use only */
BOND_ADDRESS_GROUP DstIpAddrGroup; /* this field
is for internal use only */
}
FIREWALL_RULE_INFO, *PFIREWALL_RULE_INFO;
I get the following compile time error message, while compiling a
function that clones a FIREWALL_RULE_INFO struct.
request for member `MaxBandwidthInKbps' in something not a structure
or union
Could someone please point out what I might be doing wrong? Thanks in
advance for your help.