add IPv4 packet encoding