/* It is provided just because the creation of an rpcap header is a common task. It accepts all the values that appears into an rpcap_header, and it puts them in place using the proper hton() calls. */
void rpcap_createhdr(struct rpcap_header *header, uint8 ver, uint8 type, uint16 value, uint32 length)
/* It is provided just because the creation of an rpcap header is a common task. It accepts all the values that appears into an rpcap_header, and it puts them in place using the proper hton() calls. */
void rpcap_createhdr(struct rpcap_header *header, uint8 ver, uint8 type, uint16 value, uint32 length)
{
	memset(header, 0, sizeof(struct rpcap_header));
	header->ver = ver;
	header->type = type;
	header->value = htons(value);
	header->plen = htonl(length);
}