diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2011-04-04 16:20:03 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2011-04-04 16:20:03 +0000 |
commit | efc4d3c8268b50a970e849df97462669889dc308 (patch) | |
tree | 7ef8b3c9634871ed834f673fef8ff2c3e04af363 /sys/netmpls | |
parent | 49b8223d6bf7fb8b7abd94b2121d748f14aa6619 (diff) |
no need to check the csum flags before calling mpls_do_cksum which
immediately checks exactly those flags, claudio ok
Diffstat (limited to 'sys/netmpls')
-rw-r--r-- | sys/netmpls/mpls_output.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/netmpls/mpls_output.c b/sys/netmpls/mpls_output.c index bd31e5b9a79..8641d62f5a1 100644 --- a/sys/netmpls/mpls_output.c +++ b/sys/netmpls/mpls_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpls_output.c,v 1.13 2011/01/21 17:42:57 mikeb Exp $ */ +/* $OpenBSD: mpls_output.c,v 1.14 2011/04/04 16:20:02 henning Exp $ */ /* * Copyright (c) 2008 Claudio Jeker <claudio@openbsd.org> @@ -68,9 +68,7 @@ mpls_output(struct ifnet *ifp0, struct mbuf *m, struct sockaddr *dst, } /* need to calculate checksums now if necessary */ - if (m->m_pkthdr.csum_flags & (M_IPV4_CSUM_OUT | M_TCPV4_CSUM_OUT | - M_UDPV4_CSUM_OUT)) - mpls_do_cksum(m); + mpls_do_cksum(m); /* initialize sockaddr_mpls */ bzero(&sa_mpls, sizeof(sa_mpls)); |