Commit 9e63cd4
authored
Add dual-stack mDNS and Samba link handling
* Add dual-stack mDNS and Samba link handling
Inventory IPv4 and IPv6 links for Samba and mDNS, keeping Samba bind tokens explicit while preserving IPv4 link-local support.
Add UDP6 mDNS participation with per-link ff02::fb joins, scoped IPv6 sends, and link-valid A/AAAA advertising.
Update watchdog, doctor probes, tests, manifests, and rebuilt NetBSD mdns/nbns artifacts.
* Fix NetBSD interface inventory parsing
Parse SIOCGIFCONF entries through a checked raw sockaddr view so NetBSD 4 IPv6 addresses are not truncated or overread.
Use explicit IPv6 netmask ioctls, keep unknown prefixes out of Samba/AAAA output, normalize IPv4 link-local masks, and share fstat socket checks.
Rebuild mdns/nbns artifacts and extend tests for raw ifconf entries, invalid masks, and socket scanning.
* Harden mdns runtime link handling
Fix Ubuntu CI portability by marking BSD-only ifreq parameters as intentionally unused on platforms that do not expose sockaddr lengths.
Improve mdns-advertiser's runtime socket update path with rollback for partial multicast joins, IPv4 fallback when IPv6 transport setup fails, capacity truncation reporting, bounded stack-only log truncation, and known-answer suppression that does not hide other link-valid A/AAAA records.
Rebuild mdns and nbns NetBSD artifacts and refresh the artifact manifest.
* Refactor mDNS response planning and harden link handling
Plan mDNS responses from the active link inventory before applying known-answer suppression and packet writing.
Keep broken per-link socket failures scoped to that link/family, preserve IPv4-only watchdog checks, and rebuild the affected NetBSD artifacts.
* Improve mDNS query response behavior
Handle service type enumeration, ANY-class questions, legacy unicast question sections, multicast response delays, and unicast hop limits in the planned RRset response path.
Rebuild the NetBSD 6 and NetBSD 4 mDNS artifacts and expand tests for mDNS query routing, service enumeration, startup spacing, socket options, and NBSTAT response shape.
* Prefer IPv4 mDNS health checks while accepting IPv6-only listeners1 parent 5ef7cac commit 9e63cd4
23 files changed
Lines changed: 6775 additions & 1154 deletions
File tree
- bin
- mdns-netbsd4be
- mdns-netbsd4le
- mdns
- nbns-netbsd4be
- nbns-netbsd4le
- nbns
- build
- src/timecapsulesmb
- assets
- boot/samba4
- common.d
- deploy
- device
- tests
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
Lines changed: 90 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
33 | 55 | | |
34 | 56 | | |
35 | | - | |
| 57 | + | |
36 | 58 | | |
37 | 59 | | |
38 | 60 | | |
39 | | - | |
| 61 | + | |
40 | 62 | | |
41 | 63 | | |
42 | 64 | | |
| |||
47 | 69 | | |
48 | 70 | | |
49 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
50 | 114 | | |
51 | 115 | | |
52 | 116 | | |
53 | 117 | | |
54 | 118 | | |
55 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
56 | 132 | | |
57 | | - | |
58 | | - | |
| 133 | + | |
| 134 | + | |
59 | 135 | | |
60 | 136 | | |
61 | 137 | | |
| |||
65 | 141 | | |
66 | 142 | | |
67 | 143 | | |
68 | | - | |
| 144 | + | |
69 | 145 | | |
70 | 146 | | |
71 | 147 | | |
72 | 148 | | |
73 | 149 | | |
74 | 150 | | |
75 | | - | |
| 151 | + | |
76 | 152 | | |
77 | 153 | | |
78 | 154 | | |
79 | 155 | | |
80 | | - | |
81 | | - | |
| 156 | + | |
| 157 | + | |
82 | 158 | | |
83 | 159 | | |
84 | 160 | | |
85 | 161 | | |
86 | 162 | | |
87 | 163 | | |
88 | | - | |
| 164 | + | |
89 | 165 | | |
90 | 166 | | |
91 | 167 | | |
| |||
98 | 174 | | |
99 | 175 | | |
100 | 176 | | |
101 | | - | |
| 177 | + | |
102 | 178 | | |
103 | 179 | | |
104 | 180 | | |
| |||
107 | 183 | | |
108 | 184 | | |
109 | 185 | | |
110 | | - | |
| 186 | + | |
111 | 187 | | |
112 | 188 | | |
113 | 189 | | |
114 | 190 | | |
115 | 191 | | |
116 | 192 | | |
117 | | - | |
| 193 | + | |
118 | 194 | | |
119 | 195 | | |
120 | 196 | | |
0 commit comments