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
|