-/* $OpenBSD: if_pfsync.c,v 1.280 2021/01/04 12:48:27 bluhm Exp $ */
+/* $OpenBSD: if_pfsync.c,v 1.281 2021/01/18 18:29:19 mvs Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff
break;
}
- if ((sifp = ifunit(pfsyncr.pfsyncr_syncdev)) == NULL)
+ if ((sifp = if_unit(pfsyncr.pfsyncr_syncdev)) == NULL)
return (EINVAL);
ifp0 = if_get(sc->sc_sync_ifidx);
if (!(sifp->if_flags & IFF_MULTICAST)) {
sc->sc_sync_ifidx = 0;
+ if_put(sifp);
return (EADDRNOTAVAIL);
}
if ((imo->imo_membership[0] =
in_addmulti(&addr, sifp)) == NULL) {
sc->sc_sync_ifidx = 0;
+ if_put(sifp);
return (ENOBUFS);
}
imo->imo_num_memberships++;
if_linkstatehook_add(sifp, &sc->sc_ltask);
if_detachhook_add(sifp, &sc->sc_dtask);
+ if_put(sifp);
pfsync_request_full_update(sc);
-/* $OpenBSD: syscall.h,v 1.215 2020/03/18 19:35:00 anton Exp $ */
+/* $OpenBSD: syscall.h,v 1.216 2021/01/18 18:29:19 mvs Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from; OpenBSD: syscalls.master,v 1.207 2020/03/18 19:33:36 anton Exp
+ * created from; OpenBSD: syscalls.master,v 1.208 2021/01/18 18:25:51 mvs Exp
*/
/* syscall: "syscall" ret: "int" args: "int" "..." */
-/* $OpenBSD: syscallargs.h,v 1.218 2020/03/18 19:35:00 anton Exp $ */
+/* $OpenBSD: syscallargs.h,v 1.219 2021/01/18 18:29:19 mvs Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from; OpenBSD: syscalls.master,v 1.207 2020/03/18 19:33:36 anton Exp
+ * created from; OpenBSD: syscalls.master,v 1.208 2021/01/18 18:25:51 mvs Exp
*/
#ifdef syscallarg