I suppose this strlcpy4 without a goto is more elegant
-Luke
On Tue, Jun 30, 2020 at 10:07 PM Luke Small wrote:
> I made it SUPER easy to test my assertion. The code is there. No
> configuration needed.
>
> On Tue, Jun 30, 2020 at 9:59 PM Theo de Raadt wrote:
>
>> Luke Small wrote:
>>
>> >
On 1/7/20 11:18 am, Luke Small wrote:
> I made a couple different versions if anybody is interested!
You don't need our permission…
--
Stuart Longland (aka Redhatter, VK4MSL)
I haven't lost my mind...
...it's backed up on a tape somewhere.
I made a couple different versions if anybody is interested!
-Luke
#include
#include
#include
#include
#include
#include
/* cc strlcpy_test.c -pipe -O2 -o strlcpy_test && ./strlcpy_testfast */
/*
* Copy string src to buffer dst of size dsize. At most dsize-1
* chars will be copied.
Today I burned the latest snapshot in a USB pen-drive and booted it
in a HP desktop of mine where happened this:
https://marc.info/?l=openbsd-bugs=156682947025229=2
It seems to be fixed, the card is now recognized out of the box as
1000baseTX as expected. :-) (I didn't change anything in my
Hello all,
I've installed Release version OpenBSD 6.7 on a MiniPC COOFUN C-N34. It
is a fan-less 4 core, 4GB RAM, Apollo Lake machine. See dmesg output bellow.
This MiniPC has an internal 64GB eMMC, which works fine with 6.7
release. The OS is installed here. It is the only OS installed and
Le 30/06/2020 à 11:56, Claudio Jeker a écrit :
Can you check and monitor with ps aux | grep bgpd and or top the VSZ and
RSS of the RDE process. What is the maximum you notice. Also how do you
start bgpd? Make sure the limits from login.conf are actually applied
(using rcctl start should do that
On Tue, Jun 30, 2020 at 10:23:07AM +0200, Laurent CARON wrote:
> Hi,
>
>
> I'm running a pretty busy OpenBGPd router (~250 bgp sessions) with 4 IPv4
> and 4 IPv6 full views, plus a few IX sessions.
>
>
> # bgpctl show rib mem
> RDE memory statistics
> 820983 IPv4 unicast network entries
Hi,
I'm running a pretty busy OpenBGPd router (~250 bgp sessions) with 4
IPv4 and 4 IPv6 full views, plus a few IX sessions.
# bgpctl show rib mem
RDE memory statistics
820983 IPv4 unicast network entries using 31.3M of memory
203228 IPv6 unicast network entries using 10.9M of
strlcpy is:
size_t
strlcpy(char *dst, const char *src, size_t dsize)
{
const char *osrc = src;
size_t nleft = dsize;
/* Copy as many bytes as will fit. */
if (nleft != 0) {
while (--nleft != 0) {
if ((*dst++ = *src++) == '\0')
break;
}
}
/* Not enough room in dst, add NUL
On Mon, 29 Jun 2020 14:53:52 -0700
Mike Larkin wrote:
> On Mon, Jun 29, 2020 at 08:25:19PM +, Martin wrote:
> > Setting up Debian as vmm guest is not a trivial procedure and
> > require Debian Linux host with KVM installed first to install your
> > guest with screen connected.
>
> Why do
10 matches
Mail list logo