-/* $OpenBSD: if_umb.c,v 1.54 2023/08/29 23:28:38 dlg Exp $ */
+/* $OpenBSD: if_umb.c,v 1.55 2023/09/01 20:24:29 mvs Exp $ */
/*
* Copyright (c) 2016 genua mbH
info.rti_info[RTAX_GATEWAY] = sintosa(&ifra.ifra_dstaddr);
rv = rtrequest(RTM_ADD, &info, 0, &rt, ifp->if_rdomain);
- NET_UNLOCK();
if (rv) {
printf("%s: unable to set IPv4 default route, "
"error %d\n", DEVNAM(ifp->if_softc), rv);
rtm_send(rt, RTM_ADD, rv, ifp->if_rdomain);
rtfree(rt);
}
+ NET_UNLOCK();
if (ifp->if_flags & IFF_DEBUG) {
char str[3][INET_ADDRSTRLEN];
info.rti_info[RTAX_GATEWAY] = sin6tosa(&ifra.ifra_dstaddr);
rv = rtrequest(RTM_ADD, &info, 0, &rt, ifp->if_rdomain);
- NET_UNLOCK();
if (rv) {
printf("%s: unable to set IPv6 default route, "
"error %d\n", DEVNAM(ifp->if_softc), rv);
rtm_send(rt, RTM_ADD, rv, ifp->if_rdomain);
rtfree(rt);
}
+ NET_UNLOCK();
if (ifp->if_flags & IFF_DEBUG) {
char str[3][INET6_ADDRSTRLEN];