#endif
SpmTableSetup();
+ int disable_offloading;
+ if (ConfGetBool("capture.disable-offloading", &disable_offloading) == 0)
+ disable_offloading = 1;
+ if (disable_offloading) {
+ LiveSetOffloadDisable();
+ } else {
+ LiveSetOffloadWarn();
+ }
+
+ if (suri->checksum_validation == -1) {
+ char *cv = NULL;
+ if (ConfGet("capture.checksum-validation", &cv) == 1) {
+ if (strcmp(cv, "none") == 0) {
+ suri->checksum_validation = 0;
+ } else if (strcmp(cv, "all") == 0) {
+ suri->checksum_validation = 1;
+ }
+ }
+ }
switch (suri->checksum_validation) {
case 0:
ConfSet("stream.checksum-validation", "0");
## Advanced Capture Options
##
+# general settings affecting packet capture
+capture:
+ # disable NIC offloading. It's restored when Suricata exists.
+ # Enabled by default
+ #disable-offloading: false
+ #
+ # disable checksum validation. Same as setting '-k none' on the
+ # commandline
+ #checksum-validation: none
+
# Netmap support
#
# Netmap operates with NIC directly in driver, so you need FreeBSD wich have