Consider the case when the packet has an option length of 0 for anoption which falls into the "default" case but the packet claims tohave (say) 8 bytes of IP options.darren