aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/devinet.c
AgeCommit message (Expand)AuthorFilesLines
2025-09-03ipv4: Fix NULL vs error pointer check in inet_blackhole_dev_init()Dan Carpenter1-4/+3
2025-04-16ipv4: Use nlmsg_payload in devinet fileBreno Leitao1-2/+2
2025-04-03net: switch to netif_disable_lro in inetdev_initStanislav Fomichev1-1/+1
2025-02-13Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+2
2025-02-11netlink: support dumping IPv4 multicast addressesYuyang Huang1-14/+63
2025-02-06ipv4: use RCU protection in inet_select_addr()Eric Dumazet1-1/+2
2024-11-11net: convert to nla_get_*_default()Johannes Berg1-2/+1
2024-10-29ipv4: Convert devinet_ioctl to per-netns RTNL.Kuniyuki Iwashima1-2/+2
2024-10-29ipv4: Convert devinet_ioctl() to per-netns RTNL except for SIOCSIFFLAGS.Kuniyuki Iwashima1-8/+9
2024-10-29ipv4: Convert devinet_sysctl_forward() to per-netns RTNL.Kuniyuki Iwashima1-3/+3
2024-10-29ipv4: Convert check_lifetime() to per-netns RTNL.Kuniyuki Iwashima1-4/+5
2024-10-29ipv4: Convert RTM_DELADDR to per-netns RTNL.Kuniyuki Iwashima1-9/+15
2024-10-29ipv4: Use per-netns RTNL helpers in inet_rtm_newaddr().Kuniyuki Iwashima1-4/+4
2024-10-29ipv4: Convert RTM_NEWADDR to per-netns RTNL.Kuniyuki Iwashima1-10/+18
2024-10-29ipv4: Don't allocate ifa for 0.0.0.0 in inet_rtm_newaddr().Kuniyuki Iwashima1-8/+9
2024-10-29ipv4: Factorise RTM_NEWADDR validation to inet_validate_rtm().Kuniyuki Iwashima1-35/+44
2024-10-23ipv4: Switch inet_addr_hash() to less predictable hash.Kuniyuki Iwashima1-1/+1
2024-10-22rtnetlink: Return int from rtnl_af_register().Kuniyuki Iwashima1-1/+2
2024-10-21Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netPaolo Abeni1-10/+25
2024-10-15ipv4: Use rtnl_register_many().Kuniyuki Iwashima1-7/+11
2024-10-11ipv4: give an IPv4 dev to blackhole_netdevXin Long1-10/+25
2024-10-09ipv4: Retire global IPv4 hash table inet_addr_lst.Kuniyuki Iwashima1-10/+0
2024-10-09ipv4: Namespacify IPv4 address GC.Kuniyuki Iwashima1-14/+18
2024-10-09ipv4: Use per-netns hash table in inet_lookup_ifaddr_rcu().Kuniyuki Iwashima1-3/+2
2024-10-09ipv4: Link IPv4 address to per-netns hash table.Kuniyuki Iwashima1-3/+19
2024-08-23ipv4: delete redundant judgment statementsLi Zetao1-4/+2
2024-08-15ip: Move INFINITY_LIFE_TIME to addrconf.h.Kuniyuki Iwashima1-2/+0
2024-08-15ipv4: Initialise ifa->hash in inet_alloc_ifa().Kuniyuki Iwashima1-3/+3
2024-08-15ipv4: Remove redundant !ifa->ifa_dev check.Kuniyuki Iwashima1-2/+1
2024-08-15ipv4: Set ifa->ifa_dev in inet_alloc_ifa().Kuniyuki Iwashima1-15/+15
2024-08-15ipv4: Check !in_dev earlier for ioctl(SIOCSIFADDR).Kuniyuki Iwashima1-4/+2
2024-07-24sysctl: treewide: constify the ctl_table argument of proc_handlersJoel Granados1-3/+3
2024-06-05rtnetlink: make the "split" NLM_DONE handling genericJakub Kicinski1-1/+1
2024-05-29ipv4: correctly iterate over the target netns in inet_dump_ifaddr()Alexander Mikhalitsyn1-1/+1
2024-05-27ipv4: Fix address dump when IPv4 is disabled on an interfaceIdo Schimmel1-2/+3
2024-05-14Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-3/+10
2024-05-13inet: fix inet_fill_ifaddr() flags truncationEric Dumazet1-3/+10
2024-05-03net: ipv{6,4}: Remove the now superfluous sentinel elements from ctl_table arrayJoel Granados1-3/+2
2024-04-29inet: use call_rcu_hurry() in inet_free_ifa()Eric Dumazet1-1/+6
2024-04-22sysctl: treewide: constify ctl_table_header::ctl_table_argThomas Weißschuh1-1/+1
2024-03-07netlink: let core handle error cases in dump operationsEric Dumazet1-4/+0
2024-03-01inet: use xa_array iterator to implement inet_dump_ifaddr()Eric Dumazet1-58/+37
2024-03-01inet: prepare inet_base_seq() to run without RTNLEric Dumazet1-1/+1
2024-03-01inet: annotate data-races around ifa->ifa_flagsEric Dumazet1-9/+13
2024-03-01inet: annotate data-races around ifa->ifa_preferred_lftEric Dumazet1-8/+8
2024-03-01inet: annotate data-races around ifa->ifa_valid_lftEric Dumazet1-8/+8
2024-03-01inet: annotate data-races around ifa->ifa_tstamp and ifa->ifa_cstampEric Dumazet1-10/+13
2024-02-28inet: use xa_array iterator to implement inet_netconf_dump_devconf()Eric Dumazet1-58/+43
2024-02-28inet: do not use RTNL in inet_netconf_get_devconf()Eric Dumazet1-12/+15
2024-02-28inet: annotate devconf data-racesEric Dumazet1-10/+11
2024-02-18ipv4: properly combine dev_base_seq and ipv4.dev_addr_genidEric Dumazet1-4/+17
2023-09-08net: ipv4: fix one memleak in __inet_del_ifa()Liu Jian1-5/+5
2023-08-29Merge tag 'sysctl-6.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/m...Linus Torvalds1-1/+2
2023-08-21IPv4: add extack info for IPv4 address add/deleteHangbin Liu1-3/+20
2023-08-15networking: Update to register_net_sysctl_szJoel Granados1-1/+2
2023-03-23net: ipv4: Allow changing IPv4 address protocolPetr Machata1-0/+3
2022-11-30net: devinet: Reduce refcount before grace periodEric Dumazet1-9/+10
2022-08-24net: Fix data-races around sysctl_devconf_inherit_init_net.Kuniyuki Iwashima1-6/+10
2022-06-09net: rename reference+tracking helpersJakub Kicinski1-2/+2
2022-05-25Merge tag 'net-next-5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/ne...Linus Torvalds1-1/+1
2022-05-18random32: use real rng for non-deterministic randomnessJason A. Donenfeld1-3/+1
2022-05-04memcg: accounting for objects allocated for new netdeviceVasily Averin1-1/+1
2022-02-18net: Add new protocol attribute to IP addressesJacques de Laval1-0/+7
2021-12-06ipv4: add net device refcount tracker to struct in_deviceEric Dumazet1-2/+2
2021-11-15net: return correct error codeliuguoqiang1-1/+1
2021-11-01net: arp: introduce arp_evict_nocarrier sysctl parameterJames Prestwood1-0/+4
2021-08-04net: add extack arg for link opsRocco Yue1-2/+3
2021-07-23net: socket: remove register_gifconfArnd Bergmann1-3/+1
2021-07-20net: ipv4: add capability check for net administrationYang Yang1-3/+7
2021-07-20memcg: enable accounting for IP address and routing-related objectsVasily Averin1-1/+1
2021-06-18Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+1
2021-06-08net: ipv4: Remove unneed BUG() functionZheng Yongjun1-1/+1
2021-05-10rtnetlink: avoid RCU read lock when holding RTNLCong Wang1-2/+2
2021-04-08ipv6: report errors for iftoken via netlink extackStephen Hemminger1-1/+2
2020-11-16treewide: rename nla_strlcpy to nla_strscpy.Francis Laniel1-1/+1
2020-11-10net: ipv4: remove redundant initialization in inet_rtm_deladdrMenglong Dong1-2/+1
2020-05-31Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netDavid S. Miller1-0/+1
2020-05-30devinet: fix memleak in inetdev_init()Yang Yingliang1-0/+1
2020-05-16netns: enable to inherit devconf from current netnsNicolas Dichtel1-5/+18
2020-04-28Merge branch 'work.sysctl' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/...Daniel Borkmann1-6/+3
2020-04-27sysctl: pass kernel pointers to ->proc_handlerChristoph Hellwig1-6/+3
2020-04-09net: ipv4: devinet: Fix crash when add/del multicast IP with autojoinTaras Chornyi1-4/+9
2020-03-12inet: Use fallthrough;Joe Perches1-3/+3
2019-12-07inet: protect against too small mtu values.Eric Dumazet1-5/+0
2019-07-08Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-0/+8
2019-07-01ipv4: don't set IPv6 only flags to IPv4 addressesMatteo Croce1-0/+8
2019-06-27net: ipv4: fix infinite loop on secondary addr promotionFlorian Westphal1-1/+2
2019-06-24ipv4: fix confirm_addr_indev() when enable route_localnetShijie Luo1-2/+8
2019-06-24ipv4: fix inet_select_addr() when enable route_localnetShijie Luo1-1/+5
2019-06-17net: ipv4: remove erroneous advancement of list pointerFlorian Westphal1-2/+1
2019-06-07Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-5/+1
2019-06-04net: ipv4: fix rcu lockdep splat due to wrong annotationFlorian Westphal1-1/+1
2019-06-02net: ipv4: provide __rcu annotation for ifa_listFlorian Westphal1-31/+57
2019-06-02devinet: use in_dev_for_each_ifa_rcu in more placesFlorian Westphal1-8/+19
2019-06-02net: inetdevice: provide replacement iterators for in_ifaddr walkFlorian Westphal1-15/+16
2019-05-30treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152Thomas Gleixner1-5/+1
2019-04-27netlink: make validation more configurable for future strictnessJohannes Berg1-12/+15
2019-03-04net: ignore sysctl_devconf_inherit_init_net without SYSCTLArnd Bergmann1-1/+3
2019-01-22net: introduce a knob to control whether to inherit devconf configCong Wang1-23/+20
2019-01-19net: ipv4: netconf: perform strict checks also for doit handlersJakub Kicinski1-4/+39
2019-01-04netlink: fixup regression in RTM_GETADDRArthur Gautier1-1/+1
2018-12-20Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-2/+3
2018-12-14net: Allow class-e address assignment via ifconfig ioctlDave Taht1-2/+3
2018-12-06net: core: dev: Add extack argument to dev_change_flags()Petr Machata1-1/+1
2018-10-25net/{ipv4,ipv6}: Do not put target net if input nsid is invalidBjørn Mork1-0/+1
2018-10-24net/ipv4: Put target net when address dump fails due to bad attributesDavid Ahern1-5/+8
2018-10-22net/ipv4: Add support for dumping addresses for a specific deviceDavid Ahern1-5/+23
2018-10-22net/ipv4: Move loop over addresses on a device into in_dev_dump_addrDavid Ahern1-15/+34
2018-10-08net: Update netconf dump handlers for strict data checkingDavid Ahern1-3/+19
2018-10-08net/ipv4: Update inet_dump_ifaddr for strict data checkingDavid Ahern1-11/+61
2018-10-08net: Add extack to nlmsg_parseDavid Ahern1-4/+5
2018-09-05ipv4: add inet_fill_argsChristian Brauner1-15/+33
2018-09-05ipv4: enable IFA_TARGET_NETNSID for RTM_GETADDRChristian Brauner1-8/+30
2018-07-29route: add support for directed broadcast forwardingXin Long1-0/+11
2018-05-29net/ipv4: Add support for specifying metric of connected routesDavid Ahern1-0/+15
2018-01-29ipv4: Get the address of interface correctly.Tonghao Zhang1-0/+4
2018-01-24devinet_ioctl(): take copyin/copyout to callerAl Viro1-26/+15
2018-01-24net: separate SIOCGIFCONF handling from dev_ioctl()Al Viro1-7/+9
2017-12-13ipv4: igmp: guard against silly MTU valuesEric Dumazet1-1/+1
2017-10-20net: Add extack to validator_info structs used for address notifierDavid Ahern1-3/+5
2017-10-18ipv4: mark expected switch fall-throughsGustavo A. R. Silva1-0/+1
2017-10-16net: core: rcu-ify rtnl af_opsFlorian Westphal1-2/+2
2017-09-21net: avoid a full fib lookup when rp_filter is disabled.Paolo Abeni1-12/+18
2017-08-09rtnetlink: make rtnl_register accept a flags parameterFlorian Westphal1-4/+4
2017-07-01net: convert in_device.refcnt from atomic_t to refcount_tReshetova, Elena1-1/+1
2017-06-09Ipvlan should return an error when an address is already in use.Krister Johansen1-0/+33
2017-04-17net: rtnetlink: plumb extended ack to doit functionDavid Ahern1-5/+8
2017-04-13netlink: pass extended ACK struct to parsing functionsJohannes Berg1-5/+7
2017-03-28net: devinet: Add support for RTM_DELNETCONFDavid Ahern1-11/+21
2017-03-28net: devinet: Refactor inet_netconf_notify_devconf to take eventDavid Ahern1-12/+20
2017-03-12net: Eliminate duplicated codes by creating one new function in_dev_select_addrGao Feng1-14/+18
2017-03-02sched/headers: Prepare to move signal wakeup & sigpending methods from <linux...Ingo Molnar1-0/+1
2017-02-02net: ipv4: remove fib_lookup.h from devinet.c include listDavid Ahern1-2/+0
2016-12-24Replace <asm/uaccess.h> with <linux/uaccess.h> globallyLinus Torvalds1-1/+1
2016-09-01netconf: add a notif when settings are createdNicolas Dichtel1-4/+7
2016-07-09ipv4: do not abuse GFP_ATOMIC in inet_netconf_notify_devconf()Eric Dumazet1-6/+6
2016-03-13ipv4: Don't do expensive useless work during inetdev destroy.David S. Miller1-0/+4
2016-03-13netconf: add macro to represent all attributesZhang Shengju1-17/+23
2016-02-26net: l3mdev: prefer VRF master for source address selectionDavid Lamparter1-0/+17
2016-02-26net: l3mdev: address selection should only consider devices in L3 domainDavid Ahern1-0/+5
2016-02-23Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-1/+1
2016-02-19rtnl: RTM_GETNETCONF: fix wrong return valueAnton Protopopov1-1/+1
2016-02-11ipv4: add option to drop gratuitous ARP packetsJohannes Berg1-0/+2
2016-02-11ipv4: add option to drop unicast encapsulated in L2 multicastJohannes Berg1-0/+2
2015-10-21netlink: Rightsize IFLA_AF_SPEC size calculationArad, Ronen1-2/+2
2015-09-15rtnetlink: RTEXT_FILTER_SKIP_STATS support to avoid dumping inet/inet6 statsSowmini Varadhan1-1/+2
2015-07-28net/ipv4: suppress NETDEV_UP notification on address lifetime updateDavid Ward1-1/+0
2015-07-08ipv4: add support for linkdown sysctl to netconfAndy Gospodarek1-0/+13
2015-06-24net: ipv4 sysctl option to ignore routes when nexthop link is downAndy Gospodarek1-0/+2
2015-04-03ipv4: coding style: comparison for inequality with NULLIan Morris1-1/+1
2015-04-03ipv4: coding style: comparison for equality with NULLIan Morris1-20/+20
2015-03-31netlink: implement nla_get_in_addr and nla_get_in6_addrJiri Benc1-5/+5
2015-03-31netlink: implement nla_put_in_addr and nla_put_in6_addrJiri Benc1-3/+3
2015-03-18ipv4, ipv6: kill ip_mc_{join, leave}_group and ipv6_sock_mc_{join, drop}Marcelo Ricardo Leitner1-2/+2
2015-03-18netns: constify net_hash_mix() and various callersEric Dumazet1-1/+1
2015-02-27multicast: Extend ip address command to enable multicast group join/leave onMadhu Challa1-0/+31
2015-02-14net: spelling fixesStephen Hemminger1-1/+1
2015-01-30net: mark some potential candidates __read_mostlyDaniel Borkmann1-1/+1
2015-01-18netlink: Fix bugs in nlmsg_end() conversions.David S. Miller1-3/+3
2015-01-18netlink: make nlmsg_end() and genlmsg_end() voidJohannes Berg1-3/+5
2014-07-29ipv4: fail early when creating netdev named all or defaultWANG Cong1-9/+27
2014-05-18ipv4: minor spelling fixstephen hemminger1-1/+1
2014-05-08ipv4: remove inet_addr_hash_lock in devinet.cWANG Cong1-5/+2
2014-02-06ipv4: Fix runtime WARNING in rtmsg_ifa()Geert Uytterhoeven1-1/+2
2014-01-22net/ipv4: queue work on power efficient wqviresh kumar1-4/+6
2014-01-14net: replace macros net_random and net_srandom with direct calls to prandomAruna-Hewapathirane1-1/+1
2014-01-07ipv4: loopback device: ignore value changes after device is uppedJiri Pirko1-0/+2
2013-12-22netconf: rename PROXY_ARP to NEIGH_PROXYstephen hemminger1-5/+5
2013-12-14netconf: add proxy-arp supportstephen hemminger1-12/+29
2013-12-11ipv4: fix wildcard search with inet_confirm_addr()Nicolas Dichtel1-5/+4
2013-12-10ipv4: add support for IFA_FLAGS nl attributeJiri Pirko1-2/+6
2013-12-09neigh: restore old behaviour of default parms valuesJiri Pirko1-0/+2
2013-12-09neigh: use tbl->family to distinguish ipv4 from ipv6Jiri Pirko1-1/+1
2013-08-09net: igmp: Allow user-space configuration of igmp unsolicited report intervalWilliam Manley1-0/+8
2013-08-09net: igmp: Don't flush routing cache when force_igmp_version is modifiedWilliam Manley1-2/+2
2013-08-03Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-1/+3
2013-08-02net: rtm_to_ifaddr: free ifa if ifa_cacheinfo processing failsDaniel Borkmann1-1/+3
2013-07-30net: remove an unneeded checkDan Carpenter1-4/+1
2013-06-13net: Convert uses of typedef ctl_table to struct ctl_tableJoe Perches1-3/+3
2013-06-12igmp: hash a hash table to speedup ip_check_mc_rcu()Eric Dumazet1-0/+1
2013-05-28net: pass info struct via netdevice notifierJiri Pirko1-1/+1
2013-04-22Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-16/+44
2013-04-08net: ipv4: fix schedule while atomic bug in check_lifetime()Jiri Pirko1-16/+42
2013-04-08net: ipv4: reset check_lifetime_work after changing lifetimeJiri Pirko1-0/+2
2013-04-07Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-2/+4
2013-04-05net: ipv4: notify when address lifetime changesJiri Pirko1-2/+4
2013-03-24ipv4: provide addr and netconf dump consistency infoNicolas Dichtel1-0/+6
2013-03-22rtnetlink: Remove passing of attributes into rtnl_doit functionsThomas Graf1-4/+3
2013-03-06netconf: add the handler to dump entriesNicolas Dichtel1-1/+69
2013-02-27hlist: drop the node parameter from iteratorsSasha Levin1-7/+3
2013-01-29ipv4: introduce address lifetimeJiri Pirko1-5/+210
2013-01-06ipv4: fix NULL checking in devinet_ioctl()Xi Wang1-1/+1
2012-12-04netconf: advertise mc_forwarding statusNicolas Dichtel1-2/+8
2012-11-18net: Enable a userns root rtnl calls that are safe for unprivilged usersEric W. Biederman1-6/+0
2012-11-18net: Enable some sysctls that are safe for the userns rootEric W. Biederman1-8/+0
2012-11-18net: Allow userns root to control ipv4Eric W. Biederman1-2/+2
2012-11-18net: Push capable(CAP_NET_ADMIN) into the rtnl methodsEric W. Biederman1-0/+6
2012-11-18net: Don't export sysctls to unprivileged usersEric W. Biederman1-0/+8
2012-11-01rtnl/ipv4: use netconf msg to advertise rp_filter statusNicolas Dichtel1-0/+24
2012-10-28rtnl/ipv4: add support of RTM_GETNETCONFNicolas Dichtel1-2/+73