Commit 3eae866
committed
Add: handle large ipv6 networks
With this patch, the host discovery for large ipv6 networks is introduced together with a new alive test method (int 32).
Instead of creating a host list from an IPv6 network address and mask (e.g. 5858::0/64), which would take years to scan and it woudl consume all the RAM, it just call a new function in gvm-libs to perform an ICMPv6 to a multicast IPv6 address (ff02::1).
Later, the found host are set as target and they will be handle as before. To avoid a double alive test, they are just considered alive.
For now, it only supports only one IPv6 network address. This means it can not be combined with other networks or unicast addresses.
Also, it is required that the local network has ICMPv6 enabled, otherwise the discovery won't work.1 parent b9f3f57 commit 3eae866
1 file changed
+21
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
1197 | 1198 | | |
1198 | 1199 | | |
1199 | 1200 | | |
1200 | | - | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
1201 | 1221 | | |
1202 | 1222 | | |
1203 | 1223 | | |
| |||
0 commit comments