diff options
author | Dimitri Staessens <[email protected]> | 2019-03-16 15:16:21 +0100 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2019-03-18 11:09:31 +0100 |
commit | 8940fe2cc063d2de8393684ff48efec0e27edc8a (patch) | |
tree | 934574e25a84f9a486004e7fc30cc35430cc44bf /src/lib/irm.c | |
parent | 7702cb0f44f4cbb31436b2d2c621d4e5b4c0edec (diff) | |
download | ouroboros-8940fe2cc063d2de8393684ff48efec0e27edc8a.tar.gz ouroboros-8940fe2cc063d2de8393684ff48efec0e27edc8a.zip |
ipcpd: Revise UDP IPCP
The UDP IPCP now uses a fixed server UDP port (default 3435) for all
communications. This allows passing firewalls more easily since only a
single port needs to be opened. The client port can be fixed as well
if needed (default random). It uses an internal eid, so the MTU of the
UDP layer is reduced by 4 bytes, similar to the Ethernet IPCPs.
Signed-off-by: Dimitri Staessens <[email protected]>
Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/lib/irm.c')
-rw-r--r-- | src/lib/irm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/irm.c b/src/lib/irm.c index 28864546..6356443f 100644 --- a/src/lib/irm.c +++ b/src/lib/irm.c @@ -140,6 +140,10 @@ int irm_bootstrap_ipcp(pid_t pid, config.ip_addr = conf->ip_addr; config.has_dns_addr = true; config.dns_addr = conf->dns_addr; + config.has_srv_port = true; + config.srv_port = conf->srv_port; + config.has_clt_port = true; + config.clt_port = conf->clt_port; break; case IPCP_LOCAL: case IPCP_BROADCAST: |