mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
ipv4: add ip_sock_set_pktinfo
Add a helper to directly set the IP_PKTINFO sockopt from kernel space without going through a fake uaccess. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
2de569bda2
commit
c1f9ec5776
@@ -767,6 +767,7 @@ static inline bool inetdev_valid_mtu(unsigned int mtu)
|
||||
|
||||
void ip_sock_set_freebind(struct sock *sk);
|
||||
int ip_sock_set_mtu_discover(struct sock *sk, int val);
|
||||
void ip_sock_set_pktinfo(struct sock *sk);
|
||||
void ip_sock_set_recverr(struct sock *sk);
|
||||
void ip_sock_set_tos(struct sock *sk, int val);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user