mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed handling network masks in the svdrphosts.conf file
This commit is contained in:
parent
5f0b2fbf2e
commit
bd6046c37d
@ -1937,3 +1937,6 @@ Anssi Hannula <anssi.hannula@gmail.com>
|
||||
|
||||
Antti Hartikainen <ami+vdr@ah.fi>
|
||||
for updating 'S13E' in 'sources.conf'
|
||||
|
||||
Patrick Maier <maierp@informatik.tu-muenchen.de>
|
||||
for fixing handling network masks in the svdrphosts.conf file
|
||||
|
2
HISTORY
2
HISTORY
@ -4818,3 +4818,5 @@ Video Disk Recorder Revision History
|
||||
true.
|
||||
- Newlines in title and short text of an EPG event are now changed into blanks only
|
||||
after all other fixes, because a short text might become a description.
|
||||
- Fixed handling network masks in the svdrphosts.conf file (thanks to Patrick
|
||||
Maier).
|
||||
|
8
config.c
8
config.c
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: config.c 1.145 2006/04/17 11:00:00 kls Exp $
|
||||
* $Id: config.c 1.146 2006/07/22 11:57:51 kls Exp $
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
@ -106,8 +106,10 @@ bool cSVDRPhost::Parse(const char *s)
|
||||
*(char *)p = 0; // yes, we know it's 'const' - will be restored!
|
||||
if (m == 0)
|
||||
mask = 0;
|
||||
else
|
||||
mask >>= (32 - m);
|
||||
else {
|
||||
mask <<= (32 - m);
|
||||
mask = htonl(mask);
|
||||
}
|
||||
}
|
||||
int result = inet_aton(s, &addr);
|
||||
if (p)
|
||||
|
Loading…
Reference in New Issue
Block a user