code: func (n *NIC) ContainsSubnet(subnet tcpip.Subnet) bool {
  	for _, s := range n.Subnets() {
  		if s == subnet {
  			return true
  		}
  	}
  	return false
  }
docs: // ContainsSubnet reports whether this NIC contains the given subnet.