net: introduce proto_ports_offset()
authorChangli Gao <xiaosuo@gmail.com>
Tue, 17 Aug 2010 19:03:44 +0000 (19:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Aug 2010 00:16:23 +0000 (17:16 -0700)
commite760702ed8333588f9f21e7bf6597873993006f1
tree75a0be41c269d953a48edfa3d052a08352f85bcd
parentdbe5775bbc00116ed5699babfe17c54f32eb34c3
net: introduce proto_ports_offset()

Introduce proto_ports_offset() for getting the position of the ports or
SPI in the message of a protocol.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/in.h