construct ip header