Changeset View
Changeset View
Standalone View
Standalone View
sbin/pfctl/pfctl_altq.c
Show All 16 Lines | |||||
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||||
*/ | */ | ||||
#include <sys/cdefs.h> | #include <sys/cdefs.h> | ||||
__FBSDID("$FreeBSD$"); | __FBSDID("$FreeBSD$"); | ||||
#define PFIOC_USE_LATEST | #define PFIOC_USE_LATEST | ||||
markj: bitset.9 should be updated to document this flag. | |||||
#include <sys/types.h> | #include <sys/types.h> | ||||
#include <sys/bitset.h> | #include <sys/bitset.h> | ||||
#include <sys/ioctl.h> | #include <sys/ioctl.h> | ||||
#include <sys/socket.h> | #include <sys/socket.h> | ||||
#include <net/if.h> | #include <net/if.h> | ||||
#include <netinet/in.h> | #include <netinet/in.h> | ||||
#include <net/pfvar.h> | #include <net/pfvar.h> | ||||
Show All 16 Lines | |||||
#include <net/altq/altq_hfsc.h> | #include <net/altq/altq_hfsc.h> | ||||
#include <net/altq/altq_fairq.h> | #include <net/altq/altq_fairq.h> | ||||
#include "pfctl_parser.h" | #include "pfctl_parser.h" | ||||
#include "pfctl.h" | #include "pfctl.h" | ||||
#define is_sc_null(sc) (((sc) == NULL) || ((sc)->m1 == 0 && (sc)->m2 == 0)) | #define is_sc_null(sc) (((sc) == NULL) || ((sc)->m1 == 0 && (sc)->m2 == 0)) | ||||
#define BIT_SET __BIT_SET | |||||
#define BIT_ISSET __BIT_ISSET | |||||
static STAILQ_HEAD(interfaces, pfctl_altq) interfaces = STAILQ_HEAD_INITIALIZER(interfaces); | static STAILQ_HEAD(interfaces, pfctl_altq) interfaces = STAILQ_HEAD_INITIALIZER(interfaces); | ||||
static struct hsearch_data queue_map; | static struct hsearch_data queue_map; | ||||
static struct hsearch_data if_map; | static struct hsearch_data if_map; | ||||
static struct hsearch_data qid_map; | static struct hsearch_data qid_map; | ||||
static struct pfctl_altq *pfaltq_lookup(char *ifname); | static struct pfctl_altq *pfaltq_lookup(char *ifname); | ||||
static struct pfctl_altq *qname_to_pfaltq(const char *, const char *); | static struct pfctl_altq *qname_to_pfaltq(const char *, const char *); | ||||
static u_int32_t qname_to_qid(char *); | static u_int32_t qname_to_qid(char *); | ||||
▲ Show 20 Lines • Show All 1,373 Lines • Show Last 20 Lines |
bitset.9 should be updated to document this flag.