-/* $OpenBSD: vfs_subr.c,v 1.233 2015/09/04 08:43:39 mpi Exp $ */
+/* $OpenBSD: vfs_subr.c,v 1.234 2015/10/07 11:57:44 mpi Exp $ */
/* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */
/*
case AF_INET:
if ((rnh = nep->ne_rtable_inet) == NULL) {
if (!rn_inithead((void **)&nep->ne_rtable_inet,
- offsetof(struct sockaddr_in, sin_addr) * 8)) {
+ offsetof(struct sockaddr_in, sin_addr))) {
error = ENOBUFS;
goto out;
}
-/* $OpenBSD: pf_table.c,v 1.114 2015/09/04 08:43:39 mpi Exp $ */
+/* $OpenBSD: pf_table.c,v 1.115 2015/10/07 11:57:44 mpi Exp $ */
/*
* Copyright (c) 2002 Cedric Berger
}
if (!rn_inithead((void **)&kt->pfrkt_ip4,
- offsetof(struct sockaddr_in, sin_addr) * 8) ||
+ offsetof(struct sockaddr_in, sin_addr)) ||
!rn_inithead((void **)&kt->pfrkt_ip6,
- offsetof(struct sockaddr_in6, sin6_addr) * 8)) {
+ offsetof(struct sockaddr_in6, sin6_addr))) {
pfr_destroy_ktable(kt, 0);
return (NULL);
}