Kannel: Open Source WAP and SMS gateway  $Revision: 5037 $
wsp_pdu.c File Reference
#include "gwlib/gwlib.h"
#include "wsp_pdu.h"
#include "wsp_pdu.def"

Go to the source code of this file.

Macros

#define PDU(name, docstring, fields, is_valid)
 
#define UINT(field, docstring, bits)   p->field = 0;
 
#define UINTVAR(field, docstring)   p->field = 0;
 
#define OCTSTR(field, docstring, lengthfield)   p->field = NULL;
 
#define REST(field, docstring)   p->field = NULL;
 
#define TYPE(bits, value)
 
#define RESERVED(bits)
 
#define PDU(name, docstring, fields, is_valid)
 
#define UINT(field, docstring, bits)
 
#define UINTVAR(field, docstring)
 
#define OCTSTR(field, docstring, lengthfield)   octstr_destroy(p->field);
 
#define REST(field, docstring)   octstr_destroy(p->field);
 
#define TYPE(bits, value)
 
#define RESERVED(bits)
 
#define PDU(name, docstring, fields, is_valid)
 
#define UINT(field, docstring, bits)   bitpos += (bits);
 
#define UINTVAR(field, docstring)
 
#define OCTSTR(field, docstring, lengthfield)
 
#define REST(field, docstring)
 
#define TYPE(bits, value)
 
#define RESERVED(bits)   bitpos += (bits);
 
#define PDU(name, docstring, fields, is_valid)
 
#define UINT(field, docstring, bits)
 
#define UINTVAR(field, docstring)
 
#define OCTSTR(field, docstring, lengthfield)
 
#define REST(field, docstring)
 
#define TYPE(bits, value)   bitpos += (bits);
 
#define RESERVED(bits)   bitpos += (bits);
 
#define PDU(name, docstring, fields, is_valid)
 
#define UINT(field, docstring, bits)
 
#define UINTVAR(field, docstring)
 
#define OCTSTR(field, docstring, lengthfield)   p->lengthfield = octstr_len(p->field);
 
#define REST(field, docstring)
 
#define TYPE(bits, value)
 
#define RESERVED(bits)
 
#define PDU(name, docstring, fields, is_valid)
 
#define UINT(field, docstring, bits)
 
#define UINTVAR(field, docstring)
 
#define OCTSTR(field, docstring, lengthfield)
 
#define REST(field, docstring)
 
#define TYPE(bits, value)
 
#define RESERVED(bits)   bitpos += (bits);
 
#define PDU(name, docstring, fields, is_valid)
 
#define UINT(field, docstring, bits)   debug(dbg, 0, "%*s %s: %lu", level, "", docstring, p->field);
 
#define UINTVAR(field, docstring)   debug(dbg, 0, "%*s %s: %lu", level, "", docstring, p->field);
 
#define OCTSTR(field, docstring, lengthfield)
 
#define REST(field, docstring)
 
#define TYPE(bits, value)
 
#define RESERVED(bits)
 

Functions

WSP_PDUwsp_pdu_create (int type)
 
void wsp_pdu_destroy (WSP_PDU *pdu)
 
static int wsp_pdu_type (Octstr *data)
 
WSP_PDUwsp_pdu_unpack (Octstr *data)
 
static void fixup_length_fields (WSP_PDU *pdu)
 
Octstrwsp_pdu_pack (WSP_PDU *pdu)
 
void wsp_pdu_dump (WSP_PDU *pdu, int level)
 

Macro Definition Documentation

