LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-25-2004, 05:42 AM   #1
abdullahgee
Member
 
Registered: Apr 2004
Posts: 30

Rep: Reputation: 15
Sturcture for RADIUS packet


please send me the RADIUS packet format (implemented in C), just send sturct defined in c language for the RADIUS packet. please help me out.

Thank You in anticipation.
 
Old 04-25-2004, 06:22 PM   #2
deiussum
Member
 
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 32
Read the RFC here. It's not that hard to figure out the packet from at from that. If you can't even figure out the packet format from that, then you probably are not ready to try and program something using the RADIUS protocol...
 
Old 04-26-2004, 09:08 PM   #3
abdullahgee
Member
 
Registered: Apr 2004
Posts: 30

Original Poster
Rep: Reputation: 15
tell me that should we have to define different struct for attributes or define whole RADIUS packet along with attributes within one struct in C language.
 
Old 04-27-2004, 08:18 AM   #4
deiussum
Member
 
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 32
It's really up to you how you do it, but because it's a UDP protocol, you need to make sure when you do the send, that everything is sent in a single call to the send function, attributes and all.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Packet Filter to redirect a packet to a user level process akawale Linux - Networking 3 09-01-2006 12:06 PM
how do i read the data in the packet that i have captured after packet capture? gajaykrishnan Programming 23 04-19-2006 05:09 AM
packet fragmentation in packet forwarding code cranium2004 Linux - Networking 0 05-16-2005 04:05 AM
How to change Packet to look like a Windows packet? TimeFade Linux - Networking 10 08-28-2003 08:08 AM
Suggestions for packet sniffer w/ packet viewing? TruckStuff Linux - Networking 5 05-31-2002 09:50 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration