new function only used if libnet version >= 1.2 is available