Give Suricata priority to receive packets over Linux with mPIPE.

When installing the rules to tell mPIPE to send packet to Suricata,
give it a higher priority than the default used by Linux. This way if
Linux also tells mPIPE to send it packets, Suricata will get them
instead, as long as Suricata is running.
pull/621/head
Ken Steele 12 years ago committed by Victor Julien
parent 9a7353e148
commit 86c6861b40

@ -694,6 +694,8 @@ static int ReceiveMpipeRegisterRules(int bucket, int num_buckets)
gxio_mpipe_rules_t rules;
gxio_mpipe_rules_init(&rules, context);
gxio_mpipe_rules_begin(&rules, bucket, num_buckets, NULL);
/* Give Suricata priority over Linux to receive packets. */
gxio_mpipe_rules_set_priority(&rules, -100);
return gxio_mpipe_rules_commit(&rules);
}

Loading…
Cancel
Save