Skip to content

Commit

Permalink
Merge pull request #13 from joestringer/submit/121211
Browse files Browse the repository at this point in the history
rflib/rfofmsg: Increase limit on route packet size
  • Loading branch information
marcelon committed Dec 12, 2012
2 parents e8a85c3 + 50be485 commit 0049e4a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions rflib/defs.h
Expand Up @@ -18,6 +18,12 @@

#define RF_ETH_PROTO 0x0A0A /* RF ethernet protocol */

#define VLAN_HEADER_LEN 4
#define ETH_HEADER_LEN 14
#define ETH_PAYLOAD_MAX 1500
#define ETH_TOTAL_MAX (ETH_HEADER_LEN + ETH_PAYLOAD_MAX)
#define ETH_VLAN_TOTAL_MAX (ETH_HEADER_LEN + VLAN_HEADER_LEN + ETH_PAYLOAD_MAX)

// We must match_l2 in order for packets to go up
#define MATCH_L2 true

Expand Down
2 changes: 1 addition & 1 deletion rflib/openflow/rfofmsg.cc
Expand Up @@ -173,7 +173,7 @@ MSG create_config_msg(DATAPATH_CONFIG_OPERATION operation) {
ofm->priority = htons(0);
} else {
ofm_set_command(ofm, OFPFC_ADD, UINT32_MAX, OFP_FLOW_PERMANENT, OFP_FLOW_PERMANENT, OFPP_NONE);
ofm_set_action(ofm->actions, OFPAT_OUTPUT, sizeof(ofp_action_output), OFPP_CONTROLLER, ETH_DATA_LEN, 0);
ofm_set_action(ofm->actions, OFPAT_OUTPUT, sizeof(ofp_action_output), OFPP_CONTROLLER, ETH_VLAN_TOTAL_MAX, 0);
}

return msg_new((uint8_t*) &ofm->header, size);
Expand Down

0 comments on commit 0049e4a

Please sign in to comment.