提交 e4883014 编写于 作者: A Al Viro 提交者: David S. Miller

[IPV4]: icmp_send() annotation

The last argument is network-endian (it will go straight into the packet).
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 60cad5da
...@@ -38,7 +38,7 @@ struct dst_entry; ...@@ -38,7 +38,7 @@ struct dst_entry;
struct net_proto_family; struct net_proto_family;
struct sk_buff; struct sk_buff;
extern void icmp_send(struct sk_buff *skb_in, int type, int code, u32 info); extern void icmp_send(struct sk_buff *skb_in, int type, int code, __be32 info);
extern int icmp_rcv(struct sk_buff *skb); extern int icmp_rcv(struct sk_buff *skb);
extern int icmp_ioctl(struct sock *sk, int cmd, unsigned long arg); extern int icmp_ioctl(struct sock *sk, int cmd, unsigned long arg);
extern void icmp_init(struct net_proto_family *ops); extern void icmp_init(struct net_proto_family *ops);
......
...@@ -430,7 +430,7 @@ static void icmp_reply(struct icmp_bxm *icmp_param, struct sk_buff *skb) ...@@ -430,7 +430,7 @@ static void icmp_reply(struct icmp_bxm *icmp_param, struct sk_buff *skb)
* MUST reply to only the first fragment. * MUST reply to only the first fragment.
*/ */
void icmp_send(struct sk_buff *skb_in, int type, int code, u32 info) void icmp_send(struct sk_buff *skb_in, int type, int code, __be32 info)
{ {
struct iphdr *iph; struct iphdr *iph;
int room; int room;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册