set TABLE_LEN according to pf source
This commit is contained in:
parent
ee7a713fc9
commit
7f474df2ee
2
main.c
2
main.c
|
@ -10,7 +10,7 @@
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|
||||||
#define DEFAULT_TABLE "blocked"
|
#define DEFAULT_TABLE "blocked"
|
||||||
#define TABLE_LEN 128 /* not sure what is pf table name length limit... */
|
#define TABLE_LEN 32 /* see PF_TABLE_NAME_SIZE in net/pfvar.h */
|
||||||
|
|
||||||
int main(int argc, char *argv[]){
|
int main(int argc, char *argv[]){
|
||||||
struct sockaddr_storage sock;
|
struct sockaddr_storage sock;
|
||||||
|
|
Loading…
Reference in New Issue