FlowForwarding / LINC-Switch

OpenFlow Software Switch written in Erlang
http://flowforwarding.org
Other
213 stars 80 forks source link

OF1.4 : Linc doesn't respond with error message when sending a multipart request with unsupported type #339

Open alexandravlad opened 10 years ago

alexandravlad commented 10 years ago

Tested with Luxoft's Twister framework, OF1.4 Sending multipart request with invalid type. Output from LINC console:

 Connected to controller 127.0.0.1:6633/0 using OFP v5
11:05:02.724 [debug] Received message from the controller: {ofp_message,5,features_request,0,{ofp_features_request}}
11:05:02.724 [debug] Sent message to controller: {ofp_message,5,features_request,0,{ofp_features_reply,<<0,0,80,229,73,135>>,0,0,255,0,[flow_stats,table_stats,port_stats,group_stats,queue_stats]}}
11:05:02.725 [debug] Received message from the controller: {ofp_message,5,multipart_request,1193046,{ofp_desc_request,[]}}
11:05:02.726 [debug] Sent message to controller: {ofp_message,5,multipart_request,1193046,{ofp_desc_reply,[],<<70,108,111,119,70,111,114,119,97,114,100,105,110,103,46,111,114,103>>,<<85,110,107,110,111,119,110>>,<<76,73,78,67,32,79,112,101,110,70,108,111,119,32,83,111,102,116,119,97,114,101,32,83,119,105,116,99,104,32,49,46,49>>,<<85,110,107,110,111,119,110>>,<<85,110,107,110,111,119,110>>}}

Test result: Linc doesn't respond with OFPET_BAD_REQUEST , OFPBRC_BAD_MULTIPART.