#define OCTSTR (   field,
  docstring,
  lengthfield 
)    p->field = NULL;
#define OCTSTR (   field,
  docstring,
  lengthfield 
)    octstr_destroy(p->field);
#define OCTSTR (   field,
  docstring,
  lengthfield 
)
#define OCTSTR (   field,
  docstring,
  lengthfield 
)
Value:
gw_assert(bitpos % 8 == 0); \
p->field = octstr_copy(data, bitpos / 8, p->lengthfield); \
bitpos += 8 * p->lengthfield;
#define octstr_copy(ostr, from, len)
Definition: octstr.h:178
gw_assert(wtls_machine->packet_to_send!=NULL)
#define OCTSTR (   field,
  docstring,
  lengthfield 
)    p->lengthfield = octstr_len(p->field);
#define OCTSTR (   field,
  docstring,
  lengthfield 
)
Value:
gw_assert(bitpos % 8 == 0); \
if (p->field != NULL) \
octstr_append(data, p->field); \
bitpos += 8 * octstr_len(p->field);
void octstr_append(Octstr *ostr1, const Octstr *ostr2)
Definition: octstr.c:1502
gw_assert(wtls_machine->packet_to_send!=NULL)
long octstr_len(const Octstr *ostr)
Definition: octstr.c:340
#define OCTSTR (   field,
  docstring,
  lengthfield 
)
Value:
debug(dbg, 0, "%*s %s:", level, "", docstring); \
octstr_dump(p->field, level + 1);
#define octstr_dump(ostr, level,...)
Definition: octstr.h:564
void debug(const char *place, int err, const char *fmt,...)
Definition: log.c:690
#define PDU (   name,
  docstring,
  fields,
  is_valid 
)
Value:
case name: {\
struct name *p; p = &pdu->u.name; \
fields \
} break;
char * name
Definition: smsc_cimd2.c:212
#define PDU (   name,
  docstring,
  fields,
  is_valid 
)
Value:
case name: {\
struct name *p; p = &pdu->u.name; \
fields \
} break;
char * name
Definition: smsc_cimd2.c:212
#define PDU (   name,
  docstring,
  fields,
  is_valid 
)
Value:
bitpos = 0; \
thistype = name; \
fields
char * name
Definition: smsc_cimd2.c:212
#define PDU (   name,
  docstring,
  fields,
  is_valid 
)
Value:
case name: { \
struct name *p = &pdu->u.name; \
gw_assert(bitpos % 8 == 0); \
if (bitpos / 8 != octstr_len(data)) { \
warning(0, "Bad length for " #name " PDU, " \
"expected %ld", bitpos / 8); \
} \
if (!(is_valid)) { \
warning(0, #name " PDU failed %s", #is_valid); \
} \
} break;
char * name
Definition: smsc_cimd2.c:212
void warning(int err, const char *fmt,...)
Definition: log.c:624
gw_assert(wtls_machine->packet_to_send!=NULL)
long octstr_len(const Octstr *ostr)
Definition: octstr.c:340
#define PDU (   name,
  docstring,
  fields,
  is_valid 
)
Value:
case name: { \
struct name *p; p = &pdu->u.name; \
fields \
} break;
char * name
Definition: smsc_cimd2.c:212
#define PDU (   name,
  docstring,
  fields,
  is_valid 
)
Value:
case name: { \
struct name *p = &pdu->u.name; \
gw_assert(bitpos % 8 == 0); \
} break;
char * name
Definition: smsc_cimd2.c:212
gw_assert(wtls_machine->packet_to_send!=NULL)
#define PDU (   name,
  docstring,
  fields,
  is_valid 
)
Value:
case name: { \
struct name *p = &pdu->u.name; \
debug(dbg, 0, "%*sWSP %s PDU at %p:", \
level, "", #name, (void *)pdu); \
fields \
} break;
char * name
Definition: smsc_cimd2.c:212
void debug(const char *place, int err, const char *fmt,...)
Definition: log.c:690
#define RESERVED (   bits)
#define RESERVED (   bits)
#define RESERVED (   bits)    bitpos += (bits);
#define RESERVED (   bits)    bitpos += (bits);
#define RESERVED (   bits)
#define RESERVED (   bits)    bitpos += (bits);
#define RESERVED (   bits)
#define REST (   field,
  docstring 
)    p->field = NULL;
#define REST (   field,
  docstring 
)    octstr_destroy(p->field);
#define REST (   field,
  docstring 
)
#define REST (   field,
  docstring 
)
Value:
gw_assert(bitpos % 8 == 0); \
if (bitpos / 8 <= octstr_len(data)) { \
p->field = octstr_copy(data, bitpos / 8, \
octstr_len(data) - bitpos / 8); \
bitpos = octstr_len(data) * 8; \
} else { \
p->field = octstr_create(""); \
}
#define octstr_copy(ostr, from, len)
Definition: octstr.h:178
#define octstr_create(cstr)
Definition: octstr.h:125
gw_assert(wtls_machine->packet_to_send!=NULL)
long octstr_len(const Octstr *ostr)
Definition: octstr.c:340
#define REST (   field,
  docstring 
)
#define REST (   field,
  docstring 
)
Value:
gw_assert(bitpos % 8 == 0); \
if (p->field != NULL) \
octstr_append(data, p->field); \
bitpos += 8 * octstr_len(p->field);
void octstr_append(Octstr *ostr1, const Octstr *ostr2)
Definition: octstr.c:1502
gw_assert(wtls_machine->packet_to_send!=NULL)
long octstr_len(const Octstr *ostr)
Definition: octstr.c:340
#define REST (   field,
  docstring 
)
Value:
debug(dbg, 0, "%*s %s:", level, "", docstring); \
octstr_dump(p->field, level + 1);
#define octstr_dump(ostr, level,...)
Definition: octstr.h:564
void debug(const char *place, int err, const char *fmt,...)
Definition: log.c:690
#define TYPE (   bits,
  value 
)
#define TYPE (   bits,
  value 
)
#define TYPE (   bits,
  value 
)
Value:
if ((bits) != lastnumbits || bitpos != lastpos) { \
lastval = octstr_get_bits(data, bitpos, (bits)); \
} \
if (lastval == (value)) \
return thistype; \
lastnumbits = (bits); \
lastpos = bitpos;
long octstr_get_bits(Octstr *ostr, long bitpos, int numbits)
Definition: octstr.c:1801
#define TYPE (   bits,
  value 
)    bitpos += (bits);
#define TYPE (   bits,
  value 
)
#define TYPE (   bits,
  value 
)
Value:
octstr_set_bits(data, bitpos, (bits), (value)); \
bitpos += (bits);
void octstr_set_bits(Octstr *ostr, long bitpos, int numbits, unsigned long value)
Definition: octstr.c:1847
#define TYPE (   bits,
  value 
)
#define UINT (   field,
  docstring,
  bits 
)    p->field = 0;
#define UINT (   field,
  docstring,
  bits 
)
#define UINT (   field,
  docstring,
  bits 
)    bitpos += (bits);
#define UINT (   field,
  docstring,
  bits 
)
Value:
p->field = octstr_get_bits(data, bitpos, (bits)); \
bitpos += (bits);
long octstr_get_bits(Octstr *ostr, long bitpos, int numbits)
Definition: octstr.c:1801
#define UINT (   field,
  docstring,
  bits 
)
#define UINT (   field,
  docstring,
  bits 
)
Value:
octstr_set_bits(data, bitpos, (bits), p->field); \
bitpos += (bits);
void octstr_set_bits(Octstr *ostr, long bitpos, int numbits, unsigned long value)
Definition: octstr.c:1847
#define UINT (   field,
  docstring,
  bits 
)    debug(dbg, 0, "%*s %s: %lu", level, "", docstring, p->field);
#define UINTVAR (   field,
  docstring 
)    p->field = 0;
#define UINTVAR (   field,
  docstring 
)
#define UINTVAR (   field,
  docstring 
)
#define UINTVAR (   field,
  docstring 
)
Value:
gw_assert(bitpos % 8 == 0); \
p->field = octstr_get_bits(data, bitpos + 1, 7); \
while (octstr_get_bits(data, bitpos, 1)) { \
bitpos += 8; \
p->field <<= 7; \
p->field |= octstr_get_bits(data, bitpos + 1, 7); \
} \
bitpos += 8;
long octstr_get_bits(Octstr *ostr, long bitpos, int numbits)
Definition: octstr.c:1801
gw_assert(wtls_machine->packet_to_send!=NULL)
#define UINTVAR (   field,
  docstring 
)
#define UINTVAR (   field,
  docstring 
)
Value:
gw_assert(bitpos % 8 == 0); \
octstr_append_uintvar(data, p->field); \
bitpos = 8 * octstr_len(data);
gw_assert(wtls_machine->packet_to_send!=NULL)
long octstr_len(const Octstr *ostr)
Definition: octstr.c:340
void octstr_append_uintvar(Octstr *ostr, unsigned long value)
Definition: octstr.c:1929
#define UINTVAR (   field,
  docstring 
)    debug(dbg, 0, "%*s %s: %lu", level, "", docstring, p->field);

