CVS commit: [prg-localcount2] src/sys/net
Module Name:src Committed By: pgoyette Date: Wed May 17 02:40:58 UTC 2017 Modified Files: src/sys/net [prg-localcount2]: if_tap.c Log Message: Actually return the retrun value that we computed. To generate a diff of this commit: cvs rdiff -u -r1.99.4.2 -r1.99.4.3 src/sys/net/if_tap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/net/if_tap.c diff -u src/sys/net/if_tap.c:1.99.4.2 src/sys/net/if_tap.c:1.99.4.3 --- src/sys/net/if_tap.c:1.99.4.2 Wed May 17 01:44:18 2017 +++ src/sys/net/if_tap.c Wed May 17 02:40:58 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: if_tap.c,v 1.99.4.2 2017/05/17 01:44:18 pgoyette Exp $ */ +/* $NetBSD: if_tap.c,v 1.99.4.3 2017/05/17 02:40:58 pgoyette Exp $ */ /* * Copyright (c) 2003, 2004, 2008, 2009 The NetBSD Foundation. @@ -33,7 +33,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_tap.c,v 1.99.4.2 2017/05/17 01:44:18 pgoyette Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_tap.c,v 1.99.4.3 2017/05/17 02:40:58 pgoyette Exp $"); #if defined(_KERNEL_OPT) @@ -808,6 +808,7 @@ tap_dev_cloner(struct lwp *l) (void *)(intptr_t)device_unit(sc->sc_dev)); device_release(sc->sc_dev); + return rv; } /*
CVS commit: [prg-localcount2] src/sys/net
Module Name:src Committed By: pgoyette Date: Fri Apr 28 03:46:57 UTC 2017 Modified Files: src/sys/net [prg-localcount2]: if_tun.c Log Message: Add a localcount to the devsw so it can be loaded as a rump module To generate a diff of this commit: cvs rdiff -u -r1.138 -r1.138.4.1 src/sys/net/if_tun.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/net/if_tun.c diff -u src/sys/net/if_tun.c:1.138 src/sys/net/if_tun.c:1.138.4.1 --- src/sys/net/if_tun.c:1.138 Sun Jan 29 18:30:33 2017 +++ src/sys/net/if_tun.c Fri Apr 28 03:46:57 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: if_tun.c,v 1.138 2017/01/29 18:30:33 maya Exp $ */ +/* $NetBSD: if_tun.c,v 1.138.4.1 2017/04/28 03:46:57 pgoyette Exp $ */ /* * Copyright (c) 1988, Julian Onions @@ -19,7 +19,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_tun.c,v 1.138 2017/01/29 18:30:33 maya Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_tun.c,v 1.138.4.1 2017/04/28 03:46:57 pgoyette Exp $"); #ifdef _KERNEL_OPT #include "opt_inet.h" @@ -35,6 +35,7 @@ __KERNEL_RCSID(0, "$NetBSD: if_tun.c,v 1 #include #include #include +#include #include #include #include @@ -98,6 +99,7 @@ static dev_type_poll(tunpoll); static dev_type_kqfilter(tunkqfilter); const struct cdevsw tun_cdevsw = { + DEVSW_MODULE_INIT .d_open = tunopen, .d_close = tunclose, .d_read = tunread,
CVS commit: [prg-localcount2] src/sys/net/npf
Module Name:src Committed By: pgoyette Date: Fri Apr 28 02:13:19 UTC 2017 Modified Files: src/sys/net/npf [prg-localcount2]: npf_os.c Log Message: The npf device may be loaded as a (rump) module, so make sure we have a localcount in its devsw To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.6.6.1 src/sys/net/npf/npf_os.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/net/npf/npf_os.c diff -u src/sys/net/npf/npf_os.c:1.6 src/sys/net/npf/npf_os.c:1.6.6.1 --- src/sys/net/npf/npf_os.c:1.6 Fri Jan 27 17:25:34 2017 +++ src/sys/net/npf/npf_os.c Fri Apr 28 02:13:19 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: npf_os.c,v 1.6 2017/01/27 17:25:34 ryo Exp $ */ +/* $NetBSD: npf_os.c,v 1.6.6.1 2017/04/28 02:13:19 pgoyette Exp $ */ /*- * Copyright (c) 2009-2016 The NetBSD Foundation, Inc. @@ -35,7 +35,7 @@ #ifdef _KERNEL #include -__KERNEL_RCSID(0, "$NetBSD: npf_os.c,v 1.6 2017/01/27 17:25:34 ryo Exp $"); +__KERNEL_RCSID(0, "$NetBSD: npf_os.c,v 1.6.6.1 2017/04/28 02:13:19 pgoyette Exp $"); #ifdef _KERNEL_OPT #include "pf.h" @@ -50,6 +50,7 @@ __KERNEL_RCSID(0, "$NetBSD: npf_os.c,v 1 #include #include #include +#include #include #include #include @@ -92,6 +93,7 @@ static int npf_dev_poll(dev_t, int, lwp_ static int npf_dev_read(dev_t, struct uio *, int); const struct cdevsw npf_cdevsw = { + DEVSW_MODULE_INIT .d_open = npf_dev_open, .d_close = npf_dev_close, .d_read = npf_dev_read,