examples/ip_fragmentation: fix check of packet type