drivers: ethernet: net: Replace POSIX symbols by Zephyr ones

The native_sim Ethernet driver was still using POSIX symbols,
so convert these to use Zephyr ones.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
diff --git a/drivers/ethernet/eth_native_tap.c b/drivers/ethernet/eth_native_tap.c
index 81c3d26..e630939 100644
--- a/drivers/ethernet/eth_native_tap.c
+++ b/drivers/ethernet/eth_native_tap.c
@@ -113,7 +113,7 @@
 	struct net_eth_hdr *hdr;
 
 	hdr = (struct net_eth_hdr *)msg_start;
-	if (ntohs(hdr->type) != NET_ETH_PTYPE_PTP) {
+	if (net_ntohs(hdr->type) != NET_ETH_PTYPE_PTP) {
 		return NULL;
 	}
 
@@ -313,7 +313,7 @@
 		mac_addr_cmd_opt ? mac_addr_cmd_opt : CONFIG_ETH_NATIVE_TAP_MAC_ADDR;
 #endif
 #ifdef CONFIG_NET_IPV4
-	struct in_addr addr, netmask;
+	struct net_in_addr addr, netmask;
 #endif
 
 	ctx->iface = iface;
@@ -376,11 +376,11 @@
 
 #ifdef CONFIG_NET_IPV4
 	if (ipv4_addr_cmd_opt != NULL) {
-		if (net_addr_pton(AF_INET, ipv4_addr_cmd_opt, &addr) == 0) {
+		if (net_addr_pton(NET_AF_INET, ipv4_addr_cmd_opt, &addr) == 0) {
 			net_if_ipv4_addr_add(iface, &addr, NET_ADDR_MANUAL, 0);
 
 			if (ipv4_nm_cmd_opt != NULL) {
-				if (net_addr_pton(AF_INET, ipv4_nm_cmd_opt, &netmask) == 0) {
+				if (net_addr_pton(NET_AF_INET, ipv4_nm_cmd_opt, &netmask) == 0) {
 					net_if_ipv4_set_netmask_by_addr(iface, &addr, &netmask);
 				} else {
 					NET_ERR("Invalid netmask: %s", ipv4_nm_cmd_opt);
@@ -392,7 +392,7 @@
 	}
 
 	if (ipv4_gw_cmd_opt != NULL) {
-		if (net_addr_pton(AF_INET, ipv4_gw_cmd_opt, &addr) == 0) {
+		if (net_addr_pton(NET_AF_INET, ipv4_gw_cmd_opt, &addr) == 0) {
 			net_if_ipv4_set_gw(iface, &addr);
 		} else {
 			NET_ERR("Invalid gateway: %s", ipv4_gw_cmd_opt);