Ethereal-users: [Ethereal-users] GVRP pdu and protocol ID using RAW socket in Ethereal

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Hemant Rath <hemantrath@xxxxxxxxx>
Date: Sun, 25 Apr 2004 07:15:22 -0700 (PDT)
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




=====
Hemant Kr. Rath,
A/501, Hostel - 12,
IIT - Bombay,
Mumbai - 76
Ph: +91-9820717805


	
		
__________________________________
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
http://photos.yahoo.com/ph/print_splash