Quick remark. The MOAN code will NOT work for subnet masks like 255.0.0.0 if provided as /8, thus it would fail a test like this:

MOAN('126.0.0.1','126.0.0.0/8')
_________________________
There are two types of vessels, submarines and targets.