X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=ipv6_netmask_printing_fix.patch;fp=ipv6_netmask_printing_fix.patch;h=c626267787698140c2a982f0c9310b1ce5aba622;hb=85a463198d3e14f1f0f26676d47a23c19ad4228e;hp=c96f6eae01d1109f8ece20ed21222fe8b7b69d3b;hpb=ac0f3519bfc29a1b111b64b7d080f823ce80cb74;p=packages%2Febtables.git diff --git a/ipv6_netmask_printing_fix.patch b/ipv6_netmask_printing_fix.patch index c96f6ea..c626267 100644 --- a/ipv6_netmask_printing_fix.patch +++ b/ipv6_netmask_printing_fix.patch @@ -15,7 +15,7 @@ index 0465e77..52a8448 100644 printf("! "); printf("%s", ebt_ip6_to_numeric(&ipinfo->daddr)); - printf("/%s ", ebt_ip6_to_numeric(&ipinfo->dmsk)); -+ printf("%s ", ebt_ip6_mask_to_string(&ipinfo->smsk)); ++ printf("%s ", ebt_ip6_mask_to_string(&ipinfo->dmsk)); } if (ipinfo->bitmask & EBT_IP6_TCLASS) { printf("--ip6-tclass "); @@ -46,7 +46,7 @@ index d20b68e..2f73589 100644 + * /0000:0000:0000:0000:0000:0000:0000:0000 */ + static char buf[51+1]; + if (msk->s6_addr32[0] == 0xFFFFFFFFL && msk->s6_addr32[1] == 0xFFFFFFFFL && -+ msk->s6_addr32[2] == 0xFFFFFFFFL && msk->s6_addr32[3] == 0xFFFFFFFFL) ++ msk->s6_addr32[2] == 0xFFFFFFFFL && msk->s6_addr32[3] == 0xFFFFFFFFL) + *buf = '\0'; + else + sprintf(buf, "/%s", ebt_ip6_to_numeric(msk));