|
@@ -56,6 +56,7 @@ static inline unsigned int ip_hdrlen(const struct sk_buff *skb)
|
|
}
|
|
}
|
|
|
|
|
|
struct ipcm_cookie {
|
|
struct ipcm_cookie {
|
|
|
|
+ struct sockcm_cookie sockc;
|
|
__be32 addr;
|
|
__be32 addr;
|
|
int oif;
|
|
int oif;
|
|
struct ip_options_rcu *opt;
|
|
struct ip_options_rcu *opt;
|
|
@@ -550,7 +551,7 @@ int ip_options_rcv_srr(struct sk_buff *skb);
|
|
|
|
|
|
void ipv4_pktinfo_prepare(const struct sock *sk, 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 offset);
|
|
void ip_cmsg_recv_offset(struct msghdr *msg, struct sk_buff *skb, int offset);
|
|
-int ip_cmsg_send(struct net *net, struct msghdr *msg,
|
|
|
|
|
|
+int ip_cmsg_send(struct sock *sk, struct msghdr *msg,
|
|
struct ipcm_cookie *ipc, bool allow_ipv6);
|
|
struct ipcm_cookie *ipc, bool allow_ipv6);
|
|
int ip_setsockopt(struct sock *sk, int level, int optname, char __user *optval,
|
|
int ip_setsockopt(struct sock *sk, int level, int optname, char __user *optval,
|
|
unsigned int optlen);
|
|
unsigned int optlen);
|