func (self *ofmBarrierRequest) Map() Reducable { msg := ofp4.MakeHeader(ofp4.OFPT_BARRIER_REPLY).SetXid(self.req.Xid()) self.resps = append(self.resps, msg) return self }
func (self *ofmEcho) Map() Reducable { msg := ofp4.MakeHeader(ofp4.OFPT_ECHO_REPLY).AppendData(self.req[8:]).SetXid(self.req.Xid()) self.resps = append(self.resps, msg) return self }