Radclient : received bad packet

Alan DeKok 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=1.1.1.1"|
> radclient 1.1.1.1:3799 disconnect testing123
> 
> code::
> 
> Attached with mail
> 
> Error:
> 
> 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.

  Alan DeKok.




More information about the Freeradius-Users mailing list