Function Documentation

static void fixup_length_fields ( WSP_PDU pdu)
static

Definition at line 246 of file wsp_pdu.c.

References wsp_pdu::type.

Referenced by wsp_pdu_pack().

246  {
247  switch (pdu->type) {
248 #define PDU(name, docstring, fields, is_valid) \
249  case name: { \
250  struct name *p; p = &pdu->u.name; \
251  fields \
252  } break;
253 #define UINT(field, docstring, bits)
254 #define UINTVAR(field, docstring)
255 #define OCTSTR(field, docstring, lengthfield) \
256  p->lengthfield = octstr_len(p->field);
257 #define REST(field, docstring)
258 #define TYPE(bits, value)
259 #define RESERVED(bits)
260 #include "wsp_pdu.def"
261 #undef RESERVED
262 #undef TYPE
263 #undef REST
264 #undef OCTSTR
265 #undef UINTVAR
266 #undef UINT
267 #undef PDU
268  }
269 }
int type
Definition: wsp_pdu.h:87
WSP_PDU* wsp_pdu_create ( int  type)

Definition at line 68 of file wsp_pdu.c.

References panic, wsp_pdu::type, and type.

Referenced by make_confirmedpush_pdu(), make_connectreply_pdu(), make_push_pdu(), make_resume_reply_pdu(), pack_into_push_datagram(), pack_into_result_datagram(), and pack_sia().

68  {
69  WSP_PDU *pdu;
70 
71  pdu = gw_malloc(sizeof(*pdu));
72  pdu->type = type;
73 
74  switch (pdu->type) {
75 #define PDU(name, docstring, fields, is_valid) \
76  case name: {\
77  struct name *p; p = &pdu->u.name; \
78  fields \
79  } break;
80 #define UINT(field, docstring, bits) p->field = 0;
81 #define UINTVAR(field, docstring) p->field = 0;
82 #define OCTSTR(field, docstring, lengthfield) p->field = NULL;
83 #define REST(field, docstring) p->field = NULL;
84 #define TYPE(bits, value)
85 #define RESERVED(bits)
86 #include "wsp_pdu.def"
87 #undef RESERVED
88 #undef TYPE
89 #undef REST
90 #undef OCTSTR
91 #undef UINTVAR
92 #undef UINT
93 #undef PDU
94  default:
95  panic(0, "Internal error: Unknown PDU type %d", pdu->type);
96  break;
97  }
98 
99  return pdu;
100 }
int type
Definition: smsc_cimd2.c:215
int type
Definition: wsp_pdu.h:87
#define panic
Definition: log.h:87
void wsp_pdu_destroy ( WSP_PDU pdu)

Definition at line 102 of file wsp_pdu.c.

References panic, and wsp_pdu::type.

Referenced by main(), main_thread(), make_connectreply_pdu(), make_resume_reply_pdu(), pack_into_push_datagram(), pack_into_result_datagram(), pack_sia(), push_client_event_handle(), send_invoke(), and unpack_datagram().

102  {
103  if (pdu == NULL)
104  return;
105 
106  switch (pdu->type) {
107 #define PDU(name, docstring, fields, is_valid) \
108  case name: {\
109  struct name *p; p = &pdu->u.name; \
110  fields \
111  } break;
112 #define UINT(field, docstring, bits)
113 #define UINTVAR(field, docstring)
114 #define OCTSTR(field, docstring, lengthfield) octstr_destroy(p->field);
115 #define REST(field, docstring) octstr_destroy(p->field);
116 #define TYPE(bits, value)
117 #define RESERVED(bits)
118 #include "wsp_pdu.def"
119 #undef RESERVED
120 #undef TYPE
121 #undef REST
122 #undef OCTSTR
123 #undef UINTVAR
124 #undef UINT
125 #undef PDU
126  default:
127  panic(0, "Cannot destroy unknown WSP PDU type %d", pdu->type);
128  break;
129  }
130 
131  gw_free(pdu);
132 }
int type
Definition: wsp_pdu.h:87
#define panic
Definition: log.h:87
void wsp_pdu_dump ( WSP_PDU pdu,
int  level 
)

Definition at line 324 of file wsp_pdu.c.

References debug(), and wsp_pdu::type.

Referenced by main(), and pack_into_push_datagram().

