my code is as follows
struct packetheader
{
__u16 fcf;
__u8 seq;
__u8 dest[16];
__u8 src[16];
#if defined dis
__u32 dispatch;
#endif
}
struct packetheader* uncompressed()
{
struct packetheader *pkhdr;
pkhdr->dispatch=0x00000000;//segmentation fault
return pkhdr;
}
getting a segmentation fault, when trying to assign values to dispatch which is __u32 type