libalias: Stats are unsigned
Stats counters are used as unsigned valued (i.e. printf("%u")) but are defined as signed int. This causes trouble later, so fix it early. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D30587
This commit is contained in:
parent
ed0a582d88
commit
3fd20a79e7
@ -97,14 +97,14 @@ struct libalias {
|
||||
/* HouseKeeping */
|
||||
TAILQ_HEAD (, alias_link) checkExpire;
|
||||
/* Link statistics */
|
||||
int icmpLinkCount;
|
||||
int udpLinkCount;
|
||||
int tcpLinkCount;
|
||||
int pptpLinkCount;
|
||||
int protoLinkCount;
|
||||
int fragmentIdLinkCount;
|
||||
int fragmentPtrLinkCount;
|
||||
int sockCount;
|
||||
unsigned int icmpLinkCount;
|
||||
unsigned int udpLinkCount;
|
||||
unsigned int tcpLinkCount;
|
||||
unsigned int pptpLinkCount;
|
||||
unsigned int protoLinkCount;
|
||||
unsigned int fragmentIdLinkCount;
|
||||
unsigned int fragmentPtrLinkCount;
|
||||
unsigned int sockCount;
|
||||
/* System time in seconds for current packet */
|
||||
int timeStamp;
|
||||
/* If equal to zero, DeleteLink()
|
||||
|
Loading…
Reference in New Issue
Block a user