diff options
author | WANG Cong <xiyou.wangcong@gmail.com> | 2014-08-25 20:03:46 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-08-25 20:21:26 -0400 |
commit | 6451b3f59ab39162d1fbb5a5d0c8f46c0d9e1231 (patch) | |
tree | 4c69c5ea34dee94244a6df028a9abfb1b8187abb /net/core | |
parent | 9c938cddc01d7e8a96e702183c822bf3e4452365 (diff) |
net: fix comments for __skb_flow_get_ports()
Fixes: commit 690e36e726d00d2 (net: Allow raw buffers to be passed into the flow dissector)
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/flow_dissector.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/core/flow_dissector.c b/net/core/flow_dissector.c index 8ffcc97871c8..ae8f0db67aed 100644 --- a/net/core/flow_dissector.c +++ b/net/core/flow_dissector.c | |||
@@ -26,10 +26,12 @@ static void iph_to_flow_copy_addrs(struct flow_keys *flow, const struct iphdr *i | |||
26 | } | 26 | } |
27 | 27 | ||
28 | /** | 28 | /** |
29 | * skb_flow_get_ports - extract the upper layer ports and return them | 29 | * __skb_flow_get_ports - extract the upper layer ports and return them |
30 | * @skb: buffer to extract the ports from | 30 | * @skb: sk_buff to extract the ports from |
31 | * @thoff: transport header offset | 31 | * @thoff: transport header offset |
32 | * @ip_proto: protocol for which to get port offset | 32 | * @ip_proto: protocol for which to get port offset |
33 | * @data: raw buffer pointer to the packet, if NULL use skb->data | ||
34 | * @hlen: packet header length, if @data is NULL use skb_headlen(skb) | ||
33 | * | 35 | * |
34 | * The function will try to retrieve the ports at offset thoff + poff where poff | 36 | * The function will try to retrieve the ports at offset thoff + poff where poff |
35 | * is the protocol port offset returned from proto_ports_offset | 37 | * is the protocol port offset returned from proto_ports_offset |