Permalink
Browse files

Return the ss-* globals

I had removed them during development out of laziness and forgot
to patch them back.
  • Loading branch information...
ydahhrk committed Dec 19, 2018
1 parent a2f6ade commit 4e8b1de1f7739b75e18751ba46b9ab151ee7d18c
Showing with 33 additions and 2 deletions.
  1. +32 −1 src/common/common-global.c
  2. +1 −1 src/common/config.h
@@ -91,7 +91,7 @@ static struct global_field global_fields[] = {
}, {
.name = "pool6",
.type = &gt_prefix6,
.doc = "The IPv6 Address Pool prefix",
.doc = "The IPv6 Address Pool prefix.",
.offset = offsetof(struct globals, pool6),
.xt = XT_BOTH,
.validate = validate_pool6,
@@ -253,6 +253,37 @@ static struct global_field global_fields[] = {
.doc = "Log sessions as they are created and destroyed?",
.offset = offsetof(struct globals, nat64.bib.session_logging),
.xt = XT_NAT64,
}, {
.name = "ss-enabled",
.type = &gt_bool,
.doc = "Enable Session Synchronization?",
.offset = offsetof(struct globals, nat64.joold.enabled),
.xt = XT_NAT64,
}, {
.name = "ss-flush-asap",
.type = &gt_bool,
.doc = "Try to synchronize sessions as soon as possible?",
.offset = offsetof(struct globals, nat64.joold.flush_asap),
.xt = XT_NAT64,
}, {
.name = "ss-flush-deadline",
.type = &gt_uint32,
.doc = "Inactive milliseconds after which to force a session sync.",
.offset = offsetof(struct globals, nat64.joold.flush_deadline),
.xt = XT_NAT64,
}, {
.name = "ss-capacity",
.type = &gt_uint32,
.doc = "Maximim number of queuable entries.",
.offset = offsetof(struct globals, nat64.joold.capacity),
.xt = XT_NAT64,
}, {
.name = "ss-max-payload",
.type = &gt_uint32,
.doc = "Maximum amount of bytes joold should send per packet.",
.offset = offsetof(struct globals, nat64.joold.max_payload),
.xt = XT_NAT64,
.max = MAX_U16,
},
{ NULL },
};
@@ -562,7 +562,7 @@ struct joold_config {
* We should probably handle this ourselves but it sounds like a lot of
* code. (I guess I'm missing something.)
*/
__u16 max_payload;
__u32 max_payload;
};

/**

0 comments on commit 4e8b1de

Please sign in to comment.