示例#1
0
void
ofp_bucket_list_trace(uint32_t flags,
                      struct bucket_list *bucket_list) {
  struct bucket *bucket;

  TAILQ_FOREACH(bucket, bucket_list, entry) {
    lagopus_msg_pdump(flags, PDUMP_OFP_BUCKET,
                      bucket->ofp, "");
    ofp_action_list_trace(flags, &bucket->action_list);
  }
static void
packet_out_trace(struct ofp_packet_out *packet_out,
                 struct action_list *action_list) {
  if (lagopus_log_check_trace_flags(TRACE_OFPT_PACKET_OUT)) {
    lagopus_msg_pdump(TRACE_OFPT_PACKET_OUT, PDUMP_OFP_HEADER,
                      packet_out->header, "");
    lagopus_msg_pdump(TRACE_OFPT_PACKET_OUT, PDUMP_OFP_PACKET_OUT,
                      *packet_out, "");
    ofp_action_list_trace(TRACE_OFPT_PACKET_OUT, action_list);
  }
}