Lines Matching refs:ntohl
830 switch (ntohl(key->mask)) { in print_ipv4()
832 fprintf(f, "\n match IP ihl %u", ntohl(key->val) >> 24); in print_ipv4()
835 fprintf(f, "\n match IP dsfield %#x", ntohl(key->val) >> 16); in print_ipv4()
840 if (ntohl(key->mask) == 0x00ff0000) { in print_ipv4()
841 fprintf(f, "\n match IP protocol %d", ntohl(key->val) >> 16); in print_ipv4()
860 switch (ntohl(key->mask)) { in print_ipv4()
863 ntohl(key->val) & 0xffff); in print_ipv4()
867 ntohl(key->val) >> 16); in print_ipv4()
871 ntohl(key->val) & 0xffff, in print_ipv4()
872 ntohl(key->val) >> 16); in print_ipv4()
886 switch (ntohl(key->mask)) { in print_ipv6()
888 fprintf(f, "\n match IP ihl %u", ntohl(key->val) >> 24); in print_ipv6()
891 fprintf(f, "\n match IP dsfield %#x", ntohl(key->val) >> 16); in print_ipv6()
896 if (ntohl(key->mask) == 0x00ff0000) { in print_ipv6()
897 fprintf(f, "\n match IP protocol %d", ntohl(key->val) >> 16); in print_ipv6()
916 switch (ntohl(key->mask)) { in print_ipv6()
919 ntohl(key->val) & 0xffff); in print_ipv6()
923 ntohl(key->val) >> 16); in print_ipv6()
927 ntohl(key->val) & 0xffff, in print_ipv6()
928 ntohl(key->val) >> 16); in print_ipv6()
939 (unsigned int)ntohl(key->val), in print_raw()
940 (unsigned int)ntohl(key->mask), in print_raw()