How to programmatically edit the routing table

后端 未结 3 1466
不思量自难忘°
不思量自难忘° 2020-12-30 15:10

I am writing a daemon running on an embedded platform that needs to change the default route of the device according to which interface it is connecting on at a given time.

3条回答
  •  北海茫月
    2020-12-30 15:54

    I would recommend just using that route command. Thats what it's there for, and anything else will just be a hack.

提交回复
热议问题