Changeset View
Changeset View
Standalone View
Standalone View
sbin/pfctl/pfctl_optimize.c
Show All 27 Lines | |||||
#include <netinet/in.h> | #include <netinet/in.h> | ||||
#include <arpa/inet.h> | #include <arpa/inet.h> | ||||
#include <assert.h> | #include <assert.h> | ||||
#include <ctype.h> | #include <ctype.h> | ||||
#include <err.h> | #include <err.h> | ||||
#include <errno.h> | #include <errno.h> | ||||
#include <libpfctl.h> | |||||
#include <stddef.h> | #include <stddef.h> | ||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <stdlib.h> | #include <stdlib.h> | ||||
#include <string.h> | #include <string.h> | ||||
#include "pfctl_ioctl.h" | |||||
#include "pfctl_parser.h" | #include "pfctl_parser.h" | ||||
#include "pfctl.h" | #include "pfctl.h" | ||||
/* The size at which a table becomes faster than individual rules */ | /* The size at which a table becomes faster than individual rules */ | ||||
#define TABLE_THRESHOLD 6 | #define TABLE_THRESHOLD 6 | ||||
/* #define OPT_DEBUG 1 */ | /* #define OPT_DEBUG 1 */ | ||||
▲ Show 20 Lines • Show All 1,620 Lines • Show Last 20 Lines |