diff options
author | 1997-06-16 06:32:51 +0000 | |
---|---|---|
committer | 1997-06-16 06:32:51 +0000 | |
commit | 6dc8fa331d9bf33fc761238e3a0822d2c02001b0 (patch) | |
tree | 23209549f6afb117349b060c14d57140f74980df | |
parent | Our newuser FAQ might as well be in the source tree, right? (diff) | |
download | wireguard-openbsd-6dc8fa331d9bf33fc761238e3a0822d2c02001b0.tar.xz wireguard-openbsd-6dc8fa331d9bf33fc761238e3a0822d2c02001b0.zip |
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); |