module Pcap: sig end
type
pcap_handle
type
bpf_program
type
pcap_dumper
type
file_t
type
dlink =
| |
DLT_NULL |
| |
DLT_EN10MB |
| |
DLT_EN3MB |
| |
DLT_AX25 |
| |
DLT_PRONET |
| |
DLT_CHAOS |
| |
DLT_IEEE802 |
| |
DLT_ARCNET |
| |
DLT_SLIP |
| |
DLT_PPP |
| |
DLT_FDDI |
type
timeval = {
|
tv_sec : int ; |
|
tv_usec : int ; |
}
type
struct_3 = {
|
ts : timeval ; |
|
caplen : int ; |
|
len : int ; |
}
type
pcap_pkthdr = struct_3
type
struct_4 = {
|
ps_recv : int ; |
|
ps_drop : int ; |
|
ps_ifdrop : int ; |
}
type
pcap_stat = struct_4
type
struct_5 = {
|
name : string ; |
|
description : string ; |
|
flags : int ; |
}
type
pcap_if = struct_5
type
pcap_callback = string -> pcap_pkthdr -> string -> unit
val pcap_findalldevs : unit -> pcap_if array
val pcap_open_live : string -> int -> int -> int -> pcap_handle
val pcap_close : pcap_handle -> unit
val pcap_lookupdev : unit -> string
val pcap_lookupnet : string -> int * int * int
val pcap_loop : pcap_handle -> int -> pcap_callback -> string -> int
val pcap_dispatch : pcap_handle -> int -> pcap_callback -> string -> int
val pcap_open_dead : int -> int -> pcap_handle
val pcap_open_offline : string -> pcap_handle
val pcap_dump_open : pcap_handle -> string -> pcap_dumper
val pcap_dump_direct : pcap_dumper -> pcap_pkthdr -> string -> unit
val pcap_dump_close : pcap_dumper -> unit
val pcap_compile : pcap_handle -> string -> int -> int -> int * bpf_program
val pcap_setfilter : pcap_handle -> bpf_program -> int
val pcap_freecode : bpf_program -> unit
val pcap_setnonblock : pcap_handle -> int -> int
val pcap_getnonblock : pcap_handle -> int
val pcap_datalink : pcap_handle -> dlink
val pcap_snapshot : pcap_handle -> int
val pcap_is_swapped : pcap_handle -> int
val pcap_major_version : pcap_handle -> int
val pcap_minor_version : pcap_handle -> int
val pcap_stats : pcap_handle -> int * pcap_stat
val pcap_file : pcap_handle -> file_t
val pcap_fileno : pcap_handle -> int
val pcap_perror : pcap_handle -> string -> unit
val pcap_geterr : pcap_handle -> string
val pcap_strerror : int -> string