Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sources: allow interface definitions to be reordered - v3 #2063

Closed
wants to merge 1 commit into from

Conversation

jasonish
Copy link
Member

@jasonish jasonish commented May 6, 2016

Lets try this again.

Previous PR: #2062
Related ticket: https://redmine.openinfosecfoundation.org/issues/1487

For af-packet, pf-ring, netmap, and pcap use a generic
lookup function to find the configuration node for an
interface.

The new lookup function does not depend on the ordering
of the items inside the device configuration.

Prscript:

For af-packet, pf-ring, netmap, and pcap use a generic
lookup function to find the configuration node for an
interface.

The new lookup function does not depend on the ordering
of the items inside the device configuration.
@inliniac
Copy link
Contributor

Merged, thanks Jason!

@inliniac inliniac closed this May 10, 2016
@@ -121,9 +121,9 @@ void *ParsePcapConfig(const char *iface)
return aconf;
}

if_root = ConfNodeLookupKeyValue(pcap_node, "interface", iface);
if_root = ConfFindDeviceConfig(pcap_node, "iface");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think iface should be quoted here?

@inliniac inliniac mentioned this pull request May 10, 2016
@inliniac
Copy link
Contributor

I fixed both issues in #2070

@jasonish jasonish deleted the ish-af-packet-config-v3 branch August 30, 2016 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants