Hi Feng, 2016-09-27 14:00 GMT+08:00 Gao Feng <fgao@xxxxxxxxxx>: > Hi Liping, > >> >> This xt_osf_user_finger{} is carefully designed, no padding now, and >> will not be changed in the future, otherwise backward compatibility will >> be broken. > > Yes, there is no padding now. So it is ok to use memcmp now. > I am afraid the struct would be modified for other requirements. This is structure was passed by netlink attribute, so modify it will break backward compatibility. > > If it is never changed forever, it is ok certainly. > >> >> I don't think this convert is necessary, actually it is a little ugly, and will >> increase the maintenance burden. > > I just want the codes don't depend any implicit rule. > > It is a tradeoff. If never change, needn't do any convert. > If may change, the memcmp is a little dangerous. > > Regards > Feng -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html