summaryrefslogtreecommitdiff
path: root/sys/netmpls/mpls_input.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2017-02-27 19:16:57 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2017-02-27 19:16:57 +0000
commit9c3b965e171241abfac6df0feeffb9d2ba07cd8f (patch)
tree4f7399632bcb0ed3038cef6238be49f0880e7e11 /sys/netmpls/mpls_input.c
parent32636405b343ef21e4f5723a53196d2a09dd2db7 (diff)
Retire the AF_MPLS protosw struct. Nothing is using it and the code was super
basic anyway. Simplifies the code a lot also by calling the mpls sysctl no longer via the protosw but instead directly. OK mpi@ on a previous diff. Also tested by renato@ who actually found a bug which is now fixed.
Diffstat (limited to 'sys/netmpls/mpls_input.c')
-rw-r--r--sys/netmpls/mpls_input.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/netmpls/mpls_input.c b/sys/netmpls/mpls_input.c
index 23cb330ad0c..140c4a9d33d 100644
--- a/sys/netmpls/mpls_input.c
+++ b/sys/netmpls/mpls_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpls_input.c,v 1.57 2016/08/22 15:37:23 mpi Exp $ */
+/* $OpenBSD: mpls_input.c,v 1.58 2017/02/27 19:16:56 claudio Exp $ */
/*
* Copyright (c) 2008 Claudio Jeker <claudio@openbsd.org>
@@ -53,11 +53,6 @@ int mpls_ip6_adjttl(struct mbuf *, u_int8_t);
struct mbuf *mpls_do_error(struct mbuf *, int, int, int);
void
-mpls_init(void)
-{
-}
-
-void
mpls_input(struct mbuf *m)
{
struct sockaddr_mpls *smpls;