How to access IP_DF and IP_MF from iph->frag_offset when using netfilter
问题 I am trying to write a netfilter module and want to access the fields of the IPHeader that denotes the DF and MF fields. I can access most other fields as desired but I think I have to extract the DF and MF fields from the ipheader in the struct and manipulate them say for example I want to set or unset the DF bit depending on the type of packet I receive. The below structure has 'frag_off' how do I access/rewrite IP_DF and IP_MF from this? struct iphdr { #if defined(__LITTLE_ENDIAN_BITFIELD)