#include "common.h"
#include "lib/host_addr.h"
Go to the source code of this file.
Functions | |
void | inet_init (void) |
Initialization code. | |
void | inet_close (void) |
Shutdown cleanup. | |
void | inet_firewalled (void) |
Called when we enter the firewalled status (TCP). | |
void | inet_udp_firewalled (void) |
Called when we enter the firewalled status (UDP). | |
gboolean | inet_can_answer_ping (void) |
Check whether we can answer a ping with a pong. | |
void | inet_got_incoming (const host_addr_t addr) |
Called when we got an incoming connection from another computer at `ip'. | |
void | inet_read_activity (void) |
Called when reading activity occurred during a b/w scheduling period. | |
void | inet_udp_got_incoming (const host_addr_t addr) |
Called when we got an incoming datagram from another computer at `ip'. | |
void | inet_udp_record_sent (const host_addr_t addr) |
Record that we sent an UDP datagram to some host, thereby opening a breach on the firewall for the UDP reply. | |
void | inet_connection_attempted (const host_addr_t addr) |
Called each time we attempt a connection. | |
void | inet_connection_succeeded (const host_addr_t addr) |
Called each time a connection attempt succeeds. |
|
Check whether we can answer a ping with a pong. Normally, when we're firewalled, we don't answer. However, if we have a non-private IP and are within a "grace period", act as if we were not: we can only know we're not firewalled when we get an incoming connection. |
|
Shutdown cleanup.
|
|
Called each time we attempt a connection.
|
|
Called each time a connection attempt succeeds.
|
|
Called when we enter the firewalled status (TCP).
|
|
Called when we got an incoming connection from another computer at `ip'.
|
|
Initialization code.
|
|
Called when reading activity occurred during a b/w scheduling period.
|
|
Called when we enter the firewalled status (UDP).
|
|
Called when we got an incoming datagram from another computer at `ip'.
|
|
Record that we sent an UDP datagram to some host, thereby opening a breach on the firewall for the UDP reply.
|