Changeset 79f994
- Timestamp:
- 02/08/07 21:53:37 (6 years ago)
- Branches:
- master, iodine-0.4, iodine-0.5, iodine-0.6
- Children:
- 71e935
- Parents:
- a8127f
- git-author:
- Erik Ekman <yarrick@…> (02/08/07 21:53:37)
- git-committer:
- Erik Ekman <yarrick@…> (02/08/07 21:53:37)
- File:
-
- 1 edited
-
tests/dns.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/dns.c
rda636b r79f994 50 50 51 51 static char *msgData = "this is the message to be delivered"; 52 static char *topdomain = "kryo.se"; 52 53 53 54 static char *queryData = "HELLO this is the test data"; … … 151 152 { 152 153 char buf[512]; 154 char *domain; 153 155 struct query q; 154 156 int len; … … 160 162 len = sizeof(queryPacket) - 1; 161 163 162 ret = dns_decode(buf, sizeof(buf), &q, QR_QUERY, queryPacket, len); 164 dns_decode(buf, sizeof(buf), &q, QR_QUERY, queryPacket, len); 165 domain = strstr(q.name, topdomain); 166 ret = decode_data(buf, sizeof(buf), q.name, domain); 163 167 164 168 fail_unless(strncmp(buf, recData, ret) == 0, "Did not extract expected host: '%s'", buf);
Note: See TracChangeset
for help on using the changeset viewer.
