Only log unprocessed packets in the controller if debugging enabled.

Otherwise OFP_FLOW_EXPIRED messages tend to swamp the console after
a while.
This commit is contained in:
Ben Pfaff
2008-06-04 10:54:01 -07:00
parent 6787fab28f
commit 8f4da69c16
+5 -1
View File
@@ -347,7 +347,11 @@ process_packet(struct switch_ *sw, struct buffer *msg)
process_packet_in(sw, opi);
}
} else {
ofp_print(stdout, msg->data, msg->size, 2);
if (VLOG_IS_DBG_ENABLED()) {
char *p = ofp_to_string(msg->data, msg->size, 2);
VLOG_DBG("OpenFlow packet ignored: %s", p);
free(p);
}
}
}