diff options
author | Russell Bryant <russell@russellbryant.com> | 2007-04-30 16:16:26 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2007-04-30 16:16:26 +0000 |
commit | b419fc1134c7cb0b0ba92428185d3546be98cf11 (patch) | |
tree | d7bac5beb193490f4242d9a69cad3457727ba5d8 /include/asterisk/netsock.h | |
parent | a91f9b138db6eecfe65b29f788c82a688526b9cf (diff) |
Add support for setting the CoS for VLAN traffic (802.1p) in Linux. The
file doc/qos.tex has been updated to document the new functionality.
(issue #9540, patch submitted by IgorG)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@62457 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/netsock.h')
-rw-r--r-- | include/asterisk/netsock.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/asterisk/netsock.h b/include/asterisk/netsock.h index 73a2dd224..f3c932bf1 100644 --- a/include/asterisk/netsock.h +++ b/include/asterisk/netsock.h @@ -41,10 +41,10 @@ struct ast_netsock_list *ast_netsock_list_alloc(void); int ast_netsock_init(struct ast_netsock_list *list); struct ast_netsock *ast_netsock_bind(struct ast_netsock_list *list, struct io_context *ioc, - const char *bindinfo, int defaultport, int tos, ast_io_cb callback, void *data); + const char *bindinfo, int defaultport, int tos, int cos, ast_io_cb callback, void *data); struct ast_netsock *ast_netsock_bindaddr(struct ast_netsock_list *list, struct io_context *ioc, - struct sockaddr_in *bindaddr, int tos, ast_io_cb callback, void *data); + struct sockaddr_in *bindaddr, int tos, int cos, ast_io_cb callback, void *data); int ast_netsock_free(struct ast_netsock_list *list, struct ast_netsock *netsock); @@ -53,6 +53,8 @@ int ast_netsock_release(struct ast_netsock_list *list); struct ast_netsock *ast_netsock_find(struct ast_netsock_list *list, struct sockaddr_in *sa); +int ast_netsock_set_qos(int netsocket, int tos, int cos); + int ast_netsock_sockfd(const struct ast_netsock *ns); const struct sockaddr_in *ast_netsock_boundaddr(const struct ast_netsock *ns); |