Re: [lisp-snmp] Memory usage of ASN.1 library
Brought to you by:
binghe
From: Chun T. (binghe) <bin...@gm...> - 2009-05-01 05:44:23
|
Great! And, please use my more updated version of ASN.1:OID-< as a work base: (defun oid-< (oid-1 oid-2) "test if oid-1 is oid-2's child" (let ((o-1-len (oid-length oid-1)) (o-2-len (oid-length oid-2))) (if (<= o-1-len o-2-len) nil (let ((o-1 (reverse (oid-number-list oid-1))) (o-2 (reverse (oid-number-list oid-2)))) (equal o-2 (nthcdr (- o-1-len o-2-len) o-1)))))) I believe it's more sufficient than before. 在 2009-5-1,13:41, John Fremlin 写道: > "Chun Tian (binghe)" <bin...@gm...> writes: > >> I believe the bug involved in my last patch is in function ASN.1:OID- >> <, below is a updated version: > > Thanks for finding that, I was confused about where it was happening. > > I will have a look at making a better oid-< > > Thanks again > > [...] > |