What package do i need to install for using routing sockets?

前端 未结 5 1227
小鲜肉
小鲜肉 2020-12-09 21:59

i am trying code given in Unix Network Programming by Richard Stevens. but i am not able to get the code to compile.

here is the source code. http://www.cs.cmu.edu/a

5条回答
  •  我在风中等你
    2020-12-09 22:29

    That is a BSD-specific API, and linux doesn't support it. The equivalent functionality (not source-compatible) is provided by the netlink socket family. "man 7 netlink" should get you started, but you're likely going to need to do some porting work.

提交回复
热议问题