[SR-Dev] EBL dns entries

Andrei Pelinescu-Onciul andrei at iptel.org
Tue Mar 31 17:13:09 CEST 2009



Hi *,

Do you know of some dns server having some EBL records, that I can use
for testing? (just a few queries)

I'm writing right now EBL support for sip-router (the main differences
from k are that dns caching EBLs is supported too and this requires a
more compact structure without fixed size arrays).

BTW: there seem to be 2 small bugs in the k code:

dns_ebl_parser(...):

1.
    len = *rdata;
    ^^^^^^^^^^^^ this is the position and not the len
    if (rdata + 1 + len >= end)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^ len being the position this is useless
   it should be something like:
    if (((rdata+4)>end)||((rdata+1+1+rdata[1]+2)>end)) goto error;
   (4 being the minimum size for an ebl and the other expression
     being ebl with minimum apex)

2.
    ebl->apex_len=dn_expand(msg, end, rdata, ebl->apex, MAX_DNS_NAME-1);
           ^^^^^^^^^ dn_expand returns the compressed len so this should
                     be replaced by ebl->apex_len=strlen(ebl->apex).

Also why >= instead of >?

Andrei



More information about the sr-dev mailing list