if_pflog.h (130613) | if_pflog.h (145836) |
---|---|
1/* $FreeBSD: head/sys/contrib/pf/net/if_pflog.h 130613 2004-06-16 23:24:02Z mlaier $ */ 2/* $OpenBSD: if_pflog.h,v 1.10 2004/03/19 04:52:04 frantzen Exp $ */ | 1/* $FreeBSD: head/sys/contrib/pf/net/if_pflog.h 145836 2005-05-03 16:43:32Z mlaier $ */ 2/* $OpenBSD: if_pflog.h,v 1.11 2004/05/19 17:50:51 dhartmei Exp $ */ 3 |
3/* 4 * Copyright 2001 Niels Provos <provos@citi.umich.edu> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright --- 19 unchanged lines hidden (view full) --- 30 31struct pflog_softc { 32 struct ifnet sc_if; /* the interface */ 33#ifdef __FreeBSD__ 34 LIST_ENTRY(pflog_softc) sc_next; 35#endif 36}; 37 | 4/* 5 * Copyright 2001 Niels Provos <provos@citi.umich.edu> 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: 11 * 1. Redistributions of source code must retain the above copyright --- 19 unchanged lines hidden (view full) --- 31 32struct pflog_softc { 33 struct ifnet sc_if; /* the interface */ 34#ifdef __FreeBSD__ 35 LIST_ENTRY(pflog_softc) sc_next; 36#endif 37}; 38 |
38/* XXX keep in sync with pfvar.h */ 39#ifndef PF_RULESET_NAME_SIZE 40#define PF_RULESET_NAME_SIZE 16 41#endif | 39#define PFLOG_RULESET_NAME_SIZE 16 |
42 43struct pfloghdr { 44 u_int8_t length; 45 sa_family_t af; 46 u_int8_t action; 47 u_int8_t reason; 48 char ifname[IFNAMSIZ]; | 40 41struct pfloghdr { 42 u_int8_t length; 43 sa_family_t af; 44 u_int8_t action; 45 u_int8_t reason; 46 char ifname[IFNAMSIZ]; |
49 char ruleset[PF_RULESET_NAME_SIZE]; | 47 char ruleset[PFLOG_RULESET_NAME_SIZE]; |
50 u_int32_t rulenr; 51 u_int32_t subrulenr; 52 u_int8_t dir; 53 u_int8_t pad[3]; 54}; 55 56#define PFLOG_HDRLEN sizeof(struct pfloghdr) 57/* minus pad, also used as a signature */ --- 22 unchanged lines hidden --- | 48 u_int32_t rulenr; 49 u_int32_t subrulenr; 50 u_int8_t dir; 51 u_int8_t pad[3]; 52}; 53 54#define PFLOG_HDRLEN sizeof(struct pfloghdr) 55/* minus pad, also used as a signature */ --- 22 unchanged lines hidden --- |