324  {
325  char *dbg = "wap.wsp";
326 
327  switch (pdu->type) {
328 #define PDU(name, docstring, fields, is_valid) \
329  case name: { \
330  struct name *p = &pdu->u.name; \
331  debug(dbg, 0, "%*sWSP %s PDU at %p:", \
332  level, "", #name, (void *)pdu); \
333  fields \
334  } break;
335 #define UINT(field, docstring, bits) \
336  debug(dbg, 0, "%*s %s: %lu", level, "", docstring, p->field);
337 #define UINTVAR(field, docstring) \
338  debug(dbg, 0, "%*s %s: %lu", level, "", docstring, p->field);
339 #define OCTSTR(field, docstring, lengthfield) \
340  debug(dbg, 0, "%*s %s:", level, "", docstring); \
341  octstr_dump(p->field, level + 1);
342 #define REST(field, docstring) \
343  debug(dbg, 0, "%*s %s:", level, "", docstring); \
344  octstr_dump(p->field, level + 1);
345 #define TYPE(bits, value)
346 #define RESERVED(bits)
347 #include "wsp_pdu.def"
348 #undef RESERVED
349 #undef TYPE
350 #undef REST
351 #undef OCTSTR
352 #undef UINTVAR
353 #undef UINT
354 #undef PDU
355  default:
356  debug(dbg, 0, "%*sWSP PDU at %p:", level, "", (void *)pdu);
357  debug(dbg, 0, "%*s unknown type %u", level, "", pdu->type);
358  break;
359  }
360  debug("wap.wsp", 0, "%*sWSP PDU dump ends.", level, "");
361 }
void debug(const char *place, int err, const char *fmt,...)
Definition: log.c:690
int type
Definition: wsp_pdu.h:87
Octstr* wsp_pdu_pack ( WSP_PDU pdu)

Definition at line 271 of file wsp_pdu.c.

References fixup_length_fields(), octstr_create, panic, and wsp_pdu::type.

Referenced by main(), make_connectreply_pdu(), make_resume_reply_pdu(), pack_into_push_datagram(), pack_into_result_datagram(), pack_sia(), and send_invoke().

271  {
272  Octstr *data;
273  long bitpos;
274 
275  /* We rely on octstr_set_bits to lengthen our octstr as needed. */
276  data = octstr_create("");
277 
278  fixup_length_fields(pdu);
279 
280  bitpos = 0;
281  switch (pdu->type) {
282 #define PDU(name, docstring, fields, is_valid) \
283  case name: { \
284  struct name *p = &pdu->u.name; \
285  fields \
286  gw_assert(bitpos % 8 == 0); \
287  } break;
288 #define UINT(field, docstring, bits) \
289  octstr_set_bits(data, bitpos, (bits), p->field); \
290  bitpos += (bits);
291 #define UINTVAR(field, docstring) \
292  gw_assert(bitpos % 8 == 0); \
293  octstr_append_uintvar(data, p->field); \
294  bitpos = 8 * octstr_len(data);
295 #define OCTSTR(field, docstring, lengthfield) \
296  gw_assert(bitpos % 8 == 0); \
297  if (p->field != NULL) \
298  octstr_append(data, p->field); \
299  bitpos += 8 * octstr_len(p->field);
300 #define REST(field, docstring) \
301  gw_assert(bitpos % 8 == 0); \
302  if (p->field != NULL) \
303  octstr_append(data, p->field); \
304  bitpos += 8 * octstr_len(p->field);
305 #define TYPE(bits, value) \
306  octstr_set_bits(data, bitpos, (bits), (value)); \
307  bitpos += (bits);
308 #define RESERVED(bits) bitpos += (bits);
309 #include "wsp_pdu.def"
310 #undef RESERVED
311 #undef TYPE
312 #undef REST
313 #undef OCTSTR
314 #undef UINTVAR
315 #undef UINT
316 #undef PDU
317  default:
318  panic(0, "Packing unknown WSP PDU type %ld", (long) pdu->type);
319  }
320 
321  return data;
322 }
static void fixup_length_fields(WSP_PDU *pdu)
Definition: wsp_pdu.c:246
#define octstr_create(cstr)
Definition: octstr.h:125
Definition: octstr.c:118
int type
Definition: wsp_pdu.h:87
#define panic
Definition: log.h:87
static int wsp_pdu_type ( Octstr data)
static

Definition at line 136 of file wsp_pdu.c.

Referenced by wsp_pdu_unpack().

136  {
137  long bitpos;
138  long lastpos = -1;
139  long lastnumbits = -1;
140  long lastval = -1;
141  int thistype;
142 
143  /* This code looks slow, but an optimizing compiler will
144  * reduce it considerably. gcc -O2 will produce a single
145  * call to octstr_get_bits, folllowed by a sequence of
146  * tests on lastval. */
147 
148 /* Only UINT and RESERVED fields may precede the TYPE */
149 #define PDU(name, docstring, fields, is_valid) \
150  bitpos = 0; \
151  thistype = name; \
152  fields
153 #define UINT(field, docstring, bits) bitpos += (bits);
154 #define UINTVAR(field, docstring)
155 #define OCTSTR(field, docstring, lengthfield)
156 #define REST(field, docstring)
157 #define TYPE(bits, value) \
158  if ((bits) != lastnumbits || bitpos != lastpos) { \
159  lastval = octstr_get_bits(data, bitpos, (bits)); \
160  } \
161  if (lastval == (value)) \
162  return thistype; \
163  lastnumbits = (bits); \
164  lastpos = bitpos;
165 #define RESERVED(bits) bitpos += (bits);
166 #include "wsp_pdu.def"
167 #undef RESERVED
168 #undef TYPE
169 #undef REST
170 #undef OCTSTR
171 #undef UINTVAR
172 #undef UINT
173 #undef PDU
174 
175  return -1;
176 }
WSP_PDU* wsp_pdu_unpack ( Octstr data)

Definition at line 178 of file wsp_pdu.c.

References gw_assert(), wsp_pdu::type, warning(), and wsp_pdu_type().

Referenced by client_session(), main(), main_thread(), push_client_event_handle(), and unpack_datagram().

178  {
179  WSP_PDU *pdu = NULL;
180  long bitpos = 0;
181 
182  gw_assert(data != NULL);
183 
184  pdu = gw_malloc(sizeof(*pdu));
185 
186  pdu->type = wsp_pdu_type(data);
187 
188  switch (pdu->type) {
189 #define PDU(name, docstring, fields, is_valid) \
190  case name: { \
191  struct name *p = &pdu->u.name; \
192  fields \
193  gw_assert(bitpos % 8 == 0); \
194  if (bitpos / 8 != octstr_len(data)) { \
195  warning(0, "Bad length for " #name " PDU, " \
196  "expected %ld", bitpos / 8); \
197  } \
198  if (!(is_valid)) { \
199  warning(0, #name " PDU failed %s", #is_valid); \
200  } \
201  } break;
202 #define UINT(field, docstring, bits) \
203  p->field = octstr_get_bits(data, bitpos, (bits)); \
204  bitpos += (bits);
205 #define UINTVAR(field, docstring) \
206  gw_assert(bitpos % 8 == 0); \
207  p->field = octstr_get_bits(data, bitpos + 1, 7); \
208  while (octstr_get_bits(data, bitpos, 1)) { \
209  bitpos += 8; \
210  p->field <<= 7; \
211  p->field |= octstr_get_bits(data, bitpos + 1, 7); \
212  } \
213  bitpos += 8;
214 #define OCTSTR(field, docstring, lengthfield) \
215  gw_assert(bitpos % 8 == 0); \
216  p->field = octstr_copy(data, bitpos / 8, p->lengthfield); \
217  bitpos += 8 * p->lengthfield;
218 #define REST(field, docstring) \
219  gw_assert(bitpos % 8 == 0); \
220  if (bitpos / 8 <= octstr_len(data)) { \
221  p->field = octstr_copy(data, bitpos / 8, \
222  octstr_len(data) - bitpos / 8); \
223  bitpos = octstr_len(data) * 8; \
224  } else { \
225  p->field = octstr_create(""); \
226  }
227 #define TYPE(bits, value) bitpos += (bits);
228 #define RESERVED(bits) bitpos += (bits);
229 #include "wsp_pdu.def"
230 #undef RESERVED
231 #undef TYPE
232 #undef REST
233 #undef OCTSTR
234 #undef UINTVAR
235 #undef UINT
236 #undef PDU
237  default:
238  warning(0, "WSP PDU with unknown type %d", pdu->type);
239  gw_free(pdu);
240  return NULL;
241  }
242 
243  return pdu;
244 }
void warning(int err, const char *fmt,...)
Definition: log.c:624
static int wsp_pdu_type(Octstr *data)
Definition: wsp_pdu.c:136
gw_assert(wtls_machine->packet_to_send!=NULL)
int type
Definition: wsp_pdu.h:87
See file LICENSE for details about the license agreement for using, modifying, copying or deriving work from this software.