diff options
| author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2026-06-30 18:55:39 +0200 |
|---|---|---|
| committer | Dimitri Staessens <dimitri@ouroboros.rocks> | 2026-06-30 19:03:01 +0200 |
| commit | 87596aa6b7647f618ee8e7981d8e946f8edfa33e (patch) | |
| tree | 643889072324dd13d06a35013ec2ddd8afe0bff4 /ffi/fccntl_wrap.h | |
| parent | d84a1b2f9e8ccc4b19cfb90b5a11d4be2ef34479 (diff) | |
| download | pyouroboros-87596aa6b7647f618ee8e7981d8e946f8edfa33e.tar.gz pyouroboros-87596aa6b7647f618ee8e7981d8e946f8edfa33e.zip | |
ffi: Add fccntl wrapper and update headers
Diffstat (limited to 'ffi/fccntl_wrap.h')
| -rw-r--r-- | ffi/fccntl_wrap.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/ffi/fccntl_wrap.h b/ffi/fccntl_wrap.h index f9a137e..0555e24 100644 --- a/ffi/fccntl_wrap.h +++ b/ffi/fccntl_wrap.h @@ -57,6 +57,11 @@ int flow_get_tx_qlen(int fd, size_t * sz) return fccntl(fd, FLOWGTXQLEN, sz); } +int flow_get_mtu(int fd, size_t * mtu) +{ + return fccntl(fd, FLOWGMTU, mtu); +} + int flow_set_flags(int fd, uint32_t flags) { return fccntl(fd, FLOWSFLAGS, flags); @@ -86,3 +91,33 @@ int flow_get_frct_flags(int fd) return (int) flags; } + +int flow_set_frct_max_sdu(int fd, size_t max) +{ + return fccntl(fd, FRCTSMAXSDU, max); +} + +int flow_get_frct_max_sdu(int fd, size_t * max) +{ + return fccntl(fd, FRCTGMAXSDU, max); +} + +int flow_set_frct_rcv_ring_sz(int fd, size_t sz) +{ + return fccntl(fd, FRCTSRRINGSZ, sz); +} + +int flow_get_frct_rcv_ring_sz(int fd, size_t * sz) +{ + return fccntl(fd, FRCTGRRINGSZ, sz); +} + +int flow_set_frct_rto_min(int fd, time_t rto_ns) +{ + return fccntl(fd, FRCTSRTOMIN, rto_ns); +} + +int flow_get_frct_rto_min(int fd, time_t * rto_ns) +{ + return fccntl(fd, FRCTGRTOMIN, rto_ns); +} |
