<div dir="ltr">Command line with log, my code and screen shot of the wireshrak are attached in the text and png files.<div><br></div><div>I am using HP Pro curve switch, i think it supports OF 1.0 spec.</div><div><br></div>
<div> </div><div>#####################################</div><div>#####################################</div><div><br></div><div>Important part of my code in the attached file</div><div><br></div><div>#####################################</div>
<div>#####################################<br><div><br></div><div>Questions:</div><div><br></div><div>1) sendToDPID function is not working the way I expect it to work. According to me if that function works I should see packet out in wireshark.</div>
</div><div><br></div><div>2) Am I extracting dpid of the switch correctly ?</div><div><br></div><div>3) What is the reason for getting an error while switch connects to the POX controller ?</div><div><div><br></div><div>ERROR:openflow.of_01:[00-16-b9-ce-2f-40|800 1] OpenFlow Error:</div>
<div>[00-16-b9-ce-2f-40|800 1] Error: header:</div><div>[00-16-b9-ce-2f-40|800 1] Error:   version: 1</div><div>[00-16-b9-ce-2f-40|800 1] Error:   type:    1 (OFPT_ERROR)</div><div>[00-16-b9-ce-2f-40|800 1] Error:   length:  20</div>
<div>[00-16-b9-ce-2f-40|800 1] Error:   xid:     7</div><div>[00-16-b9-ce-2f-40|800 1] Error: type: OFPET_BAD_REQUEST (1)</div><div>[00-16-b9-ce-2f-40|800 1] Error: code: OFPBRC_BAD_TYPE (1)</div><div>[00-16-b9-ce-2f-40|800 1] Error: datalen: 8</div>
<div>[00-16-b9-ce-2f-40|800 1] Error: 0000: 01 12 00 08 00 00 00 07                            ........</div></div><div><br></div><div><br></div></div>