X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/751f0b576ab425d4a786d5c7c89285370d601235..2a2b84aa6a83ccb20820723f1c93ef3f762eb4d3:/lib/configuration.h diff --git a/lib/configuration.h b/lib/configuration.h index 5c33047..2b0db52 100644 --- a/lib/configuration.h +++ b/lib/configuration.h @@ -259,6 +259,16 @@ struct config { /** @brief Whether to loop back multicast packets */ int multicast_loop; + /** @brief Maximum size of RTP payload to send + * + * This is the maximum number of bytes we pass to write(2); to determine + * actual packet sizes, add a UDP header and an IP header (and a link layer + * header if it's the link layer size you care about). + * + * Don't make this too big or arithmetic will start to overflow. + */ + long rtp_max_payload; + /** @brief Login lifetime in seconds */ long cookie_login_lifetime;