3 |
Protocol services - Multipoint Communications Service |
Protocol services - Multipoint Communications Service |
4 |
Copyright (C) Matthew Chapman 1999-2002 |
Copyright (C) Matthew Chapman 1999-2002 |
5 |
Copyright (C) Erik Forsberg 2003 |
Copyright (C) Erik Forsberg 2003 |
6 |
|
|
7 |
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
8 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
9 |
the Free Software Foundation; either version 2 of the License, or |
the Free Software Foundation; either version 2 of the License, or |
10 |
(at your option) any later version. |
(at your option) any later version. |
11 |
|
|
12 |
This program is distributed in the hope that it will be useful, |
This program is distributed in the hope that it will be useful, |
13 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 |
GNU General Public License for more details. |
GNU General Public License for more details. |
16 |
|
|
17 |
You should have received a copy of the GNU General Public License |
You should have received a copy of the GNU General Public License |
18 |
along with this program; if not, write to the Free Software |
along with this program; if not, write to the Free Software |
19 |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
47 |
hexdump(s->p, s->end - s->p); |
hexdump(s->p, s->end - s->p); |
48 |
#endif |
#endif |
49 |
|
|
50 |
|
ui_begin_update(); |
51 |
while (s->p < s->end) |
while (s->p < s->end) |
52 |
{ |
{ |
53 |
in_uint8(s, type); |
in_uint8(s, type); |
71 |
error("error while decompressing packet\n"); |
error("error while decompressing packet\n"); |
72 |
|
|
73 |
/* allocate memory and copy the uncompressed data into the temporary stream */ |
/* allocate memory and copy the uncompressed data into the temporary stream */ |
74 |
ns->data = xrealloc(ns->data, rlen); |
ns->data = (uint8 *) xrealloc(ns->data, rlen); |
75 |
|
|
76 |
memcpy((ns->data), (unsigned char *) (g_mppc_dict.hist + roff), rlen); |
memcpy((ns->data), (unsigned char *) (g_mppc_dict.hist + roff), rlen); |
77 |
|
|
126 |
|
|
127 |
s->p = next; |
s->p = next; |
128 |
} |
} |
129 |
|
ui_end_update(); |
130 |
} |
} |