<p></p>
<p>Ok, so an update, in order for auth_radius to work with freeradius-client <code>VENDOR()</code> must be defined in the headers.</p>
<p>Currently <code>VENDOR()</code> is being defined in the radcli library as <code>#define VENDOR(x) (((x) >> 16) & 0xffff)</code>(<a href="https://github.com/radcli/radcli/blob/f0d1a1704595d62182d6a03c980ed07e906374a4/include/radcli/radcli.h#L56">https://github.com/radcli/radcli/blob/f0d1a1704595d62182d6a03c980ed07e906374a4/include/radcli/radcli.h#L56</a>)<br>
but is missing from freeradius-client.</p>
<p>By adding the line in <code>misc_radius/radius.h</code> there are no more implicit declarations and the module is compiled properly by using <code>FREERADIUS=1 make</code>, and properly works (headers are being added with the right attribute codes).</p>
<p>I think that the proper place to add the VENDOR definition is here:</p>
<p><a href="https://github.com/kamailio/kamailio/blob/e8ce5cff74c3d53df361e42746bb4a7c1f8b6214/src/modules/misc_radius/radius.h#L44">https://github.com/kamailio/kamailio/blob/e8ce5cff74c3d53df361e42746bb4a7c1f8b6214/src/modules/misc_radius/radius.h#L44</a></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2496#issuecomment-704768118">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZKHUGTXE6Q5MZPRMUTSJQOLZANCNFSM4SEIW4RQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZPD2TONKCAADKV7O3TSJQOLZA5CNFSM4SEIW4R2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFIA6Q5Q.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2496#issuecomment-704768118",
"url": "https://github.com/kamailio/kamailio/issues/2496#issuecomment-704768118",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>