libosmocore/include/osmocom
Harald Welte ce53e03dc9 socket: Introduce osmo_sock_set_dscp() to set socket DSCP value
At least on Linux, sockets have a IP_TOS socket option that can be
configured to set the TOS.  However, TOS (of RFC791) was replaced
by the DSCP (of RFC2474) in 1998.

As the DCSP bits are only the upper 6 bits of the TOS bits, let's
introduce a helper to get, mask and set the DSCP values in the TOS
bits.

Related: OS#5136, SYS#5427
Change-Id: Ia4ba389a5b7e3e9d5f17a742a900d6fd68c08e40
2021-04-27 21:53:32 +02:00
..
codec codec: Add functions for AMR s->d bits and d->s bits 2020-05-14 14:51:22 +02:00
coding gsm0503_parity: Fix compilation with gcc-10 2020-04-20 18:18:50 +02:00
core socket: Introduce osmo_sock_set_dscp() to set socket DSCP value 2021-04-27 21:53:32 +02:00
crypt Use define for key buffers 2018-12-20 09:51:02 +00:00
ctrl ctrl: ports.h: Add OSMO_CTRL_PORT_BSC_NEIGH 2021-01-13 14:48:53 +01:00
gprs ns2: Dump frame relay state to VTY during "show ns" 2021-04-25 21:09:23 +02:00
gsm gsm0808: Introduce gsm0808_old_bss_to_new_bss_info_att_tlvdef 2021-04-21 19:02:31 +02:00
sim sim: Obtain card ATR when opening the card 2021-04-25 21:09:23 +02:00
usb usb: Add osmo_libusb_find_open_claim() all-in-one API 2020-05-12 05:43:21 +00:00
vty TODO-RELEASE: Request increasing _LAST_OSMOVTY_NODE next release 2021-03-05 17:06:38 +01:00