OFFlowMod offlowMod = (OFFlowMod)msg;
packet.setSwPortTuple(new SwitchPortTuple(sw.getId(),
offlowMod.
getOutPort()));
bb = ChannelBuffers.buffer(offlowMod.getLength());
offlowMod.writeTo(bb);
packet.setData(OFMessage.getData(sw, msg, cntx));
break;
default:
packet.setSwPortTuple(new SwitchPortTuple(sw.getId(),
(short)0));