-1

I need to bring an interface up/down from C++ running on Linux, and set the IP/netmask (And I use Qt in case that helps).

I need to create the equivalent capability of the ifconfig command from within c++. Is there an interface/library available to help me do this?

TSG
  • 3,545
  • 8
  • 45
  • 101

1 Answers1

2

You have to do it through ioctls: /usr/include/linux/sockios.h Welcome to Linux!

ahoka
  • 294
  • 2
  • 4