diff options
author | Marcelo Araujo <araujo@FreeBSD.org> | 2014-06-22 14:42:27 +0000 |
---|---|---|
committer | Marcelo Araujo <araujo@FreeBSD.org> | 2014-06-22 14:42:27 +0000 |
commit | e2b85137850d975ead30dbf6e644413f97165663 (patch) | |
tree | 0ea19fe682e8bb2b80b027176ef04c66af14e02e /sysutils/pfstat/files | |
parent | fd5fea269e2bbb07b3d4cbb684b8b9e3906a2739 (diff) |
Notes
Diffstat (limited to 'sysutils/pfstat/files')
-rw-r--r-- | sysutils/pfstat/files/pre41-patch-pf.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/sysutils/pfstat/files/pre41-patch-pf.c b/sysutils/pfstat/files/pre41-patch-pf.c deleted file mode 100644 index a77a306530a5..000000000000 --- a/sysutils/pfstat/files/pre41-patch-pf.c +++ /dev/null @@ -1,31 +0,0 @@ ---- pf.c.orig Thu May 11 23:41:07 2006 -+++ pf.c Mon Dec 11 21:08:31 2006 -@@ -144,23 +142,24 @@ - query_ifaces(int fd, void (*cb)(int, const char *, int, double)) - { - struct pfioc_iface io; -- struct pfi_kif ifs[256]; -+ struct pfi_if ifs[256]; - int i, j; - - memset(&io, 0, sizeof(io)); - io.pfiio_buffer = ifs; - io.pfiio_esize = sizeof(ifs[0]); - io.pfiio_size = sizeof(ifs) / sizeof(ifs[0]); -+ io.pfiio_flags = PFI_FLAG_ALLMASK; - if (ioctl(fd, DIOCIGETIFACES, &io)) { - fprintf(stderr, "ioctl: DIOCIGETIFACES: %s\n", strerror(errno)); - return (1); - } - for (i = 0; i < io.pfiio_size; ++i) - for (j = 0; j < 16; ++j) -- (*cb)(COL_TYPE_IFACE, ifs[i].pfik_name, -+ (*cb)(COL_TYPE_IFACE, ifs[i].pfif_name, - j, j & 4 ? -- ifs[i].pfik_packets[j&1?0:1][j&2?0:1][j&8?0:1] : -- ifs[i].pfik_bytes[j&1?0:1][j&2?0:1][j&8?0:1]); -+ ifs[i].pfif_packets[j&1?0:1][j&2?0:1][j&8?0:1] : -+ ifs[i].pfif_bytes[j&1?0:1][j&2?0:1][j&8?0:1]); - /* bytes/packets[af][dir][op] */ - return (0); - } |