// Perform a ternary match of value against rules.
Perform a ternary match of value against rules.
// Perform a ternary match of value against rules .
func matchesTernary(value uint16, rules []portRangeTernaryRule) bool {
	for _, r := range rules {
		if (value & r.mask) == r.port {
			return true
		}
	}
	return false
}
func matchesTernary ( value uint16 , rules [ ] portRangeTernaryRule ) bool { for _ , r := range rules { if ( value & r . mask ) == r . port { return true } } return false }
Perform a ternary match of value against rules.
Perform a ternary match of value against rules .