Mercurial > pub > dyncall > bindings
comparison R/rdyncall/inst/dynports/pcap.R @ 0:0cfcc391201f
initial from svn dyncall-1745
author | Daniel Adler |
---|---|
date | Thu, 19 Mar 2015 22:26:28 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:0cfcc391201f |
---|---|
1 | |
2 | |
3 dynbind( c("pcap","pcap.so.0.8") , " | |
4 pcap_activate(*<pcap>)i; | |
5 pcap_breakloop(*<pcap>)v; | |
6 pcap_can_set_rfmon(*<pcap>)i; | |
7 pcap_close(*<pcap>)v; | |
8 pcap_compile(*<pcap>*<bpf_program>*ciI)i; | |
9 pcap_compile_nopcap(ii*<bpf_program>*ciI)i; | |
10 pcap_create(*c*c)*<pcap>; | |
11 pcap_datalink(*<pcap>)i; | |
12 pcap_datalink_ext(*<pcap>)i; | |
13 pcap_datalink_name_to_val(*c)i; | |
14 pcap_datalink_val_to_description(i)*c; | |
15 pcap_datalink_val_to_name(i)*c; | |
16 pcap_dispatch(*<pcap>i*p*C)i; | |
17 pcap_dump(*C*<pcap_pkthdr>*C)v; | |
18 pcap_dump_close(*<pcap_dumper>)v; | |
19 pcap_dump_file(*<pcap_dumper>)*<__sFILE>; | |
20 pcap_dump_flush(*<pcap_dumper>)i; | |
21 pcap_dump_fopen(*<pcap>*<__sFILE>)*<pcap_dumper>; | |
22 pcap_dump_ftell(*<pcap_dumper>)j; | |
23 pcap_dump_open(*<pcap>*c)*<pcap_dumper>; | |
24 pcap_file(*<pcap>)*<__sFILE>; | |
25 pcap_fileno(*<pcap>)i; | |
26 pcap_findalldevs(**<pcap_if>*c)i; | |
27 pcap_fopen_offline(*<__sFILE>*c)*<pcap>; | |
28 pcap_fopen_offline_with_tstamp_precision(*<__sFILE>I*c)*<pcap>; | |
29 pcap_free_datalinks(*i)v; | |
30 pcap_free_tstamp_types(*i)v; | |
31 pcap_freealldevs(*<pcap_if>)v; | |
32 pcap_freecode(*<bpf_program>)v; | |
33 pcap_get_selectable_fd(*<pcap>)i; | |
34 pcap_get_tstamp_precision(*<pcap>)i; | |
35 pcap_geterr(*<pcap>)*c; | |
36 pcap_getnonblock(*<pcap>*c)i; | |
37 pcap_inject(*<pcap>*vJ)i; | |
38 pcap_is_swapped(*<pcap>)i; | |
39 pcap_lib_version()*c; | |
40 pcap_list_datalinks(*<pcap>**i)i; | |
41 pcap_list_tstamp_types(*<pcap>**i)i; | |
42 pcap_lookupdev(*c)*c; | |
43 pcap_lookupnet(*c*I*I*c)i; | |
44 pcap_loop(*<pcap>i*p*C)i; | |
45 pcap_major_version(*<pcap>)i; | |
46 pcap_minor_version(*<pcap>)i; | |
47 pcap_next(*<pcap>*<pcap_pkthdr>)*C; | |
48 pcap_next_ex(*<pcap>**<pcap_pkthdr>**C)i; | |
49 pcap_offline_filter(*<bpf_program>*<pcap_pkthdr>*C)i; | |
50 pcap_open_dead(ii)*<pcap>; | |
51 pcap_open_dead_with_tstamp_precision(iiI)*<pcap>; | |
52 pcap_open_live(*ciii*c)*<pcap>; | |
53 pcap_open_offline(*c*c)*<pcap>; | |
54 pcap_open_offline_with_tstamp_precision(*cI*c)*<pcap>; | |
55 pcap_perror(*<pcap>*c)v; | |
56 pcap_sendpacket(*<pcap>*Ci)i; | |
57 pcap_set_buffer_size(*<pcap>i)i; | |
58 pcap_set_datalink(*<pcap>i)i; | |
59 pcap_set_immediate_mode(*<pcap>i)i; | |
60 pcap_set_promisc(*<pcap>i)i; | |
61 pcap_set_rfmon(*<pcap>i)i; | |
62 pcap_set_snaplen(*<pcap>i)i; | |
63 pcap_set_timeout(*<pcap>i)i; | |
64 pcap_set_tstamp_precision(*<pcap>i)i; | |
65 pcap_set_tstamp_type(*<pcap>i)i; | |
66 pcap_setdirection(*<pcap>i)i; | |
67 pcap_setfilter(*<pcap>*<bpf_program>)i; | |
68 pcap_setnonblock(*<pcap>i*c)i; | |
69 pcap_snapshot(*<pcap>)i; | |
70 pcap_stats(*<pcap>*<pcap_stat>)i; | |
71 pcap_statustostr(i)*c; | |
72 pcap_strerror(i)*c; | |
73 pcap_tstamp_type_name_to_val(*c)i; | |
74 pcap_tstamp_type_val_to_description(i)*c; | |
75 pcap_tstamp_type_val_to_name(i)*c; | |
76 ") | |
77 parseStructInfos(" | |
78 bpf_insn{SCCI}code jt jf k ; | |
79 bpf_program{I*<bpf_insn>}bf_len bf_insns ; | |
80 pcap_addr{*<pcap_addr>*<sockaddr>*<sockaddr>*<sockaddr>*<sockaddr>}next addr netmask broadaddr dstaddr ; | |
81 pcap_dumper{}; | |
82 pcap_file_header{ISSiIII}magic version_major version_minor thiszone sigfigs snaplen linktype ; | |
83 pcap_if{*<pcap_if>*c*c*<pcap_addr>I}next name description addresses flags ; | |
84 pcap_pkthdr{<timeval>II}ts caplen len ; | |
85 pcap_stat{III}ps_recv ps_drop ps_ifdrop ; | |
86 pcap{}; | |
87 sockaddr{}; | |
88 timeval{ji}tv_sec tv_usec ; | |
89 ") | |
90 PCAP_D_IN=1; | |
91 PCAP_D_INOUT=0; | |
92 PCAP_D_OUT=2; | |
93 PCAP_ERRBUF_SIZE=256 | |
94 PCAP_ERROR=-1 | |
95 PCAP_ERROR_ACTIVATED=-4 | |
96 PCAP_ERROR_BREAK=-2 | |
97 PCAP_ERROR_CANTSET_TSTAMP_TYPE=-10 | |
98 PCAP_ERROR_IFACE_NOT_UP=-9 | |
99 PCAP_ERROR_NOT_ACTIVATED=-3 | |
100 PCAP_ERROR_NOT_RFMON=-7 | |
101 PCAP_ERROR_NO_SUCH_DEVICE=-5 | |
102 PCAP_ERROR_PERM_DENIED=-8 | |
103 PCAP_ERROR_PROMISC_PERM_DENIED=-11 | |
104 PCAP_ERROR_RFMON_NOTSUP=-6 | |
105 PCAP_ERROR_TSTAMP_PRECISION_NOTSUP=-12 | |
106 PCAP_IF_LOOPBACK=0x00000001 | |
107 PCAP_NETMASK_UNKNOWN=0xffffffff | |
108 PCAP_TSTAMP_ADAPTER=3 | |
109 PCAP_TSTAMP_ADAPTER_UNSYNCED=4 | |
110 PCAP_TSTAMP_HOST=0 | |
111 PCAP_TSTAMP_HOST_HIPREC=2 | |
112 PCAP_TSTAMP_HOST_LOWPREC=1 | |
113 PCAP_TSTAMP_PRECISION_MICRO=0 | |
114 PCAP_TSTAMP_PRECISION_NANO=1 | |
115 PCAP_VERSION_MAJOR=2 | |
116 PCAP_VERSION_MINOR=4 | |
117 PCAP_WARNING=1 | |
118 PCAP_WARNING_PROMISC_NOTSUP=2 | |
119 PCAP_WARNING_TSTAMP_TYPE_NOTSUP=3 | |
120 |