Dynamic programming

You should use the get_packet_type() accessor. Also, you should compare to Packet.PacketTypes.routing_update_packet.