From 59df9c17e51845b6642309ce9415b140e76a8e0f Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Mon, 31 May 2010 15:31:02 +0000 Subject: Add a comment about the explicit NULL label handling. We follow RFC 4182 which relaxes the position of these labels. After discussion with Christophe Fillot (cf (at) utc fr) --- sys/netmpls/mpls_input.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/netmpls/mpls_input.c b/sys/netmpls/mpls_input.c index 37005935a21..3715a00a95a 100644 --- a/sys/netmpls/mpls_input.c +++ b/sys/netmpls/mpls_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpls_input.c,v 1.24 2010/05/31 11:46:02 claudio Exp $ */ +/* $OpenBSD: mpls_input.c,v 1.25 2010/05/31 15:31:01 claudio Exp $ */ /* * Copyright (c) 2008 Claudio Jeker @@ -153,6 +153,11 @@ mpls_input(struct mbuf *m) switch (ntohl(smpls->smpls_label)) { case MPLS_LABEL_IPV4NULL: + /* + * RFC 4182 relaxes the position of the + * explicit NULL labels. The no longer need + * to be at the beginning of the stack. + */ if (hasbos) { mpls_ip_input(m, ttl); goto done; -- cgit v1.2.3