FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
node_pcap/pcap_session.h at master · gitqueue/node_pcap · GitHub
gitqueue
/
node_pcap
Public
forked from
node-pcap/node_pcap
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
node_pcap
/
pcap_session.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
39 lines (32 loc) · 1.32 KB
Breadcrumbs
node_pcap
/
pcap_session.h
Copy path
File metadata and controls
39 lines (32 loc) · 1.32 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#
ifndef
PCAP_SESSION_H
#
define
PCAP_SESSION_H
#
include
<
nan.h
>
#
include
<
pcap/pcap.h
>
class
PcapSession
:
public
Nan
::ObjectWrap {
public:
static
void
Init
(v8::Handle<v8::Object> exports);
private:
PcapSession
();
~PcapSession
();
static
void
New
(
const
Nan::FunctionCallbackInfo<v8::Value>& info);
static
void
Open
(
bool
live,
const
Nan::FunctionCallbackInfo<v8::Value>& info);
static
void
OpenLive
(
const
Nan::FunctionCallbackInfo<v8::Value>& info);
static
void
OpenOffline
(
const
Nan::FunctionCallbackInfo<v8::Value>& info);
static
void
Dispatch
(
const
Nan::FunctionCallbackInfo<v8::Value>& info);
static
void
Fileno
(
const
Nan::FunctionCallbackInfo<v8::Value>& info);
static
void
Close
(
const
Nan::FunctionCallbackInfo<v8::Value>& info);
static
void
Stats
(
const
Nan::FunctionCallbackInfo<v8::Value>& info);
static
void
Inject
(
const
Nan::FunctionCallbackInfo<v8::Value>& info);
static
void
PacketReady
(u_char *callback_p,
const
struct
pcap_pkthdr
* pkthdr,
const
u_char* packet);
Nan::Persistent<v8::Function> packet_ready_cb;
static
Nan::Persistent<v8::Function> constructor;
struct
bpf_program
fp;
bpf_u_int32 mask;
bpf_u_int32 net;
pcap_t
*pcap_handle;
pcap_dumper_t
*pcap_dump_handle;
char
*buffer_data;
size_t
buffer_length;
char
*header_data;
};
#
endif
Back
|
FazBrowse Home
|
New Git URL