diff options
author | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2008-05-23 16:06:30 +0000 |
---|---|---|
committer | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2008-05-23 16:06:30 +0000 |
commit | 09ed2326bcd26963ab47224c4a633a868056e3f2 (patch) | |
tree | 2894fd868095725f753c043c7dc1bc43e902a61f /sys/netmpls | |
parent | 3a553c9f38fd2cbb3a2a70e990104dbc95ccb5a7 (diff) |
Forgot this one. Wrap a printf() into MPLS_DEBUG since
MPLS_LABEL_GET() is only available #ifdef MPLS_DEBUG
Diffstat (limited to 'sys/netmpls')
-rw-r--r-- | sys/netmpls/mpls_input.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netmpls/mpls_input.c b/sys/netmpls/mpls_input.c index c488b5b687d..e95c19db693 100644 --- a/sys/netmpls/mpls_input.c +++ b/sys/netmpls/mpls_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpls_input.c,v 1.12 2008/05/10 01:56:32 claudio Exp $ */ +/* $OpenBSD: mpls_input.c,v 1.13 2008/05/23 16:06:29 thib Exp $ */ /* * Copyright (c) 2008 Claudio Jeker <claudio@openbsd.org> @@ -121,10 +121,12 @@ mpls_input(struct mbuf *m) smpls->smpls_in_ifindex = ifp->if_index; smpls->smpls_in_label = shim->shim_label & MPLS_LABEL_MASK; +#ifdef MPLS_DEBUG printf("smpls af %d len %d in_label %d in_ifindex %d\n", smpls->smpls_family, smpls->smpls_len, MPLS_LABEL_GET(smpls->smpls_in_label), smpls->smpls_in_ifindex); +#endif rt = rtalloc1(smplstosa(smpls),1, 0); |