sync code with last improvements from OpenBSD
This commit is contained in:
parent
2990d002be
commit
f0c5a45f3a
27 changed files with 84 additions and 66 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: if_etherip.c,v 1.50 2022/02/28 00:12:11 dlg Exp $ */
|
||||
/* $OpenBSD: if_etherip.c,v 1.51 2023/09/16 09:33:27 mpi Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2015 Kazuya GODA <goda@openbsd.org>
|
||||
*
|
||||
|
@ -789,7 +789,7 @@ etherip_sysctl_etheripstat(void *oldp, size_t *oldlenp, void *newp)
|
|||
sizeof(uint64_t)));
|
||||
memset(ðeripstat, 0, sizeof etheripstat);
|
||||
counters_read(etheripcounters, (uint64_t *)ðeripstat,
|
||||
etherips_ncounters);
|
||||
etherips_ncounters, NULL);
|
||||
return (sysctl_rdstruct(oldp, oldlenp, newp, ðeripstat,
|
||||
sizeof(etheripstat)));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue