Re: Transmitted packet

2005-09-22 Thread Alan DeKok
"Iandc Davies" <[EMAIL PROTECTED]> wrote:
> So, if I was to sent a packet to the radius server what format would it be

  Ideally, you use the API's, and don't worry about the format.
That's what API's are for.

> I was running under the understanding that I needed to populate the
> contents of the RADIUS_PACKET structure,
> therefore :-

  Yes.  See rad_send(), which uses these fields to create a RADIUS packet.

> Apart from the above is there anything else that needs filling in ?

  The socket to use? packet->sockfd is used to send the packet.

  And the IP addresses to use, including ports.

  Alan DeKok.

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Transmitted packet

2005-09-21 Thread Iandc Davies


> "Iandc Davies" <[EMAIL PROTECTED]> wrote:
> The contents of the transmitted packet include an uint8_t *data.
>
> What exactly is this pointing to ?

>>  The transmitted packet.
>>  Your terminology is confused:

Aaahhh, I think it is.
OK.

>>   - RADIUS_PACKET = internal FreeRADIUS data structure holdin uint8_t
*data
>>   - uint8_t *data = actual RADIUS packet sent via "sendto"

>>  Alan DeKok.

So, if I was to sent a packet to the radius server what format would it be
?
I was running under the understanding that I needed to populate the
contents of the RADIUS_PACKET structure,
therefore :-

int sockfd-
uint32_t  src_ipaddr  -
uint32_t  dst_ipaddr  -
u_short   src_port-
u_short   dst_port-
int id  - to be populated by me
unsigned int  code- to be populated by me
uint8_t   vector[16]  - to be populated by me
time_ttimestamp   -
int verified  -
uint8_t   *data   -
int data_len- to be populated by me
VALUE_PAIR  *vps- to be populated by me


Apart from the above is there anything else that needs filling in ?

 or am I completely wrong again ?

Ian Davies {02476 564662}
  Internal   (x740 4662)
IMS-SIPAC
Software Development Engineer


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Transmitted packet

2005-09-20 Thread Alan DeKok
"Iandc Davies" <[EMAIL PROTECTED]> wrote:
> The contents of the transmitted packet include an uint8_t *data.
> 
> What exactly is this pointing to ?

  The transmitted packet.

  Your terminology is confused:

   - RADIUS_PACKET = internal FreeRADIUS data structure holdin uint8_t *data
   - uint8_t *data = actual RADIUS packet sent via "sendto"

> The radius.c code sems to check it the first time round against NULL ?

  Yes.  See the comments in the code.  The same packet may be sent
multiple times.

  Alan DeKok.

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


RE: Transmitted packet

2005-09-20 Thread Jonathan De Graeve
Actie voltooid.

Wordt naar zowel Wendy als kathleen gestuurd.

J.

-- 
Jonathan De Graeve
Network/System Administrator
Imelda vzw
Informatica Dienst
015/50.52.98
[EMAIL PROTECTED]

-
Always read the manual for the correct way to do things because the
number of incorrect ways to do things is almost infinite
-

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Iandc
Davies
Verzonden: dinsdag 20 september 2005 15:05
Aan: freeradius-users@lists.freeradius.org
Onderwerp: Transmitted packet

All,

The contents of the transmitted packet include an uint8_t *data.

What exactly is this pointing to ?
The radius.c code sems to check it the first time round against NULL ?

Ian Davies {02476 564662}
  Internal   (x740 4662)
IMS-SIPAC
Software Development Engineer


- 
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html




- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html