Skip to content

Commit

Permalink
Merge pull request #111 from OLSR/check-ptp
Browse files Browse the repository at this point in the history
unix: fix meshing with wireguard/point-to-point interfaces
  • Loading branch information
mathiashro authored Mar 18, 2022
2 parents 665051a + fcb30aa commit 1e771b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/unix/ifnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ chk_if_changed(struct olsr_if *iface)

/* Check broadcast */
if ((olsr_cnf->ip_version == AF_INET) && !iface->cnf->ipv4_multicast.v4.s_addr && /* Skip if fixed bcast */
(!(ifp->int_flags & IFF_BROADCAST))) {
OLSR_PRINTF(3, "\tNo broadcast - removing\n");
((!(ifp->int_flags & IFF_BROADCAST) && !(ifp->int_flags & IFF_POINTOPOINT)))) {
OLSR_PRINTF(3, "\tNo broadcast or point-to-point - removing\n");
goto remove_interface;
}

Expand Down Expand Up @@ -552,8 +552,8 @@ chk_if_up(struct olsr_if *iface, int debuglvl __attribute__ ((unused)))

/* Check broadcast */
if ((olsr_cnf->ip_version == AF_INET) && !iface->cnf->ipv4_multicast.v4.s_addr && /* Skip if fixed bcast */
(!(ifs.int_flags & IFF_BROADCAST))) {
OLSR_PRINTF(debuglvl, "\tNo broadcast - skipping\n");
(!(ifs.int_flags & IFF_BROADCAST) && !(ifs.int_flags & IFF_POINTOPOINT))) {
OLSR_PRINTF(debuglvl, "\tNo broadcast or point-to-point - skipping\n");
return 0;
}

Expand Down

0 comments on commit 1e771b4

Please sign in to comment.