diff options
author | Harald Welte <laforge@osmocom.org> | 2021-04-27 22:24:08 +0200 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2021-04-27 22:25:13 +0200 |
commit | ecc0bd8d426d2eb6b7735385f082372c948611be (patch) | |
tree | 8899b6b90ad0bda0f0e09e8de659ccef7e6a1815 /include/osmocom | |
parent | c96d716606b958f67c9cbcaa8f2e660042b233cc (diff) |
socket: Introduce osmo_sock_set_priority() helper function
In some situations we want to set the SO_PRIORITY socket option
to determine the in-kernel priority of packets generated by this
socket.
Change-Id: I89abffcd125e6d073338a5c6437b9433220e1823
Related: SYS#5427
Diffstat (limited to 'include/osmocom')
-rw-r--r-- | include/osmocom/core/socket.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/osmocom/core/socket.h b/include/osmocom/core/socket.h index 92cd202b..10e17663 100644 --- a/include/osmocom/core/socket.h +++ b/include/osmocom/core/socket.h @@ -123,6 +123,7 @@ char *osmo_sockaddr_to_str_buf(char *buf, size_t buf_len, const struct osmo_sockaddr *sockaddr); int osmo_sock_set_dscp(int fd, uint8_t dscp); +int osmo_sock_set_priority(int fd, int prio); #endif /* (!EMBEDDED) */ /*! @} */ |