Playing with network interfaces in C/C++ [closed]
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I've been looking for a way to manipulate network configurations. Required functions are;
- Set/get ip/netmask of an interface.
- Set/get route table information.
- Add/remove networks from/to route table.
- Add/remove virtual interfaces (such as ppp0).
- Up/down network interfaces
- Get general information about the interface (such as received/transmitted byte count, flags, mac address etc.)
There is a huge amount of "piece-of-codes" on the web to implement one of the functions described above but couldn't find a proper source that contains good documentation regarding those topics.
Does anyone know what is the topic that I should search? Or can anyone offer a resource/guide that I can read or follow?
Just stuck a little bit.
Thanks.
networking c c++
closed as off-topic by Jeff Schaller, muru, Christopher, Romeo Ninov, roaima May 16 at 18:49
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Requests for learning materials (tutorials, how-tos etc.) are off topic. The only exception is questions about where to find official documentation (e.g. POSIX specifications). See the Help Center and our Community Meta for more information." â muru, Christopher, Romeo Ninov
add a comment |Â
up vote
0
down vote
favorite
I've been looking for a way to manipulate network configurations. Required functions are;
- Set/get ip/netmask of an interface.
- Set/get route table information.
- Add/remove networks from/to route table.
- Add/remove virtual interfaces (such as ppp0).
- Up/down network interfaces
- Get general information about the interface (such as received/transmitted byte count, flags, mac address etc.)
There is a huge amount of "piece-of-codes" on the web to implement one of the functions described above but couldn't find a proper source that contains good documentation regarding those topics.
Does anyone know what is the topic that I should search? Or can anyone offer a resource/guide that I can read or follow?
Just stuck a little bit.
Thanks.
networking c c++
closed as off-topic by Jeff Schaller, muru, Christopher, Romeo Ninov, roaima May 16 at 18:49
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Requests for learning materials (tutorials, how-tos etc.) are off topic. The only exception is questions about where to find official documentation (e.g. POSIX specifications). See the Help Center and our Community Meta for more information." â muru, Christopher, Romeo Ninov
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I've been looking for a way to manipulate network configurations. Required functions are;
- Set/get ip/netmask of an interface.
- Set/get route table information.
- Add/remove networks from/to route table.
- Add/remove virtual interfaces (such as ppp0).
- Up/down network interfaces
- Get general information about the interface (such as received/transmitted byte count, flags, mac address etc.)
There is a huge amount of "piece-of-codes" on the web to implement one of the functions described above but couldn't find a proper source that contains good documentation regarding those topics.
Does anyone know what is the topic that I should search? Or can anyone offer a resource/guide that I can read or follow?
Just stuck a little bit.
Thanks.
networking c c++
I've been looking for a way to manipulate network configurations. Required functions are;
- Set/get ip/netmask of an interface.
- Set/get route table information.
- Add/remove networks from/to route table.
- Add/remove virtual interfaces (such as ppp0).
- Up/down network interfaces
- Get general information about the interface (such as received/transmitted byte count, flags, mac address etc.)
There is a huge amount of "piece-of-codes" on the web to implement one of the functions described above but couldn't find a proper source that contains good documentation regarding those topics.
Does anyone know what is the topic that I should search? Or can anyone offer a resource/guide that I can read or follow?
Just stuck a little bit.
Thanks.
networking c c++
asked May 16 at 15:36
benjamin button
85
85
closed as off-topic by Jeff Schaller, muru, Christopher, Romeo Ninov, roaima May 16 at 18:49
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Requests for learning materials (tutorials, how-tos etc.) are off topic. The only exception is questions about where to find official documentation (e.g. POSIX specifications). See the Help Center and our Community Meta for more information." â muru, Christopher, Romeo Ninov
closed as off-topic by Jeff Schaller, muru, Christopher, Romeo Ninov, roaima May 16 at 18:49
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Requests for learning materials (tutorials, how-tos etc.) are off topic. The only exception is questions about where to find official documentation (e.g. POSIX specifications). See the Help Center and our Community Meta for more information." â muru, Christopher, Romeo Ninov
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
This is very much dependent on the operating system. If you are targeting Linux, you could have a look at how the ip
command from the Iproute2 package does this.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
This is very much dependent on the operating system. If you are targeting Linux, you could have a look at how the ip
command from the Iproute2 package does this.
add a comment |Â
up vote
1
down vote
This is very much dependent on the operating system. If you are targeting Linux, you could have a look at how the ip
command from the Iproute2 package does this.
add a comment |Â
up vote
1
down vote
up vote
1
down vote
This is very much dependent on the operating system. If you are targeting Linux, you could have a look at how the ip
command from the Iproute2 package does this.
This is very much dependent on the operating system. If you are targeting Linux, you could have a look at how the ip
command from the Iproute2 package does this.
answered May 16 at 18:44
Johan Myréen
6,73711221
6,73711221
add a comment |Â
add a comment |Â