aboutsummaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Expand)AuthorFilesLines
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
2019-02-05libnetlink: linkdump_req: AF_PACKET family also expects ext_filter_maskChris Mi1-1/+1
2019-02-03tc: full JSON support for 'bpf' actionsDavide Caratti1-8/+18
2019-01-07libnetlink: linkdump_req is done for AF_BRIDGE as wellDavid Ahern1-1/+1
2019-01-04libnetlink: Add RTNL_HANDLE_F_STRICT_CHK flagDavid Ahern1-2/+5
2019-01-04libnetlink: Add filter function to rtnl_neighdump_reqDavid Ahern1-1/+11
2018-12-27ip bridge: Set NETLINK_GET_STRICT_CHK on socketDavid Ahern1-0/+9
2018-12-27ip address: Set device index in dump requestDavid Ahern1-1/+11
2018-12-27ip route: Remove rtnl_rtcache_requestDavid Ahern1-1/+11
2018-12-27libnetlink: linkdump_req: Only AF_UNSPEC family expects an ext_filter_maskDavid Ahern1-33/+60
2018-12-27libnetlink: Use NLMSG_LENGTH to set nlmsg_lenDavid Ahern1-10/+14
2018-12-27libnetlink: dump extack string in done messageDavid Ahern1-5/+39
2018-12-19Merge branch 'iproute2-master' into iproute2-nextDavid Ahern4-12/+12
2018-12-13drop support for DECnetStephen Hemminger3-199/+0
2018-12-13remove redundant long intStephen Hemminger3-7/+7
2018-12-10lib/bpf: fix build warning if no elfStephen Hemminger1-5/+5
2018-12-07Merge branch 'iproute2-master' into iproute2-nextDavid Ahern1-0/+3
2018-12-04libnetlink: Process further iovs on no errorPetr Machata1-0/+3
2018-11-24drop support for IPXStephen Hemminger3-170/+0
2018-11-24json: add %hhu helpersJakub Kicinski2-0/+12
2018-11-21bpf: initialise map symbol before retrieving and comparing its typeQuentin Monnet1-3/+7
2018-11-19tc: drop unused name_to_id functionStephen Hemminger1-28/+0
2018-11-19libnetlnk: unused and local functions cleanupStephen Hemminger1-26/+2
2018-11-19lib/ll_map: make local function staticStephen Hemminger1-1/+1
2018-11-19lib/color: make local functions staticStephen Hemminger1-2/+4
2018-11-19lib/utils: make local functions staticStephen Hemminger1-41/+7
2018-11-19lib/ll_addr: whitespace and indent cleanupStephen Hemminger1-11/+13
2018-11-05Include bsd/string.h only in include/utils.hLuca Boccassi3-9/+0
2018-11-01Use libbsd for strlcpy if availableLuca Boccassi3-0/+9
2018-10-31bpf: check map symbol type properly with newer llvm compilerYonghong Song1-3/+9
2018-10-23Merge branch 'iproute2-master' into iproute2-nextDavid Ahern1-1/+1
2018-10-22Tree wide: Drop sockaddr_nl argDavid Ahern2-6/+4
2018-10-22Merge branch 'iproute2-master' into iproute2-nextDavid Ahern2-2/+29
2018-10-18util: spelling fixStephen Hemminger1-1/+1
2018-10-15utils: fix get_rtnl_link_stats_rta stats parsingLorenzo Bianconi1-0/+27
2018-10-15json: make 0xhex handle u64Sabrina Dubroca1-2/+2
2018-10-13Merge branch 'master' into iproute2-nextDavid Ahern1-4/+5
2018-10-09libnetlink: use local variableStephen Hemminger1-3/+3
2018-10-09libnetlink: fix use-after-free of message bufVlad Buslov1-1/+2
2018-10-07utils: Implement get_s64()Vinicius Costa Gomes1-0/+21
2018-10-02libnetlink: Rename rtnl_wilddump_stats_req_filter to rtnl_statsdump_req_filterDavid Ahern1-3/+2
2018-10-02libnetlink: Rename rtnl_wilddump_* to rtnl_linkdump_*David Ahern2-7/+7
2018-10-02libnetlink: Convert GETNSID dumps to use rtnl_nsiddump_reqDavid Ahern1-0/+16
2018-10-02libnetlink: Convert GETNEIGHTBL dumps to use rtnl_neightbldump_reqDavid Ahern1-0/+16
2018-10-02libnetlink: Convert GETNEIGH dumps to use rtnl_neighdump_reqDavid Ahern1-0/+16
2018-10-02libnetlink: Convert GETRULE dumps to use rtnl_ruledump_reqDavid Ahern1-0/+17
2018-10-02libnetlink: Convert GETNETCONF dumps to use rtnl_netconfdump_reqDavid Ahern1-0/+16
2018-10-02libnetlink: Convert GETMDB dumps to use rtnl_mdbdump_reqDavid Ahern1-0/+17
2018-10-02libnetlink: Convert GETADDRLABEL dumps to use rtnl_addrlbldump_reqDavid Ahern1-0/+17
2018-10-02libnetlink: Convert GETROUTE dumps to use rtnl_routedump_reqDavid Ahern1-0/+16
2018-10-02libnetlink: Convert GETADDR dumps to use rtnl_addrdump_reqDavid Ahern1-0/+16
2018-09-28Merge branch 'iproute2-master' into iproute2-nextDavid Ahern1-5/+8
2018-09-25libnetlink: don't return error on successStephen Hemminger1-5/+8
2018-09-20Merge branch 'iproute2-master' into iproute2-nextDavid Ahern3-14/+17
2018-09-17libnetlink: fix leak and using unused memory on errorStephen Hemminger1-14/+9
2018-09-11lib: introduce print_nlStephen Hemminger2-0/+8
2018-08-30tc: support conversions to or from 64 bit nanosecond-based timeDave Taht1-0/+101
2018-08-30iproute: make clang happyMahesh Bandewar3-14/+3
2018-08-20lib: Make check_enable_color() return booleanPhil Sutter1-4/+4
2018-08-20Make colored output configurablePhil Sutter1-1/+32
2018-08-15Merge common code for conditionally colored outputPhil Sutter1-0/+9
2018-08-13Merge branch 'iproute2-master' into iproute2-nextDavid Ahern1-13/+7
2018-07-27lib/namespace: avoid double-mounting a /sysLubomir Rintel1-13/+7
2018-07-25Merge branch 'iproute2-master' into iproute2-nextDavid Ahern1-0/+5
2018-07-18ip: add support for seg6local End.BPF actionMathieu Xhonneux1-0/+5
2018-07-17bpf: implement btf handling and map annotationDaniel Borkmann1-4/+328
2018-07-17bpf: implement bpf to bpf calls supportDaniel Borkmann1-76/+157
2018-07-17bpf: remove strict dependency on af_algDaniel Borkmann1-46/+28
2018-07-17bpf: move bpf_elf_map fixup notification under verboseDaniel Borkmann1-3/+3
2018-06-11iproute2: Add support for a few routing protocolsDonald Sharp1-0/+5
2018-06-01Merge branch 'iproute2-master' into iproute2-nextDavid Ahern1-1/+1
2018-05-17tc: allow 0% for percent optionsStephen Hemminger1-1/+1
2018-05-16Merge branch 'iproute2-master' into iproute2-nextDavid Ahern1-3/+12
2018-05-14ip: do not drop capabilities if net_admin=i is setLuca Boccassi1-3/+12
2018-05-05bpf: don't offload perf array mapsJakub Kicinski1-3/+8
2018-04-25json_print: Fix hidden 64-bit type promotionToke Høiland-Jørgensen2-5/+43
2018-04-20bpf: fix warnings on gcc-8 about string truncationStephen Hemminger1-3/+3
2018-04-16utils: Do not reset family for default, any, all addressesDavid Ahern1-2/+2
2018-04-02Merge branch 'iproute2-master' into iproute2-nextDavid Ahern3-17/+7
2018-04-01rdma: Add MR resource tracking informationSteve Wise1-0/+11
2018-03-29arrange prefix parsing code after redundant patchesAlexander Zubkov1-13/+0
2018-03-29namespace: limit the length of namespace name to avoid snprintf overflowStephen Hemminger1-1/+4
2018-03-29bpf: avoid compiler warnings about strncpyStephen Hemminger1-3/+3
2018-03-27Merge branch 'iproute2-master' into iproute2-nextDavid Ahern1-6/+49
2018-03-27Drop capabilities if not running ip exec vrf with libcapLuca Boccassi1-0/+22
2018-03-27treat "default" and "all"/"any" addresses differentyAlexander Zubkov1-6/+14
2018-03-13Merge branch 'iproute2-master' into iproute2-nextDavid Ahern6-19/+44
2018-03-12Revert "iproute: "list/flush/save default" selected all of the routes"Stephen Hemminger1-0/+13
2018-03-11utils: Introduce and use nodev() helper routineSerhey Popovych1-0/+6
2018-03-06json_writer: add SPDX Identifier (GPL-2/BSD-2)Stephen Hemminger1-5/+1
2018-03-02libnetlink: __rtnl_talk_iov should only loop max iovlen timesDavid Ahern1-1/+2
2018-03-02bpf: Print section name when hitting non ld64 issueJoe Stringer1-0/+1
2018-02-23ip: Properly display AF_BRIDGE address information for neighbor eventsDonald Sharp1-0/+19
2018-02-23devlink: mnlg: Add support for extended ackArkadi Sharshevsky1-2/+2
2018-02-23color: disable color when json output is requestedVincent Bernat1-8/+0
2018-02-23lib/namespace: don't try to mount rw /sys over a ro oneLubomir Rintel1-3/+19
2018-02-21ip: always print interface name in colorStephen Hemminger1-2/+2
2018-02-16utils: Introduce and use print_name_and_link() to print name@linkSerhey Popovych1-0/+49
2018-02-16utils: Introduce and use get_ifname_rta()Serhey Popovych1-0/+19
2018-02-16lib: Correct object file dependenciesSerhey Popovych1-2/+2
2018-02-16utils: Reimplement ll_idx_n2a() and introduce ll_idx_a2n()Serhey Popovych1-10/+21
2018-02-16ip: Use single variable to represent -prettySerhey Popovych2-1/+2
2018-02-10json: fix newline at end of arrayStephen Hemminger2-2/+5
2018-02-10json: make pretty printing optionalStephen Hemminger1-1/+2
2018-02-07ip: Introduce get_rtnl_link_stats_rta() to get link statisticsSerhey Popovych1-0/+45
2018-01-26tc: red: JSON-ify RED outputJakub Kicinski2-4/+1
2018-01-25utils: Introduce get_addr_rta() and inet_addr_match_rta()Serhey Popovych1-19/+76
2018-01-21ip: Get rid of inet_get_addr()Serhey Popovych1-8/+0
2018-01-21utils: Fast inet address classification after get_addr()Serhey Popovych1-1/+31
2018-01-21utils: Always specify family and ->bytelen in get_prefix_1()Serhey Popovych1-32/+32
2018-01-21utils: Always specify family for address in get_addr_1()Serhey Popovych1-2/+2
2018-01-19bpf: support map offloadJakub Kicinski1-2/+5
2018-01-14lib/libnetlink: Add a new function rtnl_talk_iovChris Mi1-19/+46
2017-12-26utils: ll_addr: Handle ARPHRD_IP6GRE in ll_addr_n2a()Serhey Popovych1-1/+2
2017-12-19iproute: "list/flush/save default" selected all of the routesAlexander Zubkov1-0/+1
2017-12-18utils: fix makeargs stack overflowStephen Hemminger1-7/+16
2017-11-26bpf: allow loading programs for a specific ifindexJakub Kicinski1-11/+26
2017-11-26bpf: expose bpf_parse_common() and bpf_load_common()Jakub Kicinski1-10/+16
2017-11-26bpf: rename bpf_parse_common() to bpf_parse_and_load_common()Jakub Kicinski1-2/+2
2017-11-26bpf: split parse from program loadingJakub Kicinski1-12/+37
2017-11-26bpf: allocate opcode table in struct bpf_cfg_inJakub Kicinski1-5/+2
2017-11-26bpf: keep parsed program mode in struct bpf_cfg_inJakub Kicinski1-26/+16
2017-11-26bpf: pass program type in struct bpf_cfg_inJakub Kicinski1-19/+19
2017-11-24SPDX license identifiersStephen Hemminger10-0/+12
2017-11-24tc: B.W limits can now be specified in %.Nishanth Devarajan1-0/+68
2017-11-23bpf: initialize the verifier logJakub Kicinski1-1/+2
2017-11-13Merge branch 'master' into net-nextStephen Hemminger1-1/+0
2017-11-13utils: remove duplicate include of ctype.hStephen Hemminger1-1/+0
2017-11-12drop unneeded include of syslog.hStephen Hemminger8-8/+0
2017-11-12Merge branch 'master' into net-nextStephen Hemminger1-0/+1
2017-11-12lib: make resolve_hosts variable commonIvan Vecera1-0/+1
2017-11-09libnetlink: Handle extack messages for non-error caseDavid Ahern1-10/+19
2017-10-26lib/libnetlink: update rtnl_talk to support malloc buff at run timeHangbin Liu2-15/+18
2017-10-26lib/libnetlink: re malloc buff if size is not enoughHangbin Liu1-34/+80
2017-10-16color: Rename enumPetr Vorel1-3/+3
2017-10-16color: Cleanup code to remove "magic" offset + 7Petr Vorel1-5/+8
2017-10-16color: Fix another ip segfault when using --color switchPetr Vorel1-2/+2
2017-10-11utils: add print_escape_buf to format and print arbitrary bytesIvan Delalande1-0/+15
2017-10-11lib: fix multiple strlcpy definitionBaruch Siach1-0/+2
2017-10-02Check user supplied interface name lengthsPhil Sutter1-0/+29
2017-09-29lib: json_print: rework 'new_json_obj' drop FILE* argumentJulien Fortin1-21/+10
2017-09-22bpf: properly output json for xdpDaniel Borkmann1-6/+13
2017-09-22json: move json printer to common libraryDaniel Borkmann2-1/+232
2017-09-07utils: strlcpy() and strlcat() don't clobber dstPhil Sutter1-4/+8
2017-09-05Merge branch 'master' into net-nextStephen Hemminger1-15/+23
2017-09-05bpf: consolidate dumps to use bpf_dump_prog_infoDaniel Borkmann1-3/+9
2017-09-05bpf: minor cleanups for bpf_trace_pipeDaniel Borkmann1-10/+9
2017-09-04lib/bpf: Fix bytecode-file parsingPhil Sutter1-2/+5
2017-09-01Merge branch 'master' into net-nextStephen Hemminger4-6/+22
2017-09-01Convert the obvious cases to strlcpy()Phil Sutter3-6/+3
2017-09-01utils: Implement strlcpy() and strlcat()Phil Sutter1-0/+19
2017-08-24Merge branch 'master' into net-nextStephen Hemminger5-37/+31
2017-08-24lib/libnetlink: Don't pass NULL parameter to memcpy()Phil Sutter1-2/+4
2017-08-24lib/fs: Fix and simplify make_path()Phil Sutter1-15/+5
2017-08-24lib/bpf: Check return value of write()Phil Sutter1-1/+2
2017-08-24bpf: drop unused parameter to bpf_report_map_in_mapStephen Hemminger1-2/+2
2017-08-24libnetlink: drop unused parameter to rtnl_dump_doneStephen Hemminger1-3/+2