ipv6_sockglue.c (1e6b39fbb61800e3ecee58dc8c4bca57c89365cd) | ipv6_sockglue.c (34a0b3cdc078746788ffc49e56da0db62b8b6ea4) |
---|---|
1/* 2 * IPv6 BSD socket options interface 3 * Linux INET6 implementation 4 * 5 * Authors: 6 * Pedro Roque <roque@di.fc.ul.pt> 7 * 8 * Based on linux/net/ipv4/ip_sockglue.c --- 614 unchanged lines hidden (view full) --- 623out: 624 return retv; 625 626e_inval: 627 release_sock(sk); 628 return -EINVAL; 629} 630 | 1/* 2 * IPv6 BSD socket options interface 3 * Linux INET6 implementation 4 * 5 * Authors: 6 * Pedro Roque <roque@di.fc.ul.pt> 7 * 8 * Based on linux/net/ipv4/ip_sockglue.c --- 614 unchanged lines hidden (view full) --- 623out: 624 return retv; 625 626e_inval: 627 release_sock(sk); 628 return -EINVAL; 629} 630 |
631int ipv6_getsockopt_sticky(struct sock *sk, struct ipv6_opt_hdr *hdr, 632 char __user *optval, int len) | 631static int ipv6_getsockopt_sticky(struct sock *sk, struct ipv6_opt_hdr *hdr, 632 char __user *optval, int len) |
633{ 634 if (!hdr) 635 return 0; 636 len = min_t(int, len, ipv6_optlen(hdr)); 637 if (copy_to_user(optval, hdr, ipv6_optlen(hdr))) 638 return -EFAULT; 639 return len; 640} --- 230 unchanged lines hidden --- | 633{ 634 if (!hdr) 635 return 0; 636 len = min_t(int, len, ipv6_optlen(hdr)); 637 if (copy_to_user(optval, hdr, ipv6_optlen(hdr))) 638 return -EFAULT; 639 return len; 640} --- 230 unchanged lines hidden --- |