Radclient : received bad packet
Arvind Chauhan
abbey875 at gmail.com
Sun Oct 6 10:49:40 CEST 2019
with fr_strerror(), I m getting unknown error.
radclient: received bad packet: (unknown error)
Thanks,
Arvind Chauhan
On Sat, Oct 5, 2019 at 5:10 PM Alan DeKok <aland at deployingradius.com> wrote:
> 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.
>
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
More information about the Freeradius-Users
mailing list