summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2008-05-02 12:37:09 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2008-05-02 12:37:09 +0000
commita10250626b1ac13f5f1513fa8a07795cf92440dc (patch)
tree85478698f9fc003c7c4ebe1676addd08c464e24a
parentd36d9859e1d0571ec916b61651482c40831844f7 (diff)
There is no need to endian convert the label after swapping it, all label ops
are done with network byte ordering now. OK norby@
-rw-r--r--sys/netmpls/mpls_shim.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netmpls/mpls_shim.c b/sys/netmpls/mpls_shim.c
index 9d4cc6f2b86..be8e888d140 100644
--- a/sys/netmpls/mpls_shim.c
+++ b/sys/netmpls/mpls_shim.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpls_shim.c,v 1.2 2008/04/23 11:22:23 norby Exp $ */
+/* $OpenBSD: mpls_shim.c,v 1.3 2008/05/02 12:37:08 claudio Exp $ */
/*
* Copyright (C) 1999, 2000 and 2001 AYAME Project, WIDE Project.
@@ -80,7 +80,6 @@ mpls_shim_swap(struct mbuf *m, struct sockaddr_mpls *smplsp)
t = smplsp->smpls_out_exp << MPLS_EXP_OFFSET;
shim->shim_label |= htonl(t) & MPLS_EXP_MASK;
}
- shim->shim_label = htonl(shim->shim_label);
return (m);
}