| @@ -1,35 +1,37 @@ | | | @@ -1,35 +1,37 @@ |
1 | /* $NetBSD: npftest.c,v 1.18 2015/06/16 23:04:14 christos Exp $ */ | | 1 | /* $NetBSD: npftest.c,v 1.19 2016/01/25 12:24:41 pooka Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * NPF testing framework. | | 4 | * NPF testing framework. |
5 | * | | 5 | * |
6 | * Public Domain. | | 6 | * Public Domain. |
7 | */ | | 7 | */ |
8 | | | 8 | |
9 | #include <stdio.h> | | 9 | #include <stdio.h> |
10 | #include <stdlib.h> | | 10 | #include <stdlib.h> |
11 | #include <stdbool.h> | | 11 | #include <stdbool.h> |
12 | #include <string.h> | | 12 | #include <string.h> |
13 | #include <unistd.h> | | 13 | #include <unistd.h> |
14 | #include <assert.h> | | 14 | #include <assert.h> |
15 | #include <fcntl.h> | | 15 | #include <fcntl.h> |
16 | #include <err.h> | | 16 | #include <err.h> |
17 | | | 17 | |
18 | #include <sys/mman.h> | | 18 | #include <sys/mman.h> |
19 | #include <sys/ioctl.h> | | 19 | #include <sys/ioctl.h> |
20 | #include <net/if.h> | | 20 | #include <net/if.h> |
21 | #include <arpa/inet.h> | | 21 | #include <arpa/inet.h> |
22 | | | 22 | |
| | | 23 | #include <prop/proplib.h> |
| | | 24 | |
23 | #include <rump/rump.h> | | 25 | #include <rump/rump.h> |
24 | #include <rump/rump_syscalls.h> | | 26 | #include <rump/rump_syscalls.h> |
25 | | | 27 | |
26 | #include <cdbw.h> | | 28 | #include <cdbw.h> |
27 | | | 29 | |
28 | #include "npftest.h" | | 30 | #include "npftest.h" |
29 | | | 31 | |
30 | static bool verbose, quiet; | | 32 | static bool verbose, quiet; |
31 | | | 33 | |
32 | __dead static void | | 34 | __dead static void |
33 | usage(void) | | 35 | usage(void) |
34 | { | | 36 | { |
35 | printf("usage:\n" | | 37 | printf("usage:\n" |