I don't know C or coding in general to give you what you need, but here's what
I THINK you are asking for...
#ifdef ENABLE_FC
/* FC Session Information */
typedef struct fcSession {
u_short magic;
u_short lunMax; /* max LUN accessed by this sesssion */
HostTraffic *initiator;
FcAddress initiatorAddr; /* initiator FC address */
HostTraffic *remotePeer;
FcAddress remotePeerAddr; /* remote peer FC address */
int deviceId;
struct timeval firstSeen; /* time when the session has been initiated
*/
struct timeval lastSeen; /* time when the session has been closed
*/
u_long pktSent, pktRcvd;
TrafficCounter bytesSent, bytesRcvd;
TrafficCounter numScsiRdCmd, numScsiWrCmd, numScsiOtCmd;
TrafficCounter fcpBytesSent, fcpBytesRcvd;
TrafficCounter ficonRdBytes, ficonWrBytes, ficonOtBytes;
TrafficCounter ipfcBytesSent, ipfcBytesRcvd;
TrafficCounter fcElsBytesSent, fcElsBytesRcvd;
TrafficCounter fcDnsBytesSent, fcDnsBytesRcvd;
TrafficCounter fcSwilsBytesSent, fcSwilsBytesRcvd;
TrafficCounter otherBytesSent, otherBytesRcvd;
TrafficCounter unknownLunBytesSent, unknownLunBytesRcvd;
TrafficCounter bytesFragmentedSent; /* FC Fragments
*/
TrafficCounter bytesFragmentedRcvd; /* FC Fragments
*/
TrafficCounter acksSent, acksRcvd; /* Num of ACK1 frames; Class F/2
*/
TrafficCounter class2BytesSent, class2BytesRcvd;
TrafficCounter class3BytesSent, class3BytesRcvd;
u_char lastRctlRcvd, lastRctlSent;
u_char lastTypeRcvd, lastTypeSent;
u_short lastOxidSent, lastOxidRcvd;
u_short lastScsiOxid, lastElsOxid, lastSwilsOxid, lastLun;
u_char lastScsiCmd, lastElsCmd, lastSwilsCmd;
u_char sessionState; /* actual session state
*/
ScsiLunTrafficInfo *activeLuns[MAX_LUNS_SUPPORTED];
struct fcSession *next;
} FCSession;
________________________________
From: [email protected]
[mailto:[email protected]] On Behalf Of Ricardo Cuevas Camarena
Sent: Friday, May 27, 2011 3:19 PM
To: [email protected]
Subject: Re: [Ntop] 4.0.3 make error
Show us more lines.
Including the whole struct block
Sorry by my poor english
From: [email protected]
[mailto:[email protected]] On Behalf Of Gary Gatten
Sent: Friday, May 27, 2011 3:12 PM
To: '[email protected]'
Subject: Re: [Ntop] 4.0.3 make error
Line 2485 is below and starts with "FCSession". If I knew C I could fix this
easy, but I'll keep hacking my way through. I COULD undef
"PARM_USE_SESSIONS_CACHE", that's probably why no one else has come across
this prob yet...
Any ideas would be great.
#ifdef PARM_USE_SESSIONS_CACHE
IPSession *sessionsCache[MAX_SESSIONS_CACHE_LEN];
FCSession *fcSessionsCache[MAX_SESSIONS_CACHE_LEN];
u_short sessionsCacheLen, sessionsCacheLenMax;
int sessionsCacheReused;
#endif
________________________________
From: Gary Gatten
Sent: Friday, May 27, 2011 2:20 PM
To: '[email protected]'
Subject: 4.0.3 make error
Anyone seen this before:
globals-structtypes.h:2485: error: expected specifier-qualifier-list before
'FCSession'
"This email is intended to be reviewed by only the intended recipient and may
contain information that is privileged and/or confidential. If you are not the
intended recipient, you are hereby notified that any review, use,
dissemination, disclosure or copying of this email and its attachments, if any,
is strictly prohibited. If you have received this email in error, please
immediately notify the sender by return email and delete this email from your
system."
<font size="1">
<div style='border:none;border-bottom:double windowtext 2.25pt;padding:0in 0in
1.0pt 0in'>
</div>
"This email is intended to be reviewed by only the intended recipient
and may contain information that is privileged and/or confidential.
If you are not the intended recipient, you are hereby notified that
any review, use, dissemination, disclosure or copying of this email
and its attachments, if any, is strictly prohibited. If you have
received this email in error, please immediately notify the sender by
return email and delete this email from your system."
</font>
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop