summaryrefslogtreecommitdiffstats
path: root/sys/netmpls/mpls_raw.c
diff options
context:
space:
mode:
authormichele <michele@openbsd.org>2008-11-01 16:37:55 +0000
committermichele <michele@openbsd.org>2008-11-01 16:37:55 +0000
commit8b3356d2efa0e4ba24808ca565a9571ff3223da5 (patch)
tree121a7125c2541e52e318fceda6c0225e672ed962 /sys/netmpls/mpls_raw.c
parentmake usage() a fatal function instead of a string. It is just used once, (diff)
downloadwireguard-openbsd-8b3356d2efa0e4ba24808ca565a9571ff3223da5.tar.xz
wireguard-openbsd-8b3356d2efa0e4ba24808ca565a9571ff3223da5.zip
Introduced Uniform Model for TTL handling.
MPLS TTL is mapped into network layer one as the packet exits the LSP. Just IPv4 support for now. Added the relevant sysctls to enable this behaviour. Input and OK claudio@
Diffstat (limited to 'sys/netmpls/mpls_raw.c')
-rw-r--r--sys/netmpls/mpls_raw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netmpls/mpls_raw.c b/sys/netmpls/mpls_raw.c
index 1f3257cb7ab..2350afe652d 100644
--- a/sys/netmpls/mpls_raw.c
+++ b/sys/netmpls/mpls_raw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpls_raw.c,v 1.3 2008/05/23 16:03:03 thib Exp $ */
+/* $OpenBSD: mpls_raw.c,v 1.4 2008/11/01 16:37:55 michele Exp $ */
/*
* Copyright (C) 1999, 2000 and 2001 AYAME Project, WIDE Project.
@@ -129,7 +129,7 @@ mpls_sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp,
size_t newlen)
{
if (name[0] >= MPLSCTL_MAXID)
- return EOPNOTSUPP;
+ return (EOPNOTSUPP);
/* Almost all sysctl names at this level are terminal. */
if (namelen != 1 && name[0] != MPLSCTL_IFQUEUE)