Changeset View
Changeset View
Standalone View
Standalone View
sys/netpfil/pf/pf.h
Show First 20 Lines • Show All 181 Lines • ▼ Show 20 Lines | |||||
#define SCNT_SRC_NODE_SEARCH 0 | #define SCNT_SRC_NODE_SEARCH 0 | ||||
#define SCNT_SRC_NODE_INSERT 1 | #define SCNT_SRC_NODE_INSERT 1 | ||||
#define SCNT_SRC_NODE_REMOVALS 2 | #define SCNT_SRC_NODE_REMOVALS 2 | ||||
#define SCNT_MAX 3 | #define SCNT_MAX 3 | ||||
#define PF_TABLE_NAME_SIZE 32 | #define PF_TABLE_NAME_SIZE 32 | ||||
#define PF_QNAME_SIZE 64 | #define PF_QNAME_SIZE 64 | ||||
struct pfioc_nv { | |||||
void *data; | |||||
size_t len; /* The length of the nvlist data. */ | |||||
size_t size; /* The total size of the data buffer. */ | |||||
donner: Component "size" is unused. I do not see any use case for it. Can it be dropped? | |||||
Done Inline ActionsIt's not used here, but it is required for get operations (e.g. D29559). For those userspace must supply a larger buffer than required for just the request, so that the kernel can put the reply in the data buffer. In that case len will be the length of the request data, but we will have provided size bytes of space for the kernel to put the response into. kp: It's not used here, but it is required for get operations (e.g. D29559). For those userspace… | |||||
}; | |||||
struct pf_rule; | struct pf_rule; | ||||
/* keep synced with pfi_kif, used in RB_FIND */ | /* keep synced with pfi_kif, used in RB_FIND */ | ||||
struct pfi_kif_cmp { | struct pfi_kif_cmp { | ||||
char pfik_name[IFNAMSIZ]; | char pfik_name[IFNAMSIZ]; | ||||
}; | }; | ||||
struct pfi_kif { | struct pfi_kif { | ||||
▲ Show 20 Lines • Show All 446 Lines • Show Last 20 Lines |
Component "size" is unused. I do not see any use case for it. Can it be dropped?