pfctl_optimize.c (0d6c8174ef2f3d8d6fb02ec97753a0937796a5c6) | pfctl_optimize.c (0d71f9f36e6c1849fdaf6c1edc1178be07357034) |
---|---|
1/* $OpenBSD: pfctl_optimize.c,v 1.17 2008/05/06 03:45:21 mpf Exp $ */ 2 3/* 4 * Copyright (c) 2004 Mike Frantzen <frantzen@openbsd.org> 5 * 6 * Permission to use, copy, modify, and distribute this software for any 7 * purpose with or without fee is hereby granted, provided that the above 8 * copyright notice and this permission notice appear in all copies. --- 19 unchanged lines hidden (view full) --- 28 29#include <netinet/in.h> 30#include <arpa/inet.h> 31 32#include <assert.h> 33#include <ctype.h> 34#include <err.h> 35#include <errno.h> | 1/* $OpenBSD: pfctl_optimize.c,v 1.17 2008/05/06 03:45:21 mpf Exp $ */ 2 3/* 4 * Copyright (c) 2004 Mike Frantzen <frantzen@openbsd.org> 5 * 6 * Permission to use, copy, modify, and distribute this software for any 7 * purpose with or without fee is hereby granted, provided that the above 8 * copyright notice and this permission notice appear in all copies. --- 19 unchanged lines hidden (view full) --- 28 29#include <netinet/in.h> 30#include <arpa/inet.h> 31 32#include <assert.h> 33#include <ctype.h> 34#include <err.h> 35#include <errno.h> |
36#include <libpfctl.h> |
|
36#include <stddef.h> 37#include <stdio.h> 38#include <stdlib.h> 39#include <string.h> 40 | 37#include <stddef.h> 38#include <stdio.h> 39#include <stdlib.h> 40#include <string.h> 41 |
41#include "pfctl_ioctl.h" | |
42#include "pfctl_parser.h" 43#include "pfctl.h" 44 45/* The size at which a table becomes faster than individual rules */ 46#define TABLE_THRESHOLD 6 47 48 49/* #define OPT_DEBUG 1 */ --- 1620 unchanged lines hidden --- | 42#include "pfctl_parser.h" 43#include "pfctl.h" 44 45/* The size at which a table becomes faster than individual rules */ 46#define TABLE_THRESHOLD 6 47 48 49/* #define OPT_DEBUG 1 */ --- 1620 unchanged lines hidden --- |