#ifndef PKT_GEN_

#include "xdsl_types.h"
#define PKT_GEN_
typedef struct PktConf_s {
	struct {
		char*			content;	/* content field in packet */
		unsigned int	length;		/* content length */
	} payload;

	struct {
		char			da[6];		/* Destination mac */
		char			sa[6];		/* Destination mac */
		unsigned short	etherType;	/* ether type */
	} ether_header;

	#define conf_dmac       ether_header.da
	#define conf_smac       ether_header.sa
	#define conf_ethtype        ether_header.etherType

} PktConf_t;


typedef struct _etherHdr_s {
	uint8   da[6], sa[6];
	uint16  etherType;
} _etherHdr_t;

void protoForm_vsp_ether(int8 * pktBuf, uint32 l2Flag,
						int8 * da, int8 * sa, 
						uint16 etherType,
						int8 * content,
						uint32 * len);


unsigned int pktGen(PktConf_t *, char *);
#endif