LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-25-2004, 09:06 AM   #1
hemantrath
LQ Newbie
 
Registered: Apr 2004
Posts: 6

Rep: Reputation: 0
GVRP pdu and protocol ID using RAW socket


Hi,

I'm using raw socket to form my own packet for GVRP pdu. The packet structure is as follows.
struct garp_packet {
unsigned char dest_hw_addr[6]; //MAC address only: 01-80-C2-00-00-21
unsigned char src_hw_addr[6]; //MAC address
unsigned char proto_id[2];
unsigned char attribute_type[1];
unsigned char attribute_length[1];
unsigned char attribute_event[1];
unsigned char attribute_value[2];
unsigned char end_mark[1];
};

Do I need to add anything else in the pdu?

If I put the protocol ID as 0x0001 (PROTOCOL ID for GVRP), then the ethereal tells me: Protolc: LLC, and [Malformed Packet]

Do I need to add the checksum field in the packet? I do not understand, whether it is an ethereal problem or packet error. Please help me.

Regards and thanks,

-Hemant
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Raw socket with perl Whiteghost Linux - General 1 10-14-2005 10:29 AM
Raw Socket Programing djgerbavore Programming 2 08-18-2004 12:58 PM
Socket Raw linuxanswer Programming 1 04-01-2004 09:43 PM
ping without raw socket linuxnw Linux - Networking 3 12-09-2003 11:57 PM
raw socket permition moonloader Linux - Networking 2 12-08-2003 09:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:11 AM.

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