Radclient : received bad packet
aland at deployingradius.com
Sat Oct 5 13:40:26 CEST 2019
On Oct 5, 2019, at 6:43 AM, Arvind Chauhan <abbey875 at gmail.com> wrote:
> I am new in freeradius.
> I am generating DM-request Package from Radius server side with below
> mention command Acct-Session-ID and NAS-IP_address taken as random value
> for testing:
> echo "User-Name=arv,Acct-Session-Id=12354679, NAS-IP_Address=188.8.131.52"|
> radclient 184.108.40.206:3799 disconnect testing123
> Attached with mail
> radclient: received bad packet
> # What is causing this problem and how we can solve this problem?
Print the actual error message:
printf( "radclient: received bad packet: %s\n",strerror(errno));
This is wrong. You should use fr_strerror(), which returns a descriptive message. strerror() is for getting errors from system calls / system libraries. We use our own error wrapper.
More information about the Freeradius-Users