]> git.proxmox.com Git - mirror_qemu.git/commit
linux-user: Add support for SIOC<G|S>IFPFLAGS ioctls for all targets
authorNeng Chen <nchen@wavecomp.com>
Sun, 19 May 2019 16:15:24 +0000 (18:15 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Wed, 22 May 2019 18:50:55 +0000 (20:50 +0200)
commit4bdcd79e3e4127c2813a4caebd38c96f1974983e
tree34368b6bc3f9db37dc519a6174cc5a5d8cdcfac9
parentc495a793409595c3f08ec5129ab7d8f267d73d28
linux-user: Add support for SIOC<G|S>IFPFLAGS ioctls for all targets

Add support for getting and setting extended private flags of a
network device via SIOCSIFPFLAGS and SIOCGIFPFLAGS ioctls.

The ioctl numeric values are platform-independent and determined by
the file include/uapi/linux/sockios.h in Linux kernel source code:

  #define SIOCSIFPFLAGS 0x8934
  #define SIOCGIFPFLAGS 0x8935

These ioctls get (or set) the field ifr_flags of type short in the
structure ifreq. Such functionality is achieved in QEMU by using
MK_STRUCT() and MK_PTR() macros with an appropriate argument, as
it was done for existing similar cases.

Signed-off-by: Neng Chen <nchen@wavecomp.com>
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <1554839486-3527-1-git-send-email-aleksandar.markovic@rt-rk.com>
Message-Id: <1558282527-22183-4-git-send-email-aleksandar.markovic@rt-rk.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/ioctls.h
linux-user/syscall_defs.h