|
|
@@ -579,7 +579,8 @@ int ip_options_rcv_srr(struct sk_buff *skb);
|
|
|
*/
|
|
|
|
|
|
void ipv4_pktinfo_prepare(const struct sock *sk, struct sk_buff *skb);
|
|
|
-void ip_cmsg_recv_offset(struct msghdr *msg, struct sk_buff *skb, int tlen, int offset);
|
|
|
+void ip_cmsg_recv_offset(struct msghdr *msg, struct sock *sk,
|
|
|
+ struct sk_buff *skb, int tlen, int offset);
|
|
|
int ip_cmsg_send(struct sock *sk, struct msghdr *msg,
|
|
|
struct ipcm_cookie *ipc, bool allow_ipv6);
|
|
|
int ip_setsockopt(struct sock *sk, int level, int optname, char __user *optval,
|
|
|
@@ -601,7 +602,7 @@ void ip_local_error(struct sock *sk, int err, __be32 daddr, __be16 dport,
|
|
|
|
|
|
static inline void ip_cmsg_recv(struct msghdr *msg, struct sk_buff *skb)
|
|
|
{
|
|
|
- ip_cmsg_recv_offset(msg, skb, 0, 0);
|
|
|
+ ip_cmsg_recv_offset(msg, skb->sk, skb, 0, 0);
|
|
|
}
|
|
|
|
|
|
bool icmp_global_allow(void);
|