Changeset View
Changeset View
Standalone View
Standalone View
sys/net/if_pfsync.h
Context not available. | |||||
#include <net/if.h> | #include <net/if.h> | ||||
#include <net/pfvar.h> | #include <net/pfvar.h> | ||||
#include <netinet/in.h> | |||||
#include <netpfil/pf/pf.h> | #include <netpfil/pf/pf.h> | ||||
#define PFSYNC_VERSION 5 | #define PFSYNC_VERSION 5 | ||||
Context not available. | |||||
u_int64_t pfsyncs_oacts[PFSYNC_ACT_MAX]; | u_int64_t pfsyncs_oacts[PFSYNC_ACT_MAX]; | ||||
}; | }; | ||||
union pfsync_sockaddr { | |||||
struct sockaddr sa; | |||||
struct sockaddr_in in4; | |||||
}; | |||||
/* | /* | ||||
* Configuration structure for SIOCSETPFSYNC SIOCGETPFSYNC | * Configuration structure for SIOCSETPFSYNC SIOCGETPFSYNC | ||||
*/ | */ | ||||
struct pfsyncreq { | struct pfsyncreq { | ||||
char pfsyncr_syncdev[IFNAMSIZ]; | char pfsyncr_syncdev[IFNAMSIZ]; | ||||
struct in_addr pfsyncr_syncpeer; | union pfsync_sockaddr pfsyncr_syncpeer; | ||||
kp: It looks like we're (going to be) changing the size of struct pfsyncreq here. Have you thought… | |||||
email_luiz.eng.brAuthorUnsubmitted Not Done Inline ActionsI did not. Not on purpose, but because I made the change without being aware of the implications. Should we resort to having one pfsyncreq struct per AF? We would then need to find another way to figure out the AF being used, as the current code relies on the sockaddr in pfsync_sockaddr. email_luiz.eng.br: I did not. Not on purpose, but because I made the change without being aware of the… | |||||
int pfsyncr_maxupdates; | int pfsyncr_maxupdates; | ||||
#define PFSYNCF_OK 0x00000001 | #define PFSYNCF_OK 0x00000001 | ||||
#define PFSYNCF_DEFER 0x00000002 | #define PFSYNCF_DEFER 0x00000002 | ||||
int pfsyncr_defer; | int pfsyncr_defer; | ||||
}; | }; | ||||
#define SIOCSETPFSYNC _IOW('i', 247, struct ifreq) | #define SIOCSETPFSYNC _IOW('i', 247, struct ifreq) | ||||
Context not available. |
It looks like we're (going to be) changing the size of struct pfsyncreq here. Have you thought about how to cope with the ABI breakage that entails?