I am using the command ip -details -statistics link show can0
My result :
re-started bus-errors arbit-lost error-warn error-pass bus-off
0 0 0 15 13 0 numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535
RX: bytes packets errors dropped overrun mcast
7110496 888812 9 0 9 0
TX: bytes packets errors dropped carrier collsns
1761652 880826 0 0 0 0
Is it possible to read error-warn, error-pass, overrun; and writing them to a variable in the C programming language?