File tree 1 file changed +36
-0
lines changed
1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -272,6 +272,42 @@ s! {
272
272
pub piod_len: :: size_t,
273
273
}
274
274
275
+ // bpf.h
276
+
277
+ pub struct bpf_program {
278
+ pub bf_len: :: c_uint,
279
+ pub bf_insns: * mut bpf_insn,
280
+ }
281
+
282
+ pub struct bpf_stat {
283
+ pub bs_recv: :: c_uint,
284
+ pub bs_drop: :: c_uint,
285
+ }
286
+
287
+ pub struct bpf_version {
288
+ pub bv_major: :: c_ushort,
289
+ pub bv_minor: :: c_ushort,
290
+ }
291
+
292
+ pub struct bpf_hdr {
293
+ pub bh_tstamp: :: timeval,
294
+ pub bh_caplen: u32 ,
295
+ pub bh_datalen: u32 ,
296
+ pub bh_hdrlen: :: c_ushort,
297
+ }
298
+
299
+ pub struct bpf_insn {
300
+ pub code: :: c_ushort,
301
+ pub jt: :: c_uchar,
302
+ pub jf: :: c_uchar,
303
+ pub k: u32 ,
304
+ }
305
+
306
+ pub struct bpf_dltlist {
307
+ bfl_len: :: c_uint,
308
+ bfl_list: * mut :: c_uint,
309
+ }
310
+
275
311
// elf.h
276
312
277
313
pub struct Elf32_Phdr {
You can’t perform that action at this time.
0 commit comments