目前我的程序正在调用system()来ifconfig执行此操作。
system()
ifconfig
它看起来有点乱 - 也许ifconfig不在路径上,或者在某个非标准位置。然后我需要检查iproute2 的等效项,以防失败。
有没有办法使用 C 以编程方式设置它?
c linux networking network-programming mtu
c ×1
linux ×1
mtu ×1
network-programming ×1
networking ×1