-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Commit 4a05392
committed
WiFiServer IPv6 support and example, WiFiClient::remoteIP IPv6 support
This is one of useful examples of IPv6, such device can be reached
from internet without any port forward on NAT and etc.
Most of changes for WiFiServer is to use ip6 structures, and for ip4
we use ipv6-to-ipv4 mapped addresses (RFC 4291).
For RemoteIP i added support ip4 to ip6 mapping as well.
Scenarios tested:
wifiMulti.IPv6(true); but set to listen on IPv4 only
IPv6 disabled, with or without bind to specific IP4
AsyncUDPServer without IPv6 support, to check if remoteIP works properly
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>1 parent 4735f66 commit 4a05392
File tree
5 files changed
+50
-15
lines changed- libraries/WiFi
- examples/WiFiTelnetToSerial
- src
5 files changed
+50
-15
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
38 | + | ||
38 | 39 |
| |
39 | 40 |
| |
40 | 41 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
561 | 561 |
| |
562 | 562 |
| |
563 | 563 |
| |
564 | - | ||
565 | - | ||
564 | + | ||
565 | + | ||
566 | + | ||
567 | + | ||
568 | + | ||
569 | + | ||
570 | + | ||
571 | + | ||
572 | + | ||
573 | + | ||
574 | + | ||
575 | + | ||
576 | + | ||
577 | + | ||
578 | + | ||
579 | + | ||
580 | + | ||
581 | + | ||
582 | + | ||
583 | + | ||
584 | + | ||
585 | + | ||
566 | 586 |
| |
567 | 587 |
| |
568 | 588 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
106 | 106 |
| |
107 | 107 |
| |
108 | 108 |
| |
109 | + | ||
110 | + | ||
111 | + | ||
112 | + | ||
113 | + | ||
109 | 114 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
50 | - | ||
51 | - | ||
50 | + | ||
51 | + | ||
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
| |||
76 | 76 |
| |
77 | 77 |
| |
78 | 78 |
| |
79 | - | ||
80 | - | ||
79 | + | ||
80 | + | ||
81 | 81 |
| |
82 | 82 |
| |
83 | 83 |
| |
84 | - | ||
85 | - | ||
86 | - | ||
84 | + | ||
85 | + | ||
86 | + | ||
87 | 87 |
| |
88 | 88 |
| |
89 | 89 |
| |
| |||
106 | 106 |
| |
107 | 107 |
| |
108 | 108 |
| |
109 | - | ||
110 | - | ||
109 | + | ||
110 | + | ||
111 | 111 |
| |
112 | 112 |
| |
113 | 113 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 | + | ||
27 | + | ||
26 | 28 |
| |
27 | 29 |
| |
28 | 30 |
| |
29 | 31 |
| |
30 | 32 |
| |
31 | - | ||
33 | + | ||
32 | 34 |
| |
33 | 35 |
| |
34 | 36 |
| |
| |||
37 | 39 |
| |
38 | 40 |
| |
39 | 41 |
| |
40 | - | ||
41 | - | ||
42 | + | ||
42 | 43 |
| |
44 | + | ||
43 | 45 |
| |
44 | - | ||
46 | + | ||
45 | 47 |
| |
48 | + | ||
49 | + | ||
50 | + | ||
51 | + | ||
52 | + | ||
53 | + | ||
54 | + | ||
46 | 55 |
| |
47 | 56 |
| |
48 | 57 |
| |
|
0 commit comments