kernel: fix kernel panic when traffic goes over the network.