Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netmpls * split PRU_SENSE functionality out of mpls_usrr...



details:   https://anonhg.NetBSD.org/src/rev/320e16dda8fc
branches:  trunk
changeset: 797112:320e16dda8fc
user:      rtr <rtr%NetBSD.org@localhost>
date:      Sun Jul 06 04:47:26 2014 +0000

description:
* split PRU_SENSE functionality out of mpls_usrreq() and place into
  separate mpls_stat(struct socket *, struct stat *) function

missed this in previous commit, fixes build of ALL kernel.

diffstat:

 sys/netmpls/mpls_proto.c |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (46 lines):

diff -r 797e277b6915 -r 320e16dda8fc sys/netmpls/mpls_proto.c
--- a/sys/netmpls/mpls_proto.c  Sun Jul 06 03:33:33 2014 +0000
+++ b/sys/netmpls/mpls_proto.c  Sun Jul 06 04:47:26 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mpls_proto.c,v 1.11 2014/07/01 05:49:19 rtr Exp $ */
+/*     $NetBSD: mpls_proto.c,v 1.12 2014/07/06 04:47:26 rtr Exp $ */
 
 /*
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mpls_proto.c,v 1.11 2014/07/01 05:49:19 rtr Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mpls_proto.c,v 1.12 2014/07/06 04:47:26 rtr Exp $");
 
 #include "opt_inet.h"
 #include "opt_mbuftrace.h"
@@ -101,6 +101,12 @@
 }
 
 static int
+mpls_stat(struct socket *so, struct stat *ub)
+{
+       return EOPNOTSUPP;
+}
+
+static int
 mpls_usrreq(struct socket *so, int req, struct mbuf *m,
     struct mbuf *nam, struct mbuf *control, struct lwp *l)
 {
@@ -192,12 +198,14 @@
 #define        mpls_attach     mpls_attach_wrapper
 #define        mpls_detach     mpls_detach_wrapper
 #define        mpls_ioctl      mpls_ioctl_wrapper
+#define        mpls_stat       mpls_stat_wrapper
 #define        mpls_usrreq     mpls_usrreq_wrapper
 
 static const struct pr_usrreqs mpls_usrreqs = {
        .pr_attach      = mpls_attach,
        .pr_detach      = mpls_detach,
        .pr_ioctl       = mpls_ioctl,
+       .pr_stat        = mpls_stat,
        .pr_generic     = mpls_usrreq,
 };
 



Home | Main Index | Thread Index | Old Index