Mpd 3.18 User Manual : Device Types : UDP device type commands
Previous: TCP device type commands
Next: PPTP device type commands

5.4. UDP device type commands

This chapter describes commands that are specific to UDP type links. These commands apply to the currently active link, and are only valid if the currently active link has type udp. It is suggested that the set iface mtu command be used when this link type is in use to avoid IP fragmentation.

Note: Technically this device type is broken, because PPP links are not allowed to re-order frames, yet UDP packets can be delivered out of order. Therefore, if you use this link type you should not enable multi-link PPP, PPP encryption, or PPP compression. Otherwise, out of order frames will be dropped, leading to performance degradation.

set udp self ipaddr [ port ]

Sets the local IP address and port for the UDP connection. If none is specified, any suitable local IP address is used.

set udp peer ipaddr [ port ]

Sets the peer IP address and port for the UDP connection. If none is specified, any peer may talk to us.

set udp origination local
set udp origination remote

This command is only required if MPPE encryption is used on the bundle. MPPE requires knowledge of which peer ``originated'' the connection and which peer ``answered'' the connection. Since UDP is connectionless, there's no way for mpd to determine this reliably. Therefore one peer must be configured with local origination and the other with with remote origination. The default is unknown.


Mpd 3.18 User Manual : Device Types : UDP device type commands
Previous: TCP device type commands
Next: PPTP device type commands