version 1.1.2.4, 2011/08/31 16:51:21
|
version 1.1.2.5, 2011/09/07 01:26:08
|
Line 175 io_buffer2vals(u_char *buf, int buflen, int vnum, int
|
Line 175 io_buffer2vals(u_char *buf, int buflen, int vnum, int
|
io_arraySet(vars, i, val); |
io_arraySet(vars, i, val); |
|
|
val->val_type = v[i].val_type; |
val->val_type = v[i].val_type; |
|
#if defined(__OpenBSD__) |
AIT_LEN(val) = betoh32(AIT_LEN(&v[i])); |
AIT_LEN(val) = betoh32(AIT_LEN(&v[i])); |
|
#else |
|
AIT_LEN(val) = be32toh(AIT_LEN(&v[i])); |
|
#endif |
|
|
switch (AIT_TYPE(val)) { |
switch (AIT_TYPE(val)) { |
case blob: |
case blob: |
Line 189 io_buffer2vals(u_char *buf, int buflen, int vnum, int
|
Line 193 io_buffer2vals(u_char *buf, int buflen, int vnum, int
|
case u16: |
case u16: |
case u32: |
case u32: |
case u64: |
case u64: |
|
#if defined(__OpenBSD__) |
val->val.net = betoh64(v[i].val.net); |
val->val.net = betoh64(v[i].val.net); |
|
#else |
|
val->val.net = be64toh(v[i].val.net); |
|
#endif |
break; |
break; |
case buffer: |
case buffer: |
case string: |
case string: |