Skip to content

Commit

Permalink
Wireguard isn't a broadcast interface, but it pretends to be, which l…
Browse files Browse the repository at this point in the history
…ooks dumb
  • Loading branch information
yellowman committed May 2, 2021
1 parent 76dfa49 commit 4f9f8d9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions if.c
Expand Up @@ -199,10 +199,12 @@ show_int(int argc, char **argv)
type = iftype(if_data.ifi_type);

printf(" Interface type %s", type);
if (flags & IFF_BROADCAST)
printf(" (Broadcast)");
else if (flags & IFF_POINTOPOINT)
printf(" (PointToPoint)");
if (if_data.ifi_type != IFT_WIREGUARD) {
if (flags & IFF_BROADCAST)
printf(" (Broadcast)");
else if (flags & IFF_POINTOPOINT)
printf(" (PointToPoint)");
}

if ((lladdr = get_hwdaddr(ifname)) != NULL)
printf(", hardware address %s", lladdr);
Expand Down

0 comments on commit 4f9f8d9

Please sign in to comment.