mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 23:28:20 +00:00
The Great Embooleanating
A large number of functions had return values and/or arguments changed to use ``bool`` types instead of ``int``.
This commit is contained in:
parent
3c470ffe13
commit
fd5e15b116
145 changed files with 1288 additions and 1331 deletions
|
@ -4,14 +4,8 @@
|
|||
|
||||
#include <sys/types.h> // for u_char
|
||||
|
||||
struct ip;
|
||||
struct tcphdr;
|
||||
struct udphdr;
|
||||
struct icmp;
|
||||
|
||||
class IP_Hdr;
|
||||
class Val;
|
||||
class RecordType;
|
||||
class Func;
|
||||
|
||||
class Discarder {
|
||||
|
@ -19,9 +13,9 @@ public:
|
|||
Discarder();
|
||||
~Discarder();
|
||||
|
||||
int IsActive();
|
||||
bool IsActive();
|
||||
|
||||
int NextPacket(const IP_Hdr* ip, int len, int caplen);
|
||||
bool NextPacket(const IP_Hdr* ip, int len, int caplen);
|
||||
|
||||
protected:
|
||||
Val* BuildData(const u_char* data, int hdrlen, int len, int caplen);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue