Can anybody please help me difference between packet_ops_spkt and packet_ops structures operations.Where is used packet_ops_spkt and how to use packet_ops. This both structures having Linux kernel source code under source/net/packet/af_packet.c
Google it and for your reference,
http://lxr.free-electrons.com/source/net/packet/af_packet.c#L2788
If sock->type is SOCK_PACKET then use the packet_ops_spkt stucture
The SOCK_PACKET is used to write raw socket, if you create socket with SOCK_RAW type.
http://www.masterraghu.com/subjects/np/introduction/unix_network_programming_v1.3/ch29lev1sec4.html