summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2000-01-09 22:53:17 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2000-01-09 22:53:17 +0000
commit3ec655c8f23e717f6ad2f5c6986bcfbd33df32dd (patch)
treebe9035f1bd492f2a9dd0cd472df45478b18137e2 /sys/netinet
parente6cacfb1163c1c9608e9ba0ff1863f2c237b3e9c (diff)
Transport port is in network order...
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_output.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c
index 691128fe25a..7c445afedc1 100644
--- a/sys/netinet/ip_output.c
+++ b/sys/netinet/ip_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_output.c,v 1.60 1999/12/25 04:48:16 angelos Exp $ */
+/* $OpenBSD: ip_output.c,v 1.61 2000/01/09 22:53:16 angelos Exp $ */
/* $NetBSD: ip_output.c,v 1.28 1996/02/13 23:43:07 christos Exp $ */
/*
@@ -410,8 +410,8 @@ sendit:
ip = mtod(m, struct ip *);
}
udp = (struct udphdr *) (mtod(m, u_char *) + hlen);
- ddst->sen_sport = ntohs(udp->uh_sport);
- ddst->sen_dport = ntohs(udp->uh_dport);
+ ddst->sen_sport = udp->uh_sport;
+ ddst->sen_dport = udp->uh_dport;
break;
case IPPROTO_TCP:
@@ -422,8 +422,8 @@ sendit:
ip = mtod(m, struct ip *);
}
tcp = (struct tcphdr *) (mtod(m, u_char *) + hlen);
- ddst->sen_sport = ntohs(tcp->th_sport);
- ddst->sen_dport = ntohs(tcp->th_dport);
+ ddst->sen_sport = tcp->th_sport;
+ ddst->sen_dport = tcp->th_dport;
break;
default: