Skip to main content

All Questions

Filter by
Sorted by
Tagged with
2 votes
5 answers
2k views

How is an IP packet sent to the gateway?

This is some route command output sample: $ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.240.1 0.0.0.0 ...
Adrian's user avatar
  • 299
0 votes
1 answer
182 views

Find best route in route table using sorting [closed]

I am trying to implement a forwarding algorithm by myself with ARP, ICMP and the forwarding algorithms. Given the routing table: typedef struct route_table_entry { uint32_t prefix; uint32_t ...
C. Cristi's user avatar
  • 101