/usr/lib/ocaml/pcap/pcap.mli is in libmlpcap-ocaml-dev 0.9-16build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | (* File generated from pcap.idl *)
type pcap_handle
and bpf_program
and pcap_dumper
and file_t
and timeval = {
tv_sec: int;
tv_usec: int;
}
and struct_2 = {
ts: timeval;
caplen: int;
len: int;
}
and pcap_pkthdr = struct_2
and struct_3 = {
ps_recv: int;
ps_drop: int;
ps_ifdrop: int;
}
and pcap_stat = struct_3
and struct_4 = {
name: string;
description: string;
flags: int;
}
and pcap_if = struct_4
and pcap_callback = string -> pcap_pkthdr -> string -> unit
external pcap_findalldevs : unit -> pcap_if array
="camlidl_pcap_pcap_findalldevs"
external pcap_list_datalinks: pcap_handle -> int * int array
="camlidl_pcap_pcap_list_datalinks"
external pcap_open_live : string -> int -> int -> int -> pcap_handle
= "camlidl_pcap_pcap_open_live"
external pcap_close : pcap_handle -> unit
= "camlidl_pcap_pcap_close"
external pcap_lookupdev : unit -> string
= "camlidl_pcap_pcap_lookupdev"
external pcap_lookupnet : string -> int * int * int
= "camlidl_pcap_pcap_lookupnet"
external pcap_loop : pcap_handle -> int -> pcap_callback -> string -> int
= "camlidl_pcap_pcap_loop"
external pcap_dispatch : pcap_handle -> int -> pcap_callback -> string -> int
= "camlidl_pcap_pcap_dispatch"
external pcap_open_dead : int -> int -> pcap_handle
= "camlidl_pcap_pcap_open_dead"
external pcap_open_offline : string -> pcap_handle
= "camlidl_pcap_pcap_open_offline"
external pcap_dump_open : pcap_handle -> string -> pcap_dumper
= "camlidl_pcap_pcap_dump_open"
external pcap_dump_direct : pcap_dumper -> pcap_pkthdr -> string -> unit
= "camlidl_pcap_pcap_dump_direct"
external pcap_dump_close : pcap_dumper -> unit
= "camlidl_pcap_pcap_dump_close"
external pcap_compile : pcap_handle -> string -> int -> int -> int * bpf_program
= "camlidl_pcap_pcap_compile"
external pcap_setfilter : pcap_handle -> bpf_program -> int
= "camlidl_pcap_pcap_setfilter"
external pcap_freecode : bpf_program -> unit
= "camlidl_pcap_pcap_freecode"
external pcap_setnonblock : pcap_handle -> int -> int
= "camlidl_pcap_pcap_setnonblock"
external pcap_getnonblock : pcap_handle -> int
= "camlidl_pcap_pcap_getnonblock"
external pcap_datalink : pcap_handle -> int
= "camlidl_pcap_pcap_datalink"
external pcap_snapshot : pcap_handle -> int
= "camlidl_pcap_pcap_snapshot"
external pcap_is_swapped : pcap_handle -> int
= "camlidl_pcap_pcap_is_swapped"
external pcap_major_version : pcap_handle -> int
= "camlidl_pcap_pcap_major_version"
external pcap_minor_version : pcap_handle -> int
= "camlidl_pcap_pcap_minor_version"
external pcap_stats : pcap_handle -> int * pcap_stat
= "camlidl_pcap_pcap_stats"
external pcap_file : pcap_handle -> file_t
= "camlidl_pcap_pcap_file"
external pcap_fileno : pcap_handle -> int
= "camlidl_pcap_pcap_fileno"
external pcap_perror : pcap_handle -> string -> unit
= "camlidl_pcap_pcap_perror"
external pcap_geterr : pcap_handle -> string
= "camlidl_pcap_pcap_geterr"
external pcap_strerror : int -> string
= "camlidl_pcap_pcap_strerror"
external pcap_set_datalink : pcap_handle -> int -> int
= "camlidl_pcap_pcap_set_datalink"
external pcap_datalink_name_to_val : string -> int
= "camlidl_pcap_pcap_datalink_name_to_val"
external pcap_datalink_val_to_name : int -> string
= "camlidl_pcap_pcap_datalink_val_to_name"
external pcap_datalink_val_to_description : int -> string
= "camlidl_pcap_pcap_datalink_val_to_description"
external pcap_dump_flush : pcap_dumper -> int
= "camlidl_pcap_pcap_dump_flush"
external pcap_breakloop : pcap_handle -> unit
= "camlidl_pcap_pcap_breakloop"
external pcap_get_selectable_fd : pcap_handle -> int
= "camlidl_pcap_pcap_get_selectable_fd"
external pcap_lib_version : unit -> string
= "camlidl_pcap_pcap_lib_version"
|