<div dir="ltr">Dear NDN researchers,<div><br></div><div>I am studying code on interest.cpp. I am particularly curious on the name comparison with </div><div>exclude() which is specified in</div><div><br></div><div><a href="https://github.com/NDNUtils/NDNSIM/blob/master/src/ndnSIM/ndn-cxx/src/interest.cpp#L171-L196">https://github.com/NDNUtils/NDNSIM/blob/master/src/ndnSIM/ndn-cxx/src/interest.cpp#L171-L196</a><br></div><div><br></div><div><div>// check Exclude</div><div>  // Exclude won't be violated if Interest Name is same as Data full Name</div><div>  if (!getExclude().empty() && fullNameLength > interestNameLength) {</div><div>    if (interestNameLength == fullNameLength - 1) {</div><div>      // component to exclude is the digest</div><div>      if (getExclude().isExcluded(data.getProducerUid().get(interestNameLength)))</div><div>        return false;</div><div>      // There's opportunity to inspect the Exclude filter and determine whether</div><div>      // the digest would make a difference.</div><div>      // eg. "<NameComponent>AA</NameComponent><Any/>" doesn't exclude any digest -</div><div>      //     fullName not needed;</div><div>      //     "<Any/><NameComponent>AA</NameComponent>" and</div><div>      //     "<Any/><ImplicitSha256DigestComponent>ffffffffffffffffffffffffffffffff</div><div>      //      </ImplicitSha256DigestComponent>"</div><div>      //     excludes all digests - fullName not needed;</div><div>      //     "<Any/><ImplicitSha256DigestComponent>80000000000000000000000000000000</div><div>      //      </ImplicitSha256DigestComponent>"</div><div>      //     excludes some digests - fullName required</div><div>      // But Interests that contain the exact Data Name before digest and also</div><div>      // contain Exclude filter is too rare to optimize for, so we request</div><div>      // fullName no mater what's in the Exclude filter.</div><div>    }</div><div>    else {</div><div>      // component to exclude is not the digest</div><div>      if (getExclude().isExcluded(dataNamePuid.get(interestNameLength)))</div><div>        return false;</div><div>    }</div><div>  }</div></div><div><br></div><div>What does it exactly do>? and Can I delete this code ? If I remove them, is there any problem happening?</div><div><br></div><div>Best wishes,</div><div><br></div><div>inchan Hwang</div><div><br></div><div><br></div></div>