mgw: Add support for setting socket priority from VTY
This is useful for affecting the 802.1Q PCP value without any separate
external packet filter rules for classification.
Change-Id: I69136c6dd114c24b1dace034e75dba5157bac37e
Depends: libosmocore.git I89abffcd125e6d073338a5c6437b9433220e1823
diff --git a/include/osmocom/mgcp/mgcp.h b/include/osmocom/mgcp/mgcp.h
index e0aeb83..1de579a 100644
--- a/include/osmocom/mgcp/mgcp.h
+++ b/include/osmocom/mgcp/mgcp.h
@@ -143,6 +143,7 @@
struct mgcp_port_range net_ports;
int endp_dscp;
+ int endp_priority;
int force_ptime;
@@ -208,5 +209,6 @@
int mgcp_send_reset_all(struct mgcp_config *cfg);
-int mgcp_create_bind(const char *source_addr, struct osmo_fd *fd, int port, uint8_t dscp);
+int mgcp_create_bind(const char *source_addr, struct osmo_fd *fd, int port, uint8_t dscp,
+ uint8_t prio);
int mgcp_udp_send(int fd, struct osmo_sockaddr *addr, int port, char *buf, int len);