Exemple #1
0
func (self *ofmBarrierRequest) Map() Reducable {
	msg := ofp4.MakeHeader(ofp4.OFPT_BARRIER_REPLY).SetXid(self.req.Xid())
	self.resps = append(self.resps, msg)
	return self
}
Exemple #2
0
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
}