I am using a tftp server to hold the boot image for a dev board and the dev board is hard-coded to look at a particular IP address for the server.  This all works fine.  What I want to do now is be able to set up a second dev board to look at the same IP address for the server, but get a different boot image.  I would like to do this by having the tftp server use a different root directory based on the IP address of the client connecting to it.  Is there a way to do this?

I realize there may be some way to do this with iptables, but I have to turn the firewall on the server machine off entirely for other reasons, so that may not be terribly practical.

For reference, I'm using Fedora 15 for the server, but that can be changed if need be.


Question: Find volume of cask
Answer: All lengths should be in the same units, say metres.

Let the radius $r$ of the cask, at height $h$ above the ground have equation $r=ah^2+bh+c$.

When $h=0$ we want $r=\frac{3}{10}$. When $h=\frac{1}{2}$ we want $r=\frac{4}{10}$. When $h=1$ we want $r=\frac{3}{10}$.

Putting these into $r=ah^2+bh+c$ and solving the three simultaneous equations in $a,b,c$ gives
$$r = \frac{3}{10}+\frac{2}{5}h-\frac{2}{5}h^2$$

Using the formula for the volume of revolution, we get

$$V = \pi \int_0^1 \left(\frac{3}{10}+\frac{2}{5}h-\frac{2}{5}h^2\right)^{\!2} \mathrm{d}h = ~???~\mathrm{m}^3$$