aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ip_sockglue.c
AgeCommit message (Expand)AuthorFilesLines
2024-03-06inet: Add getsockopt support for IP_ROUTER_ALERT and IPV6_ROUTER_ALERTJuntong Deng1-3/+10
2024-01-26ipmr: fix kernel panic when forwarding mcast packetsNicolas Dichtel1-2/+4
2024-01-04bpfilter: remove bpfilterQuentin Deslandes1-12/+0
2023-12-15net: Namespace-ify sysctl_optmem_maxEric Dumazet1-3/+3
2023-12-08Use READ/WRITE_ONCE() for IP local_port_range.David Laight1-17/+16
2023-10-27net: bpf: Use sockopt_lock_sock() in ip_sock_set_tos()Yonghong Song1-2/+2
2023-10-19inet: lock the socket in ip_sock_set_tos()Eric Dumazet1-2/+9
2023-10-01inet: implement lockless getsockopt(IP_MULTICAST_IF)Eric Dumazet1-13/+12
2023-10-01inet: lockless IP_PKTOPTIONS implementationEric Dumazet1-39/+37
2023-10-01inet: implement lockless getsockopt(IP_UNICAST_IF)Eric Dumazet1-5/+5
2023-10-01inet: lockless getsockopt(IP_MTU)Eric Dumazet1-11/+9
2023-10-01inet: lockless getsockopt(IP_OPTIONS)Eric Dumazet1-10/+10
2023-10-01inet: implement lockless IP_TOSEric Dumazet1-17/+12
2023-10-01inet: implement lockless IP_MTU_DISCOVEREric Dumazet1-11/+6
2023-10-01inet: implement lockless IP_MULTICAST_TTLEric Dumazet1-15/+16
2023-09-01net: annotate data-races around sk->sk_tsflagsEric Dumazet1-1/+1
2023-08-28inet: fix IP_TRANSPARENT error handlingEric Dumazet1-5/+3
2023-08-20net: selectively purge error queue in IP_RECVERR / IPV6_RECVERREric Dumazet1-1/+1
2023-08-16inet: implement lockless IP_MINTTLEric Dumazet1-18/+14
2023-08-16inet: implement lockless IP_TTLEric Dumazet1-15/+12
2023-08-16inet: move inet->bind_address_no_port to inet->inet_flagsEric Dumazet1-6/+6
2023-08-16inet: move inet->nodefrag to inet->inet_flagsEric Dumazet1-10/+8
2023-08-16inet: move inet->is_icsk to inet->inet_flagsEric Dumazet1-2/+2
2023-08-16inet: move inet->transparent to inet->inet_flagsEric Dumazet1-15/+13
2023-08-16inet: move inet->mc_all to inet->inet_fragsEric Dumazet1-11/+11
2023-08-16inet: move inet->mc_loop to inet->inet_fragsEric Dumazet1-8/+8
2023-08-16inet: move inet->hdrincl to inet->inet_flagsEric Dumazet1-10/+8
2023-08-16inet: move inet->freebind to inet->inet_flagsEric Dumazet1-12/+9
2023-08-16inet: move inet->recverr_rfc4884 to inet->inet_flagsEric Dumazet1-9/+9
2023-08-16inet: move inet->recverr to inet->inet_flagsEric Dumazet1-13/+10
2023-08-16inet: set/get simple options locklesslyEric Dumazet1-56/+62
2023-08-16inet: introduce inet->inet_flagsEric Dumazet1-53/+31
2023-07-29net: annotate data-races around sk->sk_priorityEric Dumazet1-1/+1
2023-05-23ipv{4,6}/raw: fix output xfrm lookup wrt protocolNicolas Dichtel1-1/+11
2023-01-25inet: Add IP_LOCAL_PORT_RANGE socket optionJakub Sitnicki1-0/+18
2022-11-08net: Change the udp encap_err_rcv to allow use of {ip,ipv6}_icmp_error()David Howells1-0/+1
2022-10-24net: remove useless parameter of __sock_cmsg_sendxu xin1-1/+1
2022-09-06Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextPaolo Abeni1-52/+62
2022-09-02bpf: Change bpf_getsockopt(SOL_IP) to reuse do_ip_getsockopt()Martin KaFai Lau1-2/+2
2022-09-02bpf: net: Avoid do_ip_getsockopt() taking sk lock when called from bpfMartin KaFai Lau1-8/+8
2022-09-02bpf: net: Change do_ip_getsockopt() to take the sockptr_t argumentMartin KaFai Lau1-35/+45
2022-08-24net: Fix data-races around sysctl_optmem_max.Kuniyuki Iwashima1-3/+3
2022-08-18bpf: Change bpf_setsockopt(SOL_IP) to reuse do_ip_setsockopt()Martin KaFai Lau1-2/+2
2022-08-18bpf: net: Change do_ip_setsockopt() to use the sockopt's lock_sock() and capa...Martin KaFai Lau1-6/+6
2022-07-18igmp: Fix data-races around sysctl_igmp_max_msf.Kuniyuki Iwashima1-3/+3
2022-07-15ip: Fix data-races around sysctl_ip_default_ttl.Kuniyuki Iwashima1-1/+1
2021-11-20ipv4: Exposing __ip_sock_set_tos() in ip.hPoorva Sonparote1-1/+1
2021-10-25ipv4: guard IP_MINTTL with a static keyEric Dumazet1-0/+6
2021-10-25ipv4: annotate data races arount inet->min_ttlEric Dumazet1-1/+4
2021-08-05net/ipv4/ipv6: Replace one-element arraya with flexible-array membersGustavo A. R. Silva1-9/+10
2021-08-05net/ipv4: Revert use of struct_size() helperGustavo A. R. Silva1-7/+5
2021-08-02net/ipv4: Replace one-element array with flexible-array memberGustavo A. R. Silva1-7/+8
2020-08-25net: Remove duplicated midx check against 0Miaohe Lin1-3/+2
2020-07-24icmp: prepare rfc 4884 for ipv6Willem de Bruijn1-1/+13
2020-07-24net: pass a sockptr_t into ->setsockoptChristoph Hellwig1-8/+5
2020-07-24net/ipv4: switch do_ip_setsockopt to sockptr_tChristoph Hellwig1-35/+33
2020-07-24net/ipv4: merge ip_options_get and ip_options_get_from_userChristoph Hellwig1-3/+4
2020-07-24net/ipv4: switch ip_mroute_setsockopt to sockptr_tChristoph Hellwig1-1/+2
2020-07-24bpfilter: switch bpfilter_ip_set_sockopt to sockptr_tChristoph Hellwig1-1/+2
2020-07-24netfilter: switch nf_setsockopt to sockptr_tChristoph Hellwig1-1/+2
2020-07-24net/xfrm: switch xfrm_user_policy to sockptr_tChristoph Hellwig1-1/+2
2020-07-19icmp: support rfc 4884Willem de Bruijn1-0/+12
2020-07-19net/ipv4: remove compat_ip_{get,set}sockoptChristoph Hellwig1-153/+61
2020-07-19net/ipv4: factor out mcast join/leave setsockopt helpersChristoph Hellwig1-53/+56
2020-07-19net/ipv4: factor out MCAST_MSFILTER setsockopt helpersChristoph Hellwig1-76/+86
2020-07-19net/ipv4: factor out MCAST_MSFILTER getsockopt helpersChristoph Hellwig1-61/+70
2020-07-19netfilter: remove the compat_{get,set} methodsChristoph Hellwig1-3/+2
2020-05-28ipv4: add ip_sock_set_pktinfoChristoph Hellwig1-0/+8
2020-05-28ipv4: add ip_sock_set_mtu_discoverChristoph Hellwig1-0/+11
2020-05-28ipv4: add ip_sock_set_recverrChristoph Hellwig1-0/+8
2020-05-28ipv4: add ip_sock_set_freebindChristoph Hellwig1-0/+8
2020-05-28ipv4: add ip_sock_set_tosChristoph Hellwig1-9/+21
2020-05-25ipv4: potential underflow in compat_ip_setsockopt()Dan Carpenter1-1/+1
2020-05-20handle the group_source_req options directlyAl Viro1-2/+21
2020-05-20ipv4: take handling of group_source_req options into a helperAl Viro1-39/+44
2020-05-20ipv[46]: do compat setsockopt for MCAST_{JOIN,LEAVE}_GROUP directlyAl Viro1-0/+31
2020-05-20ipv4: do compat setsockopt for MCAST_MSFILTER directlyAl Viro1-1/+47
2020-05-20set_mcast_msfilter(): take the guts of setsockopt(MCAST_MSFILTER) into a helperAl Viro1-33/+40
2020-05-20get rid of compat_mc_getsockopt()Al Viro1-3/+41
2020-05-20ip*_mc_gsfget(): lift copyout of struct group_filter into callersAl Viro1-5/+14
2020-05-20compat_ip{,v6}_setsockopt(): enumerate MCAST_... options explicitlyAl Viro1-1/+9
2020-05-11net: cleanly handle kernel vs user buffers for ->msg_controlChristoph Hellwig1-1/+2
2019-05-25ip_sockglue: Fix missing-check bug in ip_ra_control()Gen Zhang1-0/+2
2019-01-10ip: on queued skb use skb_header_pointer instead of pskb_may_pullWillem de Bruijn1-7/+5
2018-11-05net: bpfilter: fix iptables failure if bpfilter_umh is disabledTaehee Yoo1-3/+3
2018-10-02ipv4: fix use-after-free in ip_cmsg_recv_dstaddr()Eric Dumazet1-2/+1
2018-07-24ip: in cmsg IP(V6)_ORIGDSTADDR call pskb_may_pullWillem de Bruijn1-2/+5
2018-07-16ipv4/igmp: init group mode as INCLUDE when join source groupHangbin Liu1-2/+2
2018-05-26Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-2/+0
2018-05-24ipv4: remove warning in ip_recv_errorWillem de Bruijn1-2/+0
2018-05-23net: add skeleton of bpfilter kernel moduleAlexei Starovoitov1-0/+17
2018-03-22net: Replace ip_ra_lock with per-net mutexKirill Tkhai1-9/+6
2018-03-22net: Make ip_ra_chain per struct netKirill Tkhai1-13/+2
2018-03-22net: Revert "ipv4: fix a deadlock in ip_ra_control"Kirill Tkhai1-1/+0
2018-03-22net: Move IP_ROUTER_ALERT out of lock_sock(sk)Kirill Tkhai1-3/+2
2018-03-22net: Revert "ipv4: get rid of ip_ra_lock"Kirill Tkhai1-2/+10
2018-02-24Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-6/+1
2018-02-16net: Only honor ifindex in IP_PKTINFO if non-0David Ahern1-2/+4
2018-02-14netfilter: drop outermost socket lock in getsockopt()Paolo Abeni1-6/+1
2018-02-01Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nfDavid S. Miller1-10/+4
2018-01-31netfilter: on sockopt() acquire sock lock only in the required scopePaolo Abeni1-10/+4
2018-01-25net/ipv4: Allow send to local broadcast from a socket bound to a VRFDavid Ahern1-1/+5
2017-11-02License cleanup: add SPDX GPL-2.0 license identifier to files with no licenseGreg Kroah-Hartman1-0/+1
2017-09-15net: ipv4: fix l3slave check for index returned in IP_PKTINFODavid Ahern1-2/+6
2017-08-13net: ipv4: add check for l3slave for index returned in IP_PKTINFODavid Ahern1-1/+2
2017-08-06Revert "ipv4: keep skb->dst around in presence of IP options"Paolo Abeni1-8/+1
2017-08-06ip/options: explicitly provide net ns to __ip_options_echo()Paolo Abeni1-3/+4
2017-06-30do_ip_setsockopt(): don't open-code memdup_user()Al Viro1-14/+6
2017-04-30ipv4: get rid of ip_ra_lockWANG Cong1-10/+2
2017-04-17net-timestamp: avoid use-after-free in ip_recv_errorWillem de Bruijn1-5/+4
2017-04-17ipv4: fix a deadlock in ip_ra_controlWANG Cong1-0/+1
2017-02-21ip: fix IP_CHECKSUM handlingPaolo Abeni1-4/+4
2017-02-07Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-1/+8
2017-02-04ipv4: keep skb->dst around in presence of IP optionsEric Dumazet1-1/+8
2017-01-05Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-1/+7
2017-01-04scm: remove use CMSG{_COMPAT}_ALIGN(sizeof(struct {compat_}cmsghdr))yuan linyu1-1/+1
2016-12-30net: Allow IP_MULTICAST_IF to set index to L3 slaveDavid Ahern1-1/+6
2016-12-29net: fix incorrect original ingress device index in PKTINFOWei Zhang1-1/+7
2016-12-24Replace <asm/uaccess.h> with <linux/uaccess.h> globallyLinus Torvalds1-1/+1
2016-12-23inet: fix IP(V6)_RECVORIGDSTADDR for udp socketsWillem de Bruijn1-1/+1
2016-11-07net/sock: add an explicit sk argument for ip_cmsg_recv_offset()Paolo Abeni1-3/+3
2016-11-03ipv4: add IP_RECVFRAGSIZE cmsgWillem de Bruijn1-0/+26
2016-10-26udp: fix IP_CHECKSUM handlingEric Dumazet1-5/+6
2016-09-08ipv4: accept u8 in IP_TOS ancillary dataEric Dumazet1-2/+5
2016-05-16sock: propagate __sock_cmsg_send() errorEric Dumazet1-2/+3
2016-05-11net: original ingress device index in PKTINFODavid Ahern1-1/+6
2016-04-25net: better drop monitoring in ip{6}_recv_error()Eric Dumazet1-5/+5
2016-04-13udp: do not expect udp headers in recv cmsg IP_CMSG_CHECKSUMWillem de Bruijn1-1/+2
2016-04-07net: introduce lockdep_is_held and update various places to use itHannes Frederic Sowa1-2/+2
2016-04-04ipv4: process socket-level control messages in IPv4Soheil Hassas Yeganeh1-1/+8
2016-02-23Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-0/+2
2016-02-16ipv4: Namespaceify ip_default_ttl sysctl knobNikolay Borisov1-1/+4
2016-02-13ipv4: fix memory leaks in ip_cmsg_send() callersEric Dumazet1-0/+2
2016-02-11igmp: Namespaceify igmp_max_msf sysctl knobNikolay Borisov1-2/+3
2015-11-04ipv4: fix a potential deadlock in mcast getsockopt() pathWANG Cong1-15/+30
2015-06-24Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-1/+10
2015-06-24ip: report the original address of ICMP messagesJulian Anastasov1-1/+10
2015-06-06inet: add IP_BIND_ADDRESS_NO_PORT to overcome bind(0) limitationsEric Dumazet1-0/+7
2015-04-03ipv4: coding style: comparison for inequality with NULLIan Morris1-1/+1
2015-04-03ipv4: coding style: comparison for equality with NULLIan Morris1-2/+2
2015-03-18ipv4, ipv6: kill ip_mc_{join, leave}_group and ipv6_sock_mc_{join, drop}Marcelo Ricardo Leitner1-6/+15
2015-03-18ipv4,ipv6: grab rtnl before locking the socketMarcelo Ricardo Leitner1-6/+25
2015-03-08ip: fix error queue empty skb handlingWillem de Bruijn1-10/+23
2015-02-02net-timestamp: no-payload optionWillem de Bruijn1-3/+4
2015-01-27Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-6/+2
2015-01-15ip: zero sockaddr returned on error queueWillem de Bruijn1-6/+2
2015-01-05ip: Add offset parameter to ip_cmsg_recvTom Herbert1-1/+40
2015-01-05ip: Add offset parameter to ip_cmsg_recvTom Herbert1-2/+3
2015-01-05ip: IP cmsg cleanupTom Herbert1-27/+37
2014-12-10net: introduce helper macro for_each_cmsghdrGu Zheng1-1/+1
2014-12-08net-timestamp: allow reading recv cmsg on errqueue with origin tstampWillem de Bruijn1-2/+20
2014-12-08ipv4: warn once on passing AF_INET6 socket to ip_recv_errorWillem de Bruijn1-0/+2
2014-11-14Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-1/+1
2014-11-11ipv6: fix IPV6_PKTINFO with v4 mappedEric Dumazet1-1/+1
2014-11-05net: Add and use skb_copy_datagram_msg() helper.David S. Miller1-1/+1
2014-09-09ipv4: rcu cleanup in ip_ra_control()Eric Dumazet1-2/+2
2014-09-01sock: deduplicate errqueue dequeueWillem de Bruijn1-13/+2
2014-07-29ipv4: clean up cast warning in do_ip_getsockoptKaroly Kemeny1-1/+1
2014-02-26ipv4: yet another new IP_MTU_DISCOVER option IP_PMTUDISC_OMITHannes Frederic Sowa1-1/+1
2014-02-19ipv6: honor IPV6_PKTINFO with v4 mapped addresses on sendmsgHannes Frederic Sowa1-1/+18
2014-01-19ipv6: make IPV6_RECVPKTINFO work for ipv4 datagramsHannes Frederic Sowa1-3/+3
2014-01-18net: add build-time checks for msg->msg_name sizeSteffen Hurrle1-2/+1
2013-12-10net: more spelling fixesstephen hemminger1-1/+1
2013-11-23inet: fix addr_len/msg->msg_namelen assignment in recv_error and rxpmtu funct...Hannes Frederic Sowa1-1/+2
2013-11-05ipv4: introduce new IP_MTU_DISCOVER mode IP_PMTUDISC_INTERFACEHannes Frederic Sowa1-1/+1
2013-10-08net: ipv4 only populate IP_PKTINFO when neededShawn Bohrer1-2/+3
2013-09-28ipv4: IP_TOS and IP_TTL can be specified as ancillary dataFrancesco Fusco1-1/+19
2013-01-08net: prevent setting ttl=0 via IP_TTLCong Wang1-1/+1
2012-11-18net: Allow userns root to control ipv4Eric W. Biederman1-2/+3
2012-11-11ipv4: avoid undefined behavior in do_ip_setsockopt()Xi Wang1-13/+22
2012-07-23ipv4: Prepare for change of rt->rt_iif encoding.David S. Miller1-3/+2
2012-06-28ipv4: Create and use fib_compute_spec_dst() helper.David S. Miller1-3/+4
2012-05-07net: IP_MULTICAST_IF setsockopt now recognizes struct mreqJiri Pirko1-4/+9
2012-04-15net: cleanup unsigned to unsigned intEric Dumazet1-2/+2
2012-04-15ipv4: fix checkpatch errorsDaniel Baluta1-1/+1
2012-03-20Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-nextLinus Torvalds1-0/+37
2012-02-21ipv4: Convert call_rcu() to kfree_rcu(), drop opt_kfree_rcuPaul E. McKenney1-6/+1
2012-02-13net: implement IP_RECVTOS for IP_PKTOPTIONSJiri Benc1-0/+4
2012-02-08ipv4: Implement IP_UNICAST_IF socket option.Erich E. Hoover1-0/+33
2011-12-11net: use IS_ENABLED(CONFIG_IPV6)Eric Dumazet1-3/+3
2011-11-09ipv4: PKTINFO doesnt need dst referenceEric Dumazet1-17/+18
2011-10-22net: use INET_ECN_MASK instead of hardcoded 3Maciej Żenczykowski1-2/+3
2011-10-20net: allow CAP_NET_RAW to set socket options IP{,V6}_TRANSPARENTMaciej Żenczykowski1-1/+1
2011-08-07ipv4: Fix ip_getsockopt for IP_PKTOPTIONSDaniel Baluta1-4/+5
2011-04-28inet: add RCU protection to inet->optEric Dumazet1-11/+24
2011-04-22inet: constify ip headers and in6_addrEric Dumazet1-1/+1
2010-10-25ipv4: add __rcu annotations to ip_ra_chainEric Dumazet1-3/+7
2010-09-13ipv4: enable getsockopt() for IP_NODEFRAGMichael Kerrisk1-0/+3
2010-06-23net - IP_NODEFRAG option for IPv4 socketJiri Olsa1-1/+8
2010-06-10ip: ip_ra_control() rcu fixEric Dumazet1-4/+15
2010-06-07ip: Router Alert RCU conversionEric Dumazet1-9/+14
2010-04-28net: ip_queue_rcv_skb() helperEric Dumazet1-0/+16
2010-04-11Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/ne...David S. Miller1-0/+1
2010-04-01ipv4: remove redundant verification codeHagen Paul Pfeifer1-4/+0
2010-03-30include cleanup: Update gfp.h and slab.h includes to prepare for breaking imp...Tejun Heo1-0/+1
2010-01-11tcp: Generalized TTL Security MechanismStephen Hemminger1-1/+13
2009-10-29net: Cleanup redundant tests on unsignedroel kluin1-1/+1
2009-10-27Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/ne...David S. Miller1-4/+3
2009-10-19IP: CleanupsJohn Dykstra1-1/+1
2009-10-19net: Fix IP_MULTICAST_IFEric Dumazet1-4/+3