summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_ether.c
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-06-23 16:15:57 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-06-23 16:15:57 +0000
commit49c9f8d69c19d87dbdc67c2ce02a8f6b67f49b83 (patch)
tree3b9ea94ac43aa3e61363aa7b9f556ada85c2d3ef /sys/netinet/ip_ether.c
parentcef2c01a710f772eedb6f3e6ebca133851d5c7d8 (diff)
Remove unneeded ip_id convertions.
Instead of using HTONS macro in some places, use htons directly in the struct member and save us a few bytes. Fix comment.
Diffstat (limited to 'sys/netinet/ip_ether.c')
-rw-r--r--sys/netinet/ip_ether.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet/ip_ether.c b/sys/netinet/ip_ether.c
index 383b47c6126..cfb868eeaff 100644
--- a/sys/netinet/ip_ether.c
+++ b/sys/netinet/ip_ether.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ether.c,v 1.29 2001/06/19 00:48:22 deraadt Exp $ */
+/* $OpenBSD: ip_ether.c,v 1.30 2001/06/23 16:15:56 fgsch Exp $ */
/*
* The author of this code is Angelos D. Keromytis (kermit@adk.gr)
@@ -370,8 +370,7 @@ etherip_output(struct mbuf *m, struct tdb *tdb, struct mbuf **mp, int skip,
ipo->ip_tos = 0;
ipo->ip_off = 0;
ipo->ip_sum = 0;
- ipo->ip_id = ip_randomid();
- HTONS(ipo->ip_id);
+ ipo->ip_id = htons(ip_randomid());
/*
* We should be keeping tunnel soft-state and send back