1/* $Id: pcplearndscp.h,v 1.2 2013/12/13 15:47:23 nanard Exp $ */ 2/* MiniUPnP project 3 * Website : http://miniupnp.free.fr/ 4 * Author : Miroslav Bagljas 5 6Copyright (c) 2013 by Cisco Systems, Inc. 7All rights reserved. 8 9Redistribution and use in source and binary forms, with or without 10modification, are permitted provided that the following conditions are met: 11 12 * Redistributions of source code must retain the above copyright notice, 13 this list of conditions and the following disclaimer. 14 * Redistributions in binary form must reproduce the above copyright notice, 15 this list of conditions and the following disclaimer in the documentation 16 and/or other materials provided with the distribution. 17 * The name of the author may not be used to endorse or promote products 18 derived from this software without specific prior written permission. 19 20THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 21AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 24LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30POSSIBILITY OF SUCH DAMAGE. 31*/ 32 33#ifndef PCPLEARNDSCP_H_INCLUDED 34#define PCPLEARNDSCP_H_INCLUDED 35 36struct dscp_values { 37 char *app_name; 38 unsigned int app_name_len; 39 unsigned char delay; 40 unsigned char loss; 41 unsigned char jitter; 42 unsigned char dscp_value; 43}; 44 45 46 47/* #set_learn_dscp "Webex" 1 1 1 34 */ 48int 49read_learn_dscp_line(struct dscp_values *dscpvalues, char *p); 50 51#endif /* PCPLEARNDSCP_H_INCLUDED */ 52