Closed BranLiang closed 1 year ago
Currently, you can't set the netmask in macos system. It will always be netmask 0xff000000, no matter what kind of netmask is given to the program.
netmask
netmask 0xff000000
Seems command siocsifnetmask doesn't work as expected. The fix tries to make another system call siocaifaddr, which was defined but not used.
siocsifnetmask
siocaifaddr
Tophatting:
Currently, you can't set the
netmask
in macos system. It will always benetmask 0xff000000
, no matter what kind of netmask is given to the program.Seems command
siocsifnetmask
doesn't work as expected. The fix tries to make another system callsiocaifaddr
, which was defined but not used.Tophatting: