libipsec: Match IPsec policies against ports of processed packets