Commit 494f829
committed
iface: refresh hw address when interface appears via netlink
getmac() is only called once during config parsing. If the interface
does not exist at that point, ifi_hwaddr stays all-zeroes and IGMP
queries are later sent with a source MAC of 00:00:00:00:00:00.
Fix by calling config_iface_update() from iface_add(), so the hardware
address is fetched at the moment the interface actually appears in the
system.
Fixes: #4
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>1 parent f8106e4 commit 494f829
3 files changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
103 | 114 | | |
104 | 115 | | |
105 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
196 | 197 | | |
197 | 198 | | |
198 | 199 | | |
| |||
0 commit comments