Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/net/lib/libshmif shmif: s/sc_uuid/sc_uid/
details: https://anonhg.NetBSD.org/src/rev/e337cb2fbee7
branches: trunk
changeset: 1007659:e337cb2fbee7
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Tue Feb 25 03:25:36 2020 +0000
description:
shmif: s/sc_uuid/sc_uid/
It's not UUID :-/
diffstat:
sys/rump/net/lib/libshmif/if_shmem.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r f1ae8445eac2 -r e337cb2fbee7 sys/rump/net/lib/libshmif/if_shmem.c
--- a/sys/rump/net/lib/libshmif/if_shmem.c Tue Feb 25 03:24:48 2020 +0000
+++ b/sys/rump/net/lib/libshmif/if_shmem.c Tue Feb 25 03:25:36 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_shmem.c,v 1.79 2020/02/25 03:24:48 ozaki-r Exp $ */
+/* $NetBSD: if_shmem.c,v 1.80 2020/02/25 03:25:36 ozaki-r Exp $ */
/*
* Copyright (c) 2009, 2010 Antti Kantee. All Rights Reserved.
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_shmem.c,v 1.79 2020/02/25 03:24:48 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_shmem.c,v 1.80 2020/02/25 03:25:36 ozaki-r Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -101,7 +101,7 @@
struct lwp *sc_rcvl;
bool sc_dying;
- uint64_t sc_uuid;
+ uint64_t sc_uid;
};
static void shmif_rcv(void *);
@@ -172,7 +172,7 @@
sc = kmem_zalloc(sizeof(*sc), KM_SLEEP);
sc->sc_memfd = -1;
sc->sc_unit = unit;
- sc->sc_uuid = cprng_strong64();
+ sc->sc_uid = cprng_strong64();
ifp = &sc->sc_ec.ec_if;
@@ -605,7 +605,7 @@
sp.sp_len = pktsize;
sp.sp_sec = tv.tv_sec;
sp.sp_usec = tv.tv_usec;
- sp.sp_sender = sc->sc_uuid;
+ sp.sp_sender = sc->sc_uid;
bpf_mtap(ifp, m0, BPF_D_OUT);
@@ -798,7 +798,7 @@
* Test if we want to pass the packet upwards
*/
eth = mtod(m, struct ether_header *);
- if (sp.sp_sender == sc->sc_uuid) {
+ if (sp.sp_sender == sc->sc_uid) {
passup = false;
} else if (memcmp(eth->ether_dhost, CLLADDR(ifp->if_sadl),
ETHER_ADDR_LEN) == 0) {
Home |
Main Index |
Thread Index |
Old Index