[ns] hello (ZRP)

Batbold Toiruul tulaanaa1 at gmail.com
Tue Nov 18 06:44:12 PST 2008


Dear ns users,
from zrp.cc code, Could anyone explain below piece of code to me, please?

if (hdrc->ptype() == PT_ZRP) {
    jem =  hdrip->ttl();
    hdrip->ttl() -= 1;
    assert(jem == (hdrip->ttl() + 1) );
    if (hdrip->ttl() < 0) {
      zdrop(p, DROP_RTR_TTL);
      return;
    }


More information about the Ns-users mailing list