~ubuntu-branches/ubuntu/raring/maradns/raring

« back to all changes in this revision

Viewing changes to server/udpsuccess.c

  • Committer: Bazaar Package Importer
  • Author(s): Kai Hendry
  • Date: 2010-01-24 12:17:40 UTC
  • mfrom: (1.1.13 upstream) (10.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100124121740-a4e1fjobwaouz443
Tags: 1.4.02-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (c) 2002-2007 Sam Trenholme
 
1
/* Copyright (c) 2002-2008 Sam Trenholme
2
2
 *
3
3
 * TERMS
4
4
 *
39
39
extern rr *seenlist[256];
40
40
extern int seenlist_where;
41
41
extern ipv4pair long_packet[512];
 
42
extern int calc_ra_value(); /* Make -Wall happy */
42
43
 
43
44
/* If we successfully found a record, spit out that record on the
44
45
   udp packet.
472
473
    header.opcode = 0;
473
474
    header.tc = 0;
474
475
    header.rd = rd_val; /* RDBUG udpsuccess */
475
 
    header.ra = ra_value;
 
476
    header.ra = calc_ra_value(ra_value);
476
477
    header.z = 0;
477
478
    header.rcode = 0; /* No error */
478
479
    header.qdcount = 1;