diff options
Diffstat (limited to 'src/nat/gnunet-service-nat_externalip.h')
-rw-r--r-- | src/nat/gnunet-service-nat_externalip.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/nat/gnunet-service-nat_externalip.h b/src/nat/gnunet-service-nat_externalip.h index f93b6793d..41ab49e2f 100644 --- a/src/nat/gnunet-service-nat_externalip.h +++ b/src/nat/gnunet-service-nat_externalip.h | |||
@@ -11,19 +11,19 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
18 | SPDX-License-Identifier: AGPL3.0-or-later | 18 | SPDX-License-Identifier: AGPL3.0-or-later |
19 | */ | 19 | */ |
20 | /** | 20 | /** |
21 | * Code to figure out what our external IPv4 address(es) might | 21 | * Code to figure out what our external IPv4 address(es) might |
22 | * be (external IPv4s are what is seen on the rest of the Internet). | 22 | * be (external IPv4s are what is seen on the rest of the Internet). |
23 | * | 23 | * |
24 | * This can be implemented using different methods, and we allow | 24 | * This can be implemented using different methods, and we allow |
25 | * the main service to be notified about changes to what we believe | 25 | * the main service to be notified about changes to what we believe |
26 | * is our external IPv4 address. | 26 | * is our external IPv4 address. |
27 | * | 27 | * |
28 | * Note that this is explicitly only about NATed systems; if one | 28 | * Note that this is explicitly only about NATed systems; if one |
29 | * of our network interfaces has a global IP address this does | 29 | * of our network interfaces has a global IP address this does |
@@ -46,7 +46,7 @@ | |||
46 | * @param have_nat #GNUNET_YES if we believe we are behind NAT | 46 | * @param have_nat #GNUNET_YES if we believe we are behind NAT |
47 | */ | 47 | */ |
48 | void | 48 | void |
49 | GN_nat_status_changed (int have_nat); | 49 | GN_nat_status_changed(int have_nat); |
50 | 50 | ||
51 | 51 | ||
52 | /** | 52 | /** |
@@ -58,8 +58,8 @@ GN_nat_status_changed (int have_nat); | |||
58 | */ | 58 | */ |
59 | typedef void | 59 | typedef void |
60 | (*GN_NotifyExternalIPv4Change)(void *cls, | 60 | (*GN_NotifyExternalIPv4Change)(void *cls, |
61 | const struct in_addr *ip, | 61 | const struct in_addr *ip, |
62 | int add_remove); | 62 | int add_remove); |
63 | 63 | ||
64 | 64 | ||
65 | /** | 65 | /** |
@@ -76,8 +76,8 @@ struct GN_ExternalIPMonitor; | |||
76 | * @return handle to cancel | 76 | * @return handle to cancel |
77 | */ | 77 | */ |
78 | struct GN_ExternalIPMonitor * | 78 | struct GN_ExternalIPMonitor * |
79 | GN_external_ipv4_monitor_start (GN_NotifyExternalIPv4Change cb, | 79 | GN_external_ipv4_monitor_start(GN_NotifyExternalIPv4Change cb, |
80 | void *cb_cls); | 80 | void *cb_cls); |
81 | 81 | ||
82 | 82 | ||
83 | /** | 83 | /** |
@@ -86,7 +86,7 @@ GN_external_ipv4_monitor_start (GN_NotifyExternalIPv4Change cb, | |||
86 | * @param mon monitor to call | 86 | * @param mon monitor to call |
87 | */ | 87 | */ |
88 | void | 88 | void |
89 | GN_external_ipv4_monitor_stop (struct GN_ExternalIPMonitor *mon); | 89 | GN_external_ipv4_monitor_stop(struct GN_ExternalIPMonitor *mon); |
90 | 90 | ||
91 | 91 | ||
92 | #endif | 92 | #endif |