diff --git a/src/common.c b/src/common.c index 43d07e9..a1f3d76 100644 --- a/src/common.c +++ b/src/common.c @@ -93,27 +93,31 @@ char *rotations[] = { struct extparam conf = { - {0, 0}, - {1, 5, 30, 60, 180, 1800, 15, 60, 15, 5, 0, 0}, - NULL, - NULL, - NULL, NULL, - NULL, - NULL, - NULL, - 0, - -1, 0, 0, 0, 0, - 0, 500, 0, 0, 0, 0, 0, 0, 2, - 0, 0, 0, - 6, 600, - 1048576, - NULL, NULL, - NONE, NONE, - NULL, + {0, 0}, /* threadinit */ + {1, 5, 30, 60, 180, 1800, 15, 60, 15, 5, 0, 0}, /* timeouts */ + NULL, /* struct ace * acl; */ + NULL, /* char * conffile; */ + NULL, NULL, /* struct bandlim * bandlimiter, *bandlimiterout; */ + NULL, /* struct connlim * connlimiter; */ + NULL, /* struct trafcount * trafcounter; */ + NULL, /* struct srvparam *services; */ + 0, /* int stacksize, */ + -1, 0, 0, 0, 0, /* counterd, haveerror, rotate, paused, archiverc, */ + 0, 500, 0, 0, 0, 0, 0, 0, 2, /* demon, maxchild, backlog, needreload, timetoexit, version, noforce, bandlimver, parentretries; */ + 6, 600, /* int authcachetype, authcachetime; */ + 1048576, /* int filtermaxsize; */ + 0, 0, 0, /* int gracetraf, gracenum, gracedelay */ + 0, /* int maxseg */ + NULL, NULL, /* unsigned char *logname, **archiver; */ + NONE, NONE, /* ROTATION logtype, countertype; */ + NULL, /* char * counterfile; */ #ifndef NOIPV6 - {AF_INET},{AF_INET6},{AF_INET}, + {AF_INET}, + {AF_INET6}, + {AF_INET}, #else - {AF_INET},{AF_INET}, + {AF_INET}, + {AF_INET}, #endif NULL, NULL, diff --git a/src/structures.h b/src/structures.h index cade344..271cc8e 100644 --- a/src/structures.h +++ b/src/structures.h @@ -651,6 +651,7 @@ struct extparam { int authcachetype, authcachetime; int filtermaxsize; int gracetraf, gracenum, gracedelay; + int maxseg; unsigned char *logname, **archiver; ROTATION logtype, countertype; char * counterfile;