Fix rule attribute comparison
Fix rule attribute comparison

Rules don't have unique identifiers, so all attributes are compared
by initializing the ID mask to ~0. This doesn't work however since
nl_object_identical verifies whether the ID attributes are actually
present before comparing the objects, which is never the case.

Work around by using the intersection of present attributes when
comparing two rule objects.

Signed-off-by: Patrick McHardy <3a4d625ce225e891399f98db96a382ac4a84080b@trash.net>

tgraf/libnl,thom311/libnl,cyclops8456/libnl3,tgraf/libnl,karlhiramoto/libnl,teto/libnl_old,cfriedt/libnl,teto/libnl_old,chitranshi/libnl,xin3liang/platform_external_libnl,greearb/libnl-ct,socketpair/libnl,teto/libnl_old,tgraf/libnl,HolyShitMan/libnl-1,chitranshi/libnl,claudelee/libnl,houstar/libnl,honsys/libnl,UnicronNL/libnl3,congwang/libnl,claudelee/libnl,tklauser/libnl,HolyShitMan/libnl-1,socketpair/libnl,greearb/libnl-ct,gxk/libnl,kolyshkin/libnl,baloo/libnl,geekboxzone/mmallow_external_libnl,yinquan529/platform-external-libnl,dsahern/libnl,Omegaphora/external_libnl,socketpair/libnl,mshirley/libnl,Distrotech/libnl,karlhiramoto/libnl,dsahern/libnl,vyos/libnl3,android-ia/platform_external_libnl,honsys/libnl,cyclops8456/libnl3,HolyShitMan/libnl-1,tgraf/libnl,UnicronNL/libnl3,mshirley/libnl,CyanogenMod/android_external_libnl,baloo/libnl,Distrotech/libnl,houstar/libnl,vyos/libnl3,xin3liang/platform_external_libnl,cyclops8456/libnl3,congwang/libnl,geekboxzone/lollipop_external_libnl,thiz11/platform_external_libnl,baloo/libnl,honsys/libnl,geekboxzone/lollipop_external_libnl,chitranshi/libnl,kolyshkin/libnl,thom311/libnl,claudelee/libnl,kolyshkin/libnl,UnicronNL/libnl3,baloo/libnl,gxk/libnl,Omegaphora/external_libnl,UnicronNL/libnl3,cyclops8456/libnl3,vyos/libnl3,cfriedt/libnl,congwang/libnl,tklauser/libnl,CyanogenMod/android_external_libnl,thom311/libnl,honsys/libnl,teto/libnl_old,geekboxzone/mmallow_external_libnl,karlhiramoto/libnl,dsahern/libnl,greearb/libnl-ct,tklauser/libnl,chitranshi/libnl,mshirley/libnl,tklauser/libnl,gxk/libnl,Distrotech/libnl,yinquan529/platform-external-libnl,claudelee/libnl,houstar/libnl,android-ia/platform_external_libnl,houstar/libnl,thiz11/platform_external_libnl,kolyshkin/libnl,cfriedt/libnl,HolyShitMan/libnl-1,congwang/libnl,cfriedt/libnl,dsahern/libnl,karlhiramoto/libnl,Distrotech/libnl,mshirley/libnl,vyos/libnl3