svn commit: r316825 - head/sys/netpfil/ipfw

Ed Schouten ed at nuxi.nl
Fri Apr 14 11:52:48 UTC 2017


Hi there,

2017-04-14 13:41 GMT+02:00 Andrey V. Elsukov <ae at freebsd.org>:
> -               memcpy(&tent->k, &xn->addr6.sin6_addr, sizeof(struct in6_addr));
> +               memcpy(&tent->k.addr6, &xn->addr6.sin6_addr,
> +                   sizeof(struct in6_addr));

In this case the code could be abbreviated by simply using assignment, right?

tent->k.addr6 = xn->addr6.sin6_addr;

-- 
Ed Schouten <ed at nuxi.nl>
Nuxi, 's-Hertogenbosch, the Netherlands
KvK-nr.: 62051717


More information about the svn-src-head mailing list