diff options
Diffstat (limited to 'usr.sbin/ipsend/common')
-rw-r--r-- | usr.sbin/ipsend/common/ip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ipsend/common/ip.c b/usr.sbin/ipsend/common/ip.c index 9c4f8320769..97ff1104851 100644 --- a/usr.sbin/ipsend/common/ip.c +++ b/usr.sbin/ipsend/common/ip.c @@ -75,7 +75,7 @@ struct in_addr gwip; perror("arp"); return -2; } - eh->ether_type = ETHERTYPE_IP; + eh->ether_type = htons(ETHERTYPE_IP); last_gw.s_addr = gwip.s_addr; err = sendip(nfd, s, sizeof(*eh) + len); return err; @@ -110,7 +110,7 @@ int frag; return -2; } bcopy(eh->ether_dhost, last_arp, sizeof(last_arp)); - eh->ether_type = ETHERTYPE_IP; + eh->ether_type = htons(ETHERTYPE_IP); bcopy((char *)ip, (char *)&ipsv, sizeof(*ip)); last_gw.s_addr = gwip.s_addr; |