diff --git a/src/adc/adcconst.h b/src/adc/adcconst.h index 45e4f38..fc556ba 100644 --- a/src/adc/adcconst.h +++ b/src/adc/adcconst.h @@ -1,6 +1,6 @@ /* * uhub - A tiny ADC p2p connection hub - * Copyright (C) 2007-2009, Jan Vidar Krey + * Copyright (C) 2007-2012, Jan Vidar Krey * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -85,6 +85,10 @@ typedef uint32_t fourcc_t; #define ADC_CMD_DINF FOURCC('D','I','N','F') #define ADC_CMD_EINF FOURCC('E','I','N','F') #define ADC_CMD_FINF FOURCC('F','I','N','F') +#define ADC_CMD_BQUI FOURCC('B','Q','U','I') +#define ADC_CMD_DQUI FOURCC('D','Q','U','I') +#define ADC_CMD_EQUI FOURCC('E','Q','U','I') +#define ADC_CMD_FQUI FOURCC('F','Q','U','I') /* Extension messages */ #define ADC_CMD_HCHK FOURCC('H','C','H','K') diff --git a/src/core/hub.c b/src/core/hub.c index 11f2f14..db7e87f 100644 --- a/src/core/hub.c +++ b/src/core/hub.c @@ -1,6 +1,6 @@ /* * uhub - A tiny ADC p2p connection hub - * Copyright (C) 2007-2011, Jan Vidar Krey + * Copyright (C) 2007-2012, Jan Vidar Krey * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -76,6 +76,10 @@ int hub_handle_message(struct hub_info* hub, struct hub_user* u, const char* lin case ADC_CMD_DINF: case ADC_CMD_EINF: case ADC_CMD_FINF: + case ADC_CMD_BQUI: + case ADC_CMD_DQUI: + case ADC_CMD_EQUI: + case ADC_CMD_FQUI: /* these must never be allowed for security reasons, so we ignore them. */ CHECK_FLOOD(extras, 1); break;