Skip to content

Commit

Permalink
[IPV4]: icmp_send() annotation
Browse files Browse the repository at this point in the history
The last argument is network-endian (it will go straight into the packet).

Signed-off-by: Al Viro <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Al Viro authored and David S. Miller committed Sep 29, 2006
1 parent 60cad5d commit e488301
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/net/icmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ struct dst_entry;
struct net_proto_family;
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_ioctl(struct sock *sk, int cmd, unsigned long arg);
extern void icmp_init(struct net_proto_family *ops);
Expand Down
2 changes: 1 addition & 1 deletion net/ipv4/icmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ static void icmp_reply(struct icmp_bxm *icmp_param, struct sk_buff *skb)
* 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;
int room;
Expand Down

0 comments on commit e488301

Please sign in to comment.