1 /*- 2 * Test 0079: An empty filter program. 3 */ 4 5 /* BPF program */ 6 static struct bpf_insn pc[] = { 7 }; 8 9 /* Packet */ 10 static u_char pkt[] = { 11 0x00, 12 }; 13 14 /* Packet length seen on wire */ 15 static u_int wirelen = sizeof(pkt); 16 17 /* Packet length passed on buffer */ 18 static u_int buflen = sizeof(pkt); 19 20 /* Invalid instruction */ 21 static int invalid = 0; 22 23 /* Expected return value */ 24 static u_int expect = (u_int)-1; 25 26 /* Expected signal */ 27 static int expect_signal = 0; 28