~jsvoboda/helenos/dnsr

« back to all changes in this revision

Viewing changes to uspace/srv/net/dnsres/query.c

  • Committer: Jiri Svoboda
  • Date: 2012-08-12 20:17:31 UTC
  • Revision ID: jiri@wiwaxia-20120812201731-9vpiajuzgs8wojy1
Fixes to get DNS query acceptable by looking at analyzer output. Fix assertion failure in UDP.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 */
35
35
 
36
36
#include <errno.h>
 
37
#include <mem.h>
37
38
 
38
39
#include "dns_std.h"
39
40
#include "dns_type.h"
53
54
        question.qtype = DTYPE_A;
54
55
        question.qclass = DC_IN;
55
56
 
 
57
        memset(&msg, 0, sizeof(msg));
 
58
 
56
59
        list_initialize(&msg.question);
57
60
        list_append(&question.msg, &msg.question);
58
61