struct mac_filter
{
char ether_dhost[6];
char ether_shost[6];
short ether_type;
};
struct packet_filter
{
struct mac_filter mac;
};
main()
{
struct packet_filter test;
test.mac= NULL;
}
i get
error: incompatible types when assigning to type ‘struct mac_filter’ from type ‘void *’
here i want to initialize all the member function of mac_filter to zero, is there any way to set them to zero instead to initializing each member functions to zero