···11#include "socket.h"
22#include <sys/errno.h>
33+#include <sys/socket.h>
44+#include <ifaddrs.h>
55+#include <net/if.h>
66+#include <netinet/in.h>
77+#include <sys/sockio.h>
88+#include <netinet6/in6_var.h>
39410int handle_socket(int fd, unsigned int cmd, void* arg, int* retval)
511{
66- // BEWARE: This function is not yet wired into the logic and the build
1212+ switch (cmd)
1313+ {
1414+ // TODO: This has to be implemented for container with separate networking
1515+ case SIOCGIFFLAGS:
1616+ case SIOCSIFFLAGS:
1717+ case SIOCAIFADDR: // set IPv4 address
1818+ case SIOCAIFADDR_IN6: // set IPv6 address
1919+ *retval = -ENOTSUP;
2020+ return IOCTL_HANDLED;
2121+ }
722 return IOCTL_PASS;
823}
924