| 1443 | } |
| 1444 | |
| 1445 | static int process_decom_hostname(struct event_info *e) |
| 1446 | { |
| 1447 | if (e->state == 0) { |
| 1448 | ++e->state; |
| 1449 | uint32_t n; |
| 1450 | memcpy(&n, e->rd_buf, sizeof(n)); |
| 1451 | e->need = htonl(n); |
| 1452 | return 0; |
| 1453 | } |
| 1454 | char host[e->need + 1]; |
| 1455 | memcpy(host, e->rd_buf, e->need); |
| 1456 | host[e->need] = 0; |
| 1457 | decom(host); |
| 1458 | message_done(e); |
| 1459 | return 0; |
| 1460 | } |
| 1461 | |
| 1462 | static int process_hdr(struct event_info *e) |
| 1463 | { |
no test coverage detected