The following case statement in f_u32.c may be the cause:

        case 20:
                switch (ntohl(key->mask)) {
                case 0x0000ffff:
                        fprintf(f, "\n  match sport %u",
                                ntohl(key->val) & 0xffff);
                        return;
                case 0xffff0000:
                        fprintf(f, "\n  match dport %u",
                                ntohl(key->val) >> 16);
                        return;
                case 0xffffffff:
                        fprintf(f, "\n  match sport %u, match dport %u",
                                ntohl(key->val) & 0xffff,
                                ntohl(key->val) >> 16);

                        return;
                }

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/746187

Title:
  tc -p option transposes dport and sport output

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to