How does the "route" utility make sense of the data in /proc/net/route?
0
votes
1
answer
446
views
result of
cat /proc/net/route
:
Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT
wlo1 00000000 0100A8C0 0003 0 0 600 00000000 0 0 0
wlo1 0000A8C0 00000000 0001 0 0 600 00FFFFFF 0 0 0
result of route
:
IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default _gateway 0.0.0.0 UG 600 0 0 wlo1
192.168.0.0 0.0.0.0 255.255.255.0 U 600 0 0 wlo1
I am sensing that some kind of hex codes are being used, but I am still not able to understand how 0100A8C0 translates to _gateway
(same for the rest).
Asked by kesarling
(159 rep)
Jan 21, 2024, 07:59 PM
Last activity: Jan 21, 2024, 08:03 PM
Last activity: Jan 21, 2024, 08:03 PM