Commit 3986eea6 authored by 's avatar

BPF compilation fix (standalone tcp/udp protocol name).


git-svn-id: file:///home/svn/mapi/trunk@1228 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent 6b73f9fa
......@@ -152,7 +152,20 @@ static void dagdsm_compile_binary_node(dstring_t *s, node_t *b)
} else
dagdsm_compile_node(s, b->binary_node.left);
dagdsm_compile_node(s, b->binary_node.right);
if ((b->binary_node.right != NULL) \
&& (b->binary_node.right->type == proto_type)) {
switch (b->binary_node.right->proto_node.proto) {
case IPPROTO_UDP:
dsprintf(s, " <udp />\n");
break;
case IPPROTO_TCP:
dsprintf(s, " <tcp />\n");
break;
default:
ERROR("Only TCP and UDP protocols supported currently for DAG DSM.");
}
} else
dagdsm_compile_node(s, b->binary_node.right);
if (closing_tag) {
dsprintf(s, closing_tag);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment