Commit 30e4b1b9 authored by Pekka Pessi's avatar Pekka Pessi

tport: use usize_t as TPORT_MTU() parameter

darcs-hash:20061205172738-65a35-6f652d5e4cd9fb2b20d67956866f2508ecccaa1c.gz
parent 92effbb0
......@@ -101,10 +101,10 @@ TPORT_DLL extern tag_typedef_t tptag_public_ref;
TPORT_DLL extern tag_typedef_t tptag_mtu;
/** Specify MTU. */
#define TPTAG_MTU(x) tptag_mtu, tag_uint_v((x))
#define TPTAG_MTU(x) tptag_mtu, tag_usize_v((x))
TPORT_DLL extern tag_typedef_t tptag_mtu_ref;
#define TPTAG_MTU_REF(x) tptag_mtu_ref, tag_uint_vr(&(x))
#define TPTAG_MTU_REF(x) tptag_mtu_ref, tag_usize_vr(&(x))
TPORT_DLL extern tag_typedef_t tptag_connect;
/** Specify that tport must always use connections. */
......
......@@ -91,7 +91,7 @@ typedef long unsigned LU; /* for printf() and friends */
/** Transport parameters */
typedef struct {
unsigned tpp_mtu; /**< Maximum packet size */
usize_t tpp_mtu; /**< Maximum packet size */
unsigned tpp_idle; /**< Allowed connection idle time. */
unsigned tpp_timeout; /**< Allowed idle time for message. */
unsigned tpp_sigcomp_lifetime; /**< SigComp compartment lifetime */
......
......@@ -57,7 +57,7 @@ tag_typedef_t tptag_reuse = BOOLTAG_TYPEDEF(reuse);
tag_typedef_t tptag_fresh = BOOLTAG_TYPEDEF(fresh);
tag_typedef_t tptag_server = BOOLTAG_TYPEDEF(server);
tag_typedef_t tptag_public = INTTAG_TYPEDEF(public);
tag_typedef_t tptag_mtu = UINTTAG_TYPEDEF(mtu);
tag_typedef_t tptag_mtu = USIZETAG_TYPEDEF(mtu);
tag_typedef_t tptag_connect = BOOLTAG_TYPEDEF(connect);
tag_typedef_t tptag_sdwn_error = BOOLTAG_TYPEDEF(sdwn_error);
tag_typedef_t tptag_sdwn_after = BOOLTAG_TYPEDEF(sdwn_after);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment