BFD: improve ip header handling, fix assert

No match.