func (ms matches4) match(q *packet.Parsed) bool {
	for _, m := range ms {
		if !ip4InList(q.SrcIP4, m.srcs) {
			continue
		}
		for _, dst := range m.dsts {
			if !dst.net.Contains(q.DstIP4) {
				continue
			}
			if !dst.ports.contains(q.DstPort) {
				continue
			}
			return true
		}
	}
	return false
}
// match returns whether q's source IP and destination IP:port match
// any of ms.
match returns whether q's source IP and destination IP:port match
any of ms.
// match returns whether q ' s source IP and destination IP : port match // any of ms .
func (ms matches4) match(q *packet.Parsed) bool {
	for _, m := range ms {
		if !ip4InList(q.SrcIP4, m.srcs) {
			continue
		}
		for _, dst := range m.dsts {
			if !dst.net.Contains(q.DstIP4) {
				continue
			}
			if !dst.ports.contains(q.DstPort) {
				continue
			}
			return true
		}
	}
	return false
}
func ( ms matches4 ) match ( q * packet . Parsed ) bool { for _ , m := range ms { if ! ip4InList ( q . SrcIP4 , m . srcs ) { continue } for _ , dst := range m . dsts { if ! dst . net . Contains ( q . DstIP4 ) { continue } if ! dst . ports . contains ( q . DstPort ) { continue } return true } } return false }
match returns whether q's source IP and destination IP:port match
any of ms.
match returns whether q ' s source IP and destination IP : port match any of ms .