Exemplo n.º 1
0
void
test_ofp_header_length_set(void) {
  /* Not check return val.*/
  (void) check_use_channels_send(ofp_header_length_set_wrap,
                                 "04 0a 00 2b 00 00 00 20"
                                 "00 00 00 12 00 05 02 30"
                                 "00 01 00 16"
                                 "80 00 00 04 00 00 00 10"
                                 "80 00 08 06 00 0c 29 7a 90 b3"
                                 "12 34 56 78 90");
}
Exemplo n.º 2
0
void
test_ofp_role_channel_write_filtering(void) {
  lagopus_result_t ret;
  int i;

  /* set role mask. */
  for (i = 0; i < 2; i++) {
    test_role_mask.packet_in_mask[i] = 0x00;
    test_role_mask.port_status_mask[i] = 0x00;
    test_role_mask.flow_removed_mask[i] = 0x00;
  }
  ret = check_use_channels_send(ofp_role_channel_write_wrap,
                                "04 10 00 08 00 00 00 64");
  TEST_ASSERT_EQUAL_MESSAGE(LAGOPUS_RESULT_OK, ret,
                            "ofp_role_channel_write(filtering) error.");
}