Fixed some compile errors in network_layer.c, turned type field into boolean ack field.