aboutsummaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Expand)AuthorFilesLines
2024-04-25ip: Exit exec in child process if setup failsYedaya Katsman1-1/+6
2024-04-15mnl: initialize generic netlink versionStephen Hemminger1-0/+2
2024-03-11Merge branch 'main' of git://git.kernel.org/pub/scm/network/iproute2/iproute2...Stephen Hemminger2-0/+18
2024-03-11rt_names: whitespace cleanupStephen Hemminger1-21/+22
2024-03-06iproute2: move generic_proc_open into libDenis Kirjanov1-0/+14
2024-02-18netlink: display information from missing type extackStephen Hemminger1-0/+4
2024-01-27bpf: fix warning from basename()Stephen Hemminger1-2/+2
2024-01-25spelling fixesStephen Hemminger2-2/+2
2024-01-22bpf: include libgen.h for basenamePedro Tammela1-0/+1
2024-01-22color: handle case where fmt is NULLStephen Hemminger1-0/+3
2024-01-08Merge remote-tracking branch 'main/main' into nextDavid Ahern2-1/+21
2023-12-22bridge: Deduplicate print_range()Benjamin Poirier1-0/+15
2023-12-08mnl_utils: sanitize incoming netlink payload size in callbacksJiri Pirko1-1/+6
2023-11-22Merge branch 'main' into nextDavid Ahern1-1/+3
2023-11-22lib: utils: Have parse_one_of() warn about prefix matchesPetr Machata1-1/+18
2023-11-22lib: utils: Introduce parse_one_of_deprecated()Petr Machata1-0/+7
2023-11-22lib: utils: Convert parse_on_off() to strcmp()Petr Machata1-1/+1
2023-11-22lib: utils: Generalize parse_one_of()Petr Machata1-4/+13
2023-11-22lib: utils: Switch matches() to returning int againPetr Machata1-4/+4
2023-11-11devlink: introduce support for netns id for nested handleJiri Pirko1-0/+34
2023-11-11ip/ipnetns: move internals of get_netnsid_from_name() into namespace.cJiri Pirko1-0/+49
2023-11-09libnetlink: validate nlmsg header length firstMax Kunzelmann1-1/+3
2023-10-27bpf: increase verifier verbosity when in verbose modeShung-Hsi Yu2-4/+8
2023-10-27libbpf: set kernel_log_level when availableShung-Hsi Yu1-0/+4
2023-09-11mnl_utils: introduce a helper to check if dump policy exists for commandJiri Pirko1-2/+119
2023-08-24ip vrf: make ipvrf_exec SELinux-awareAndrea Claudi1-0/+5
2023-08-24lib: add SELinux include and stub functionsAndrea Claudi2-0/+36
2023-08-20utils: fix get_integer() logicPedro Tammela1-1/+2
2023-08-13Add utility to convert an unsigned int to stringMathieu Schroeter1-0/+6
2023-08-13Add get_long utility and adapt get_integer accordinglyMathieu Schroeter1-1/+12
2023-07-26Read configuration files from /etc and /usrGioele Barabucci2-93/+147
2023-06-28fix fallthrough warningsStephen Hemminger1-2/+1
2023-06-28Merge git://git.kernel.org/pub/scm/network/iproute2/iproute2-nextStephen Hemminger3-5/+6
2023-06-23f_flower: add cfm supportZahari Doychev1-0/+1
2023-06-07rt_names: check for malloc() failureStephen Hemminger1-0/+4
2023-06-05whitespace cleanupsStephen Hemminger2-2/+2
2023-06-05treewide: fix indentationAndrea Claudi2-5/+5
2023-06-02libnetlink: drop unused rtnl_talk_iovStephen Hemminger1-6/+0
2023-06-02utils: make local cmdline functions staticStephen Hemminger1-3/+3
2023-06-02ipaddress: accept symbolic namesStephen Hemminger1-13/+5
2023-05-30vxlan: make option printing more consistentStephen Hemminger1-0/+19
2023-05-26ll_type_n2a: use ARRAY_SIZEStephen Hemminger1-70/+69
2023-05-13lib/fs: fix file leak in task_get_nameStephen Hemminger1-1/+3
2023-05-10remove unnecessary checks for NULL before calling free()Stephen Hemminger1-2/+1
2023-03-30ip: Support IP address protocolPetr Machata1-0/+62
2023-02-17libnetlink.c: Fix memory leak in batch modeDenys Fedoryshchenko1-0/+2
2023-01-14lib: replace GPL boilerplate with SPDXStephen Hemminger14-76/+15
2022-12-09libnetlink: Fix memory leak in __rtnl_talk_iov()Lahav Schlesinger1-6/+11
2022-11-03json: do not escape single quotesAndrea Claudi1-3/+0
2022-09-29rtnetlink: add new function rtnl_echo_talk()Hangbin Liu1-0/+22
2022-09-27libnetlink: add offset for nl_dump_ext_ack_doneHangbin Liu2-6/+5
2022-08-31utils: extract CTRL_ATTR_MAXATTR and save itJacob Keller1-6/+12
2022-08-01Merge branch 'main' into nextDavid Ahern1-0/+1
2022-07-29lib: Introduce ppp protocolsWojciech Drewek2-1/+53
2022-07-29lib: refactor ll_proto functionsWojciech Drewek2-25/+42
2022-07-25bpf_glue: include errno.hJuhee Kang1-0/+1
2022-07-08libbpf: add xdp program name supportHangbin Liu2-5/+32
2022-05-08bridge: vni: add support for stats dumpingNikolay Aleksandrov1-1/+3
2022-05-08bridge: vxlan device vnifilter supportRoopa Prabhu1-0/+18
2022-05-02libbpf: Remove use of bpf_map_is_offload_neutralDavid Ahern1-1/+6
2022-05-02libbpf: Remove use of bpf_program__set_priv and bpf_program__privDavid Ahern1-6/+10
2022-05-02libbpf: Use bpf_object__load instead of bpf_object__load_xattrDavid Ahern1-6/+1
2022-04-27libnetlink: Add filtering to rtnl_statsdump_req_filter()Petr Machata1-5/+14
2022-03-12Merge branch 'main' into nextDavid Ahern1-10/+13
2022-03-11lib/fs: fix memory leak in get_task_name()Andrea Claudi1-10/+13
2022-03-07bpf: Remove use of bpf_create_map_xattrDavid Ahern1-12/+12
2022-03-07bpf: Export bpf syscall wrapperDavid Ahern2-12/+13
2022-03-07bpf_glue: Remove use of bpf_load_program from libbpfDavid Ahern2-12/+7
2022-03-04lib: add profinet and ethercat as link layer protocol namesDaniel Braunwarth1-0/+2
2022-02-27Merge branch 'main' into nextDavid Ahern1-6/+9
2022-02-11libnetlink: fix socket leak in rtnl_open_byproto()Maxim Petrov1-6/+9
2022-01-26json_print: suppress clang format warningStephen Hemminger1-0/+8
2022-01-26libbpf: fix clang warning about format non-literalStephen Hemminger1-2/+4
2022-01-15lib: fix ax25.h include for muslSam James1-1/+1
2021-12-17lib/bpf: fix verbose flag when using libbpfPaul Chaignon1-1/+6
2021-11-18lib/bpf_legacy: remove always-true checkMaxim Petrov1-3/+1
2021-11-04Merge branch 'main' into nextDavid Ahern1-2/+1
2021-10-14lib/bpf: fix map-in-map creation without prepopulationPaul Chaignon1-2/+1
2021-10-09Merge branch 'main' into nextDavid Ahern1-1/+4
2021-09-23ROSE: Print decoded addresses rather than hex numbers.Ralf Baechle1-0/+2
2021-09-23ROSE: Add rose_ntop implementation.Ralf Baechle1-0/+56
2021-09-23NETROM: Print decoded addresses rather than hex numbers.Ralf Baechle1-0/+2
2021-09-23NETROM: Add netrom_ntop implementation.Ralf Baechle2-7/+38
2021-09-23AX.25: Print decoded addresses rather than hex numbers.Ralf Baechle1-0/+2
2021-09-23AX.25: Add ax25_ntop implementation.Ralf Baechle1-0/+74
2021-09-22lib: bpf_legacy: fix bpffs mount when /sys/fs/bpf existsAndrea Claudi1-1/+4
2021-09-21lib: bpf_legacy: add prog name, load time, uid and btf id in prog info dumpGokul Sivakumar1-0/+20
2021-09-01ip: remove leftovers from IPX and DECnetStephen Hemminger1-20/+2
2021-08-10lib: bpf_glue: remove useless assignmentAndrea Claudi1-1/+1
2021-08-10lib: bpf_legacy: fix potential NULL-pointer dereferenceAndrea Claudi1-0/+3
2021-08-10lib/bpf: Fix btf_load error lead to enable debug logFeng Zhou1-2/+2
2021-07-17ipmonitor: Fix recvmsg with ancillary dataLahav Schlesinger1-5/+5
2021-07-11libnetlink: check error handler is present before a callAlexander Mikhalitsyn1-2/+2
2021-07-07libnetlink: cosmetic changesStephen Hemminger1-9/+14
2021-07-07ip route: ignore ENOENT during save if RT_TABLE_MAIN is being dumpedAlexander Mikhalitsyn1-11/+43
2021-07-06libbpf: fix attach of prog with multiple sectionsMartynas Pumputis1-3/+6
2021-07-01Merge branch 'main' into nextDavid Ahern2-3/+9
2021-06-29lib: remove blank line at eofStephen Hemminger1-1/+0
2021-06-18utils: bump max args number to 512 for batch filesGuillaume Nault1-2/+2
2021-05-17libgenl: make genl_add_mcast_grp set errno on errorFlorian Westphal1-2/+9
2021-05-17lib/fs: fix issue when {name,open}_to_handle_at() is not implementedHeiko Thiery1-0/+25
2021-05-06lib: bpf_legacy: avoid to pass invalid argument to close()Andrea Claudi1-1/+1
2021-04-27Merge git://git.kernel.org/pub/scm/network/iproute2/iproute2-nextStephen Hemminger5-4/+169
2021-04-26lib: bpf_legacy: fix missing socket close when connect() failsAndrea Claudi1-8/+13
2021-04-26lib: bpf_legacy: treat 0 as a valid file descriptorAndrea Claudi1-1/+1
2021-04-22lib: move get_task_name() from rdmaAndrea Claudi1-0/+24
2021-04-22libnetlink: add bridge vlan dump request helperNikolay Aleksandrov1-0/+19
2021-04-22mptcp: add support for event monitoringFlorian Westphal1-0/+66
2021-03-21Merge branch 'main' into nextDavid Ahern2-0/+3
2021-03-19nexthop: Add support for nexthop bucketsIdo Schimmel1-0/+26
2021-03-19json_print: Add print_tv()Petr Machata1-0/+13
2021-03-16lib/bpf: add missing limits.h includesTony Ambardar2-0/+3
2021-03-03utils: Introduce helper routines for generic socket recvParav Pandit1-4/+21
2021-02-23Merge git://git.kernel.org/pub/scm/network/iproute2/iproute2-nextStephen Hemminger3-10/+288
2021-02-22lib/fs: Fix single return points for get_cgroup2_*Andrea Claudi1-6/+9
2021-02-22lib/fs: avoid double call to mkdir on make_path()Andrea Claudi1-1/+1
2021-02-22lib/bpf: Fix and simplify bpf_mnt_check_target()Andrea Claudi1-11/+5
2021-02-22lib/namespace: fix ip -all netns return codeAndrea Claudi1-1/+7
2021-02-11utils: Add helper to map string to unsigned intParav Pandit1-2/+15
2021-02-11utils: Add generic socket helpersParav Pandit1-0/+121
2021-02-11utils: Add helper routines for indent handlingParav Pandit1-0/+66
2021-02-02devlink: Support get port function stateParav Pandit1-0/+13
2021-02-02devlink: Introduce and use string to number mapperParav Pandit1-0/+28
2021-01-18vrf: fix ip vrf exec with libbpfLuca Boccassi1-1/+2
2021-01-18build: Fix link errors on some systemsRoi Dayan5-149/+162
2021-01-18lib: Generalize parse_mapping()Petr Machata1-6/+31
2021-01-18lib: rt_names: Add rtnl_dsfield_get_name()Petr Machata1-4/+16
2020-12-09lib: Move get_size() from tc herePetr Machata1-0/+35
2020-12-09lib: Move get_rate(), get_rate64() from tc herePetr Machata1-0/+79
2020-12-09lib: print_color_rate(): Fix formatting small rates in IEC modePetr Machata1-1/+2
2020-12-09lib: sprint_size(): Uncrustify the code a bitPetr Machata1-4/+6
2020-12-09lib: Move sprint_size() from tc here, add print_size()Petr Machata1-0/+28
2020-12-09lib: Move print_rate() from tc here; modernizePetr Machata1-0/+32
2020-12-04Only compile mnl_utils when HAVE_MNL is definedDavid Ahern1-1/+4
2020-11-24lib: add libbpf supportHangbin Liu3-0/+532
2020-11-24lib: make ipvrf able to use libbpf and fix function name conflictsHangbin Liu3-13/+27
2020-11-24iproute2: add check_libbpf() and get_libbpf_version()Hangbin Liu2-1/+64
2020-11-24Merge branch 'main' into nextDavid Ahern1-0/+2
2020-11-13lib: parse_mapping: Recognize a keyword "all"Petr Machata1-2/+4
2020-11-13lib: parse_mapping: Update argc, argv on errorPetr Machata1-5/+10
2020-11-13lib: Extract from iplink_vlan a helper to parse key:value arraysPetr Machata1-0/+28
2020-11-13lib: Extract from devlink/mnlg a helper, mnlu_socket_recv_run()Petr Machata1-0/+61
2020-11-13lib: Extract from devlink/mnlg a helper, mnlu_msg_prepare()Petr Machata1-0/+19
2020-11-13lib: Extract from devlink/mnlg a helper, mnlu_socket_open()Petr Machata2-1/+31
2020-11-13lib: json_print: Add print_on_off()Petr Machata1-7/+27
2020-11-13lib: Add parse_one_of(), parse_on_off()Petr Machata1-0/+28
2020-11-13Unify batch processing across toolsPetr Machata1-0/+40
2020-10-28libnetlink: define __aligned conditionallyJohannes Berg1-0/+2
2020-10-25Merge branch 'main' into nextDavid Ahern1-3/+2
2020-10-20m_mpls: add mac_push actionGuillaume Nault1-0/+1
2020-10-11lib: ignore invalid mounts in cg_init_mapDmitry Yakunin1-3/+2
2020-09-01iplink: add support for protodown reasonRoopa Prabhu1-0/+92
2020-08-24libnetlink: add nl_print_policy() helperJohannes Berg1-0/+73
2020-07-14Merge branch 'main' into nextDavid Ahern1-4/+4
2020-07-06lib: fix checking of returned file handle size for cgroupDmitry Yakunin1-4/+4
2020-07-05add support to keepalived rtm_protocolAlexandre Cassen1-21/+22
2020-06-05Merge git://git.kernel.org/pub/scm/network/iproute2/iproute2-nextStephen Hemminger3-3/+271
2020-05-27bpf: Fixes a snprintf truncation warningAndrea Claudi1-1/+5
2020-05-27Revert "bpf: replace snprintf with asprintf when dealing with long buffers"Andrea Claudi1-116/+39
2020-05-27Merge branch 'master' into nextDavid Ahern1-5/+5
2020-05-19utils: remove trailing zeros in print_time() and print_time64()Eric Dumazet1-5/+5
2020-05-13ss: introduce cgroup2 cache and helper functionsDmitry Yakunin3-3/+271
2020-05-04json_print: Return number of characters printedBenjamin Poirier1-36/+59
2020-01-27json_print: Add new json object function not as array itemRon Diskin1-4/+26
2020-01-27json_print: Introduce print_#type_name_valueRon Diskin1-0/+13
2019-12-29utils: fix indentationStephen Hemminger1-1/+1
2019-11-09Merge branch 'master' into nextDavid Ahern1-13/+13
2019-11-01libnetlink.c, ss.c: properly handle fread() errorsMichał Łyszczek1-13/+13
2019-10-28ip: allow to use alternative names as handleJiri Pirko1-3/+4
2019-10-28ip: add support for alternative name addition/deletion/listJiri Pirko1-5/+14
2019-10-28lib/ll_map: cache alternative namesJiri Pirko1-38/+152
2019-10-14ipnetns: enable to dump nsid conversion tableNicolas Dichtel1-3/+12
2019-09-24Merge ../iproute2-nextStephen Hemminger1-39/+116
2019-09-24bpf: Fix race condition with map pinningJoe Stringer1-2/+8
2019-09-19bpf: replace snprintf with asprintf when dealing with long buffersAndrea Claudi1-39/+116
2019-08-12lib: fix spelling errorsStephen Hemminger2-2/+2
2019-07-29utils: Fix get_s64() functionKurt Kanzenbach1-1/+1
2019-07-19json: fix backslash escape typo in jsonw_putsIvan Delalande1-1/+1
2019-07-15utils: don't match empty strings as prefixesMatteo Croce1-5/+10
2019-07-10lib: add mpls_uc and mpls_mc as link layer protocol namesJohn Hurley1-0/+2
2019-06-28utils: move parse_percent() to tc_utilAndrea Claudi1-16/+0
2019-06-21Merge branch 'master' into nextDavid Ahern4-61/+8
2019-06-20netns: make netns_{save,restore} staticMatteo Croce1-31/+0
2019-06-20netns: switch netns in the child when executing commandsMatteo Croce2-28/+6
2019-06-18ip: add a new parameter -NumericHangbin Liu4-11/+14
2019-06-14Merge branch 'master' into nextDavid Ahern1-0/+31
2019-06-12devlink: mnlg: Catch returned error value of dumpit commandsMoshe Shemesh1-2/+2
2019-06-11libnetlink: Add helper to create nexthop dump requestDavid Ahern1-0/+27
2019-06-11libnetlink: Add helper to add a group via setsockoptDavid Ahern1-0/+6
2019-06-11libnetlink: Set NLA_F_NESTED in rta_nestDavid Ahern1-0/+1
2019-06-10ip: reset netns after each command in batch modeMatteo Croce1-0/+31
2019-05-28lib: suppress error msg when filling the cacheNicolas Dichtel1-1/+1
2019-04-11ip: display netrom link typeRalf Baechle1-1/+1
2019-02-22Improve batch and dump times by caching link lookupsDavid Ahern1-1/+51
2019-02-22ll_map: Add function to remove link cache entry by indexDavid Ahern1-0/+14
2019-02-22Merge branch 'iproute2-master' into nextDavid Ahern2-1/+30
2019-02-13lib/libnetlink: ensure a minimum of 32KB for the buffer used in rtnl_recvmsg()Eric Dumazet1-0/+2
2019-02-10use print_{,h}hu instead of print_uint when format specifier is %{,h}huDavide Caratti1-3/+3
2019-02-05bpf: add btf func and func_proto kind supportYonghong Song1-0/+4
2019-02-05bridge: fdb: Fix FDB dump with strict checking disabledIdo Schimmel1-0/+23