summaryrefslogtreecommitdiff
path: root/usr.sbin/ipftest/ipft_tx.c
diff options
context:
space:
mode:
authordm <dm@cvs.openbsd.org>1996-05-10 21:41:01 +0000
committerdm <dm@cvs.openbsd.org>1996-05-10 21:41:01 +0000
commit76242ad5ccbbf411a0dfd66daab39d9a460c09dc (patch)
tree92b555bd9197bb7976ae825d415f70d567c37170 /usr.sbin/ipftest/ipft_tx.c
parent75774d963fafaaaa2cf697156d616e2ebe3db3c8 (diff)
ipfilter 3.0.4
Diffstat (limited to 'usr.sbin/ipftest/ipft_tx.c')
-rw-r--r--usr.sbin/ipftest/ipft_tx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ipftest/ipft_tx.c b/usr.sbin/ipftest/ipft_tx.c
index a77c52b5ff9..277613ad356 100644
--- a/usr.sbin/ipftest/ipft_tx.c
+++ b/usr.sbin/ipftest/ipft_tx.c
@@ -30,15 +30,15 @@
#include <netinet/ip_icmp.h>
#include <netinet/tcpip.h>
#include <net/if.h>
-#include "ip_fil.h"
#include <netdb.h>
#include <arpa/nameser.h>
#include <resolv.h>
+#include "ip_fil.h"
#include "ipf.h"
#include "ipt.h"
#ifndef lint
-static char sccsid[] = "@(#)ipft_tx.c 1.5 1/12/96 (C) 1993 Darren Reed";
+static char sccsid[] = "@(#)ipft_tx.c 1.6 2/4/96 (C) 1993 Darren Reed";
#endif
extern int opts;
@@ -185,7 +185,7 @@ int *out;
return 1;
}
*last++ = '\0';
- tcp->th_sport = portnum(last);
+ tcp->th_sport = htons(portnum(last));
}
ip->ip_src.s_addr = hostnum(*cpp, &r);
cpp++;
@@ -201,7 +201,7 @@ int *out;
return 1;
}
*last++ = '\0';
- tcp->th_dport = portnum(last);
+ tcp->th_dport = htons(portnum(last));
}
ip->ip_dst.s_addr = hostnum(*cpp, &r);
cpp++;