What is, exactly your trouble?
If the posted ones are your exact requirements (there isn't an already defined struct for this, is there?), then the coding is just straightforward:
struct IPV6header
{
u_int version: 4;
u_int traffic_class: 8;
u_char source_addr[16];
u_char dest_addr[16];
};