Skip to content

Commit

Permalink
wsdd2: #46 from upstream to fix interface selection
Browse files Browse the repository at this point in the history
Fix issue Netgear/wsdd2#36

In a ksmbd+wsdd2 configuration, the server becomes invisible to Windows 11
clients after a few minutes to a few hours.

This commit merges a pending PR #46 from the upstream repository to
address this issue.
  • Loading branch information
rikka0w0 committed Oct 30, 2023
1 parent ac9973b commit 3818766
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions net/wsdd2/patches/010-wsdd-upstream-pr46.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Index: wsdd2-2022-04-25-e37443ac/wsdd2.c
===================================================================
--- wsdd2-2022-04-25-e37443ac.orig/wsdd2.c
+++ wsdd2-2022-04-25-e37443ac/wsdd2.c
@@ -520,7 +520,7 @@ static bool is_new_addr(struct nlmsghdr

if (ifindex && ifam->ifa_index != ifindex) {
char buf[IFNAMSIZ];
- if (!if_indextoname(ifindex, buf) || strcmp(buf, ifname) != 0)
+ if (!if_indextoname(ifam->ifa_index, buf) || strcmp(buf, ifname) != 0)
return false;
ifindex = ifam->ifa_index;
}

0 comments on commit 3818766

Please sign in to comment.