diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-16 06:32:52 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-16 06:32:52 +0000 |
commit | be22efa32f56490742ba02cf39434f50428be08b (patch) | |
tree | 00bf21ba64d74a1ebd70b81ba5c230d0b6f0c88c | |
parent | 37c8746d7d04a2b46ac07bb01b5856639182ccf8 (diff) |
swap labels; adam@math.tau.ac.il
-rw-r--r-- | sys/netinet/ip_output.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index 0a7585d2232..93452d3d465 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_output.c,v 1.11 1997/03/02 07:59:40 tholo Exp $ */ +/* $OpenBSD: ip_output.c,v 1.12 1997/06/16 06:32:51 deraadt Exp $ */ /* $NetBSD: ip_output.c,v 1.28 1996/02/13 23:43:07 christos Exp $ */ /* @@ -168,12 +168,12 @@ ip_output(m0, va_alist) } switch (ip->ip_p) { - case IPPROTO_TCP: + case IPPROTO_UDP: udp = (struct udphdr *) (mtod(m, u_char *) + hlen); dst->sen_sport = ntohs(udp->uh_sport); dst->sen_dport = ntohs(udp->uh_dport); break; - case IPPROTO_UDP: + case IPPROTO_TCP: tcp = (struct tcphdr *) (mtod(m, u_char *) + hlen); dst->sen_sport = ntohs(tcp->th_sport); dst->sen_dport = ntohs(tcp->th_dport); |