26 Dec
2012
26 Dec
'12
10:49 p.m.
JCA wrote:
I added the VENDOR definition that I mentioned above to both client and server already.
And the attribute? Note also that the dictionary file format is NOT the same for the client and server code.
I included the code because I can't understand how it could ever work. How can the comparison between attr->value and attribute, as I described, ever succeed? The value of attribute as received from rc_avpair_gen() contains both the vendor ID and the attribute identifier, whereas the value of attr->value only contains the attribute identifier. This comparison can never succeed.
My reading of the code shows that the dictionary attribute contains the vendor ID... just like the data taken from the packet. See dict.c. Alan DeKok.