lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 4 Jul 2014 21:43:12 +0530 (IST)
From:	Govindarajulu Varadarajan <_govind@....com>
To:	ben@...adent.org.uk, davem@...emloft.net
cc:	netdev@...r.kernel.org
Subject: query: ethtool --show-nfc mask interpretation

I was working on ethtool --show-nfc implementation for enic.

While displaying, ethtool displays the 1's compliment of
ethtool_rx_flow_spec->m_u.tcp_ip4_spec.psrc

I could not understand how to interpret the mask output

For eg.
[root@...3 linux-next]# ethtool -n enp9s0
8 RX rings available
Total 2 rules

Filter: 0
         Rule Type: TCP over IPv4
         Src IP addr: 10.65.79.1 mask: 255.255.0.0
         Dest IP addr: 10.106.186.163 mask: 255.255.255.255
         TOS: 0x0 mask: 0x0
         Src port: 51331 mask: 0xff
         Dest port: 22 mask: 0xffff
         Action: Direct to queue 4


The mask for src port is 0x00ff. Does that mean 8 bits in lsb should match and
the other 8 bits in msb should be ignored? Or is it the other way?

Thanks
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