diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-10-04 00:03:09 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-10-04 00:03:09 +0000 |
commit | 7f51e4f1569bb4c9e9a75511a95214230f1d95a5 (patch) | |
tree | c2c907874c2f2f334b3a7d994a1e067008a5a0ca /usr.sbin | |
parent | 02e33a649b486541c7210c2875d1abd15b4512e3 (diff) |
byte order of ether_type; khym@bga.com
Diffstat (limited to 'usr.sbin')
-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; |