Longest Prefix Match? Needs verification

Needs verification