diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2010-05-31 15:31:02 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2010-05-31 15:31:02 +0000 |
commit | 59df9c17e51845b6642309ce9415b140e76a8e0f (patch) | |
tree | d797bb6a17276a4f5885c48439f56387146a2da5 /sys | |
parent | d9b3c32e4aff6b65cbe9e8cf3be6729bc626f648 (diff) |
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)
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netmpls/mpls_input.c | 7 |
1 files changed, 6 insertions, 1 deletions
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 <claudio@openbsd.org> @@ -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; |