// REqual returns true if both source addresses match both destination addresses.
REqual returns true if both source addresses match both destination addresses.
// REqual returns true if both source addresses match both destination addresses .
func (t *TCPTuple) REqual(x *TCPTuple) bool {
	if x == nil {
		return false
	}
	if t.Src.Port == x.Dst.Port {
		if t.Dst.Port == x.Src.Port {
			if t.Src.IP.Equal(x.Dst.IP) {
				return t.Dst.IP.Equal(x.Src.IP)
			}
		}
	}
	return false
}
func ( t * TCPTuple ) REqual ( x * TCPTuple ) bool { if x == nil { return false } if t . Src . Port == x . Dst . Port { if t . Dst . Port == x . Src . Port { if t . Src . IP . Equal ( x . Dst . IP ) { return t . Dst . IP . Equal ( x . Src . IP ) } } } return false }
REqual returns true if both source addresses match both destination addresses.
REqual returns true if both source addresses match both destination addresses .