ixfr: Fixed format checking.

- Only for the first packet.
- Also restructured the code a bit.