New struct for unknownpackets & new wait funct

waitfordiscoverypacket is now waitforinitpacket, which takes the
possibility of a request packet into consideration when processing
packet type in the option field