简体   繁体   中英

What system calls does one use for sending data over the internet?

Seeing as network interfaces don't have a location within /dev , I'm curious as to how one would program utilities that make web requests (or configure stuff), ie

ip link set *interface* up
iw dev *interface* scan

Specifically, what system calls would one even use?

Try this,

strace -e trace=network ip link 2>log2.txt

then read log2.txt to see what system calls were made by ip link . From there you can search the web or man pages for more specific details.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM