Commit 4b06a7cf authored by Al Viro's avatar Al Viro Committed by David S. Miller

[IPV4]: ip_local_error() ipv4 address argument annotated

daddr is net-endian
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e25d2ca6
...@@ -364,7 +364,7 @@ extern int ip_ra_control(struct sock *sk, unsigned char on, void (*destructor)(s ...@@ -364,7 +364,7 @@ extern int ip_ra_control(struct sock *sk, unsigned char on, void (*destructor)(s
extern int ip_recv_error(struct sock *sk, struct msghdr *msg, int len); extern int ip_recv_error(struct sock *sk, struct msghdr *msg, int len);
extern void ip_icmp_error(struct sock *sk, struct sk_buff *skb, int err, extern void ip_icmp_error(struct sock *sk, struct sk_buff *skb, int err,
u16 port, u32 info, u8 *payload); u16 port, u32 info, u8 *payload);
extern void ip_local_error(struct sock *sk, int err, u32 daddr, u16 dport, extern void ip_local_error(struct sock *sk, int err, __be32 daddr, u16 dport,
u32 info); u32 info);
/* sysctl helpers - any sysctl which holds a value that ends up being /* sysctl helpers - any sysctl which holds a value that ends up being
......
...@@ -283,7 +283,7 @@ void ip_icmp_error(struct sock *sk, struct sk_buff *skb, int err, ...@@ -283,7 +283,7 @@ void ip_icmp_error(struct sock *sk, struct sk_buff *skb, int err,
kfree_skb(skb); kfree_skb(skb);
} }
void ip_local_error(struct sock *sk, int err, u32 daddr, u16 port, u32 info) void ip_local_error(struct sock *sk, int err, __be32 daddr, u16 port, u32 info)
{ {
struct inet_sock *inet = inet_sk(sk); struct inet_sock *inet = inet_sk(sk);
struct sock_exterr_skb *serr; struct sock_exterr_skb *serr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment