Laine Stump
ab989962d4
qemu: qemuMonitorQueryRxFilter - retrieve guest netdev rx-filter
...
This function can be called at any time to get the current status of a
guest's network device rx-filter. In particular it is useful to call
after libvirt recieves a NIC_RX_FILTER_CHANGED event - this event only
tells you that something has changed in the rx-filter, the details are
retrieved with the query-rx-filter monitor command (only available in
the json monitor). The command sent to the qemu monitor looks like this:
{"execute":"query-rx-filter", "arguments": {"name":"net2"} }'
and the results will look something like this:
{
"return": [
{
"promiscuous": false,
"name": "net2",
"main-mac": "52:54:00:98:2d:e3",
"unicast": "normal",
"vlan": "normal",
"vlan-table": [
42,
0
],
"unicast-table": [
],
"multicast": "normal",
"multicast-overflow": false,
"unicast-overflow": false,
"multicast-table": [
"33:33:ff:98:2d:e3",
"01:80:c2:00:00:21",
"01:00:5e:00:00:fb",
"33:33:ff:98:2d:e2",
"01:00:5e:00:00:01",
"33:33:00:00:00:01"
],
"broadcast-allowed": false
}
],
"id": "libvirt-14"
}
This is all parsed from JSON into a virNetDevRxFilter object for
easier consumption. (unicast-table is usually empty, but is also an
array of mac addresses similar to multicast-table).
(NB: LIBNL_CFLAGS was added to tests/Makefile.am because virnetdev.h
now includes util/virnetlink.h, which includes netlink/msg.h when
appropriate. Without LIBNL_CFLAGS, gcc can't find that file (if
libnl/netlink isn't available, LIBNL_CFLAGS will be empty and
virnetlink.h won't try to include netlink/msg.h anyway).)
2014-10-06 13:32:38 -04:00
..
2014-07-24 18:56:37 +04:00
2014-04-08 20:50:36 +04:00
2013-10-29 07:06:04 -06:00
2014-09-03 09:36:13 -06:00
2014-09-05 12:45:19 +02:00
2014-09-17 16:29:49 +02:00
2014-02-20 15:50:46 +00:00
2014-09-10 09:38:07 +02:00
2014-04-16 10:45:55 +02:00
2014-01-29 12:56:35 +01:00
2013-05-13 17:24:18 +08:00
2014-06-20 11:50:41 +03:00
2014-07-23 15:12:37 +08:00
2014-07-30 14:21:55 +02:00
2013-11-07 18:43:15 +01:00
2014-03-26 16:42:43 +02:00
2014-04-25 15:44:09 +01:00
2014-10-06 11:49:10 -04:00
2014-10-06 11:49:10 -04:00
2013-08-28 08:05:46 +02:00
2014-02-04 12:00:26 +02:00
2014-07-21 12:55:11 -04:00
2014-06-20 15:59:08 +02:00
2014-04-25 15:44:10 +01:00
2014-10-03 22:43:08 +02:00
2014-03-26 13:41:25 +01:00
2013-09-02 14:45:38 +02:00
2014-09-05 08:35:34 +02:00
2013-11-08 09:44:36 +01:00
2014-10-06 11:49:10 -04:00
2014-10-03 11:30:29 -04:00
2013-09-02 16:53:39 -04:00
2014-02-14 16:47:14 +01:00
2014-03-07 14:02:10 +01:00
2013-08-20 10:46:58 -06:00
2014-09-10 09:38:07 +02:00
2013-05-17 08:33:22 +02:00
2014-09-18 18:08:29 +04:00
2014-09-18 18:08:29 +04:00
2013-05-17 08:35:08 +02:00
2014-08-01 15:42:28 +02:00
2014-07-16 13:35:26 +02:00
2014-07-16 13:35:26 +02:00
2014-01-01 16:34:13 +00:00
2014-06-18 15:19:18 +02:00
2014-06-05 13:58:13 +02:00
2013-11-28 11:49:01 +00:00
2014-01-25 12:53:11 +01:00
2014-03-29 21:14:15 +01:00
2014-03-03 14:35:22 +01:00
2014-06-11 14:56:18 +02:00
2014-02-19 09:16:31 +01:00
2014-09-10 09:38:07 +02:00
2013-10-15 11:39:02 +01:00
2013-08-01 17:04:28 -04:00
2014-09-18 13:37:12 +04:00
2014-08-19 20:50:22 +04:00
2014-04-08 20:50:36 +04:00
2014-09-03 15:00:18 -04:00
2014-09-03 09:36:13 -06:00
2013-08-22 11:38:36 +02:00
2014-09-05 12:45:19 +02:00
2014-07-03 12:22:37 +02:00
2014-09-18 13:37:12 +04:00
2014-03-25 14:58:41 +01:00
2014-07-29 09:52:16 +04:00
2014-07-03 10:48:14 +02:00
2014-03-25 14:58:41 +01:00
2014-03-18 14:29:22 +00:00
2014-03-25 14:58:41 +01:00
2014-04-25 11:59:46 +01:00
2014-03-18 11:29:44 +01:00
2014-03-25 14:58:41 +01:00
2014-08-20 14:50:21 +02:00
2014-03-25 14:58:41 +01:00
2014-07-30 14:21:55 +02:00
2014-10-06 13:32:38 -04:00
2014-07-17 17:04:12 +02:00
2014-03-25 14:58:41 +01:00
2014-04-30 10:16:09 +02:00
2014-08-21 15:55:07 +02:00
2014-03-25 14:58:41 +01:00
2014-07-21 12:55:11 -04:00
2014-06-20 15:59:08 +02:00
2014-04-30 12:51:38 -04:00
2014-04-25 15:44:10 +01:00
2014-03-25 14:58:41 +01:00
2014-09-15 10:44:27 -04:00
2014-03-18 10:20:49 +01:00
2014-03-25 14:58:41 +01:00
2014-08-11 12:11:41 +02:00
2014-08-26 10:41:24 +02:00
2014-09-23 08:11:49 +02:00
2014-07-14 08:00:46 -06:00
2014-10-03 22:43:08 +02:00
2014-03-26 13:49:47 +01:00
2014-09-15 13:18:56 -04:00
2013-10-08 12:39:30 +01:00
2014-06-03 17:19:24 +02:00
2013-10-01 10:48:47 +02:00
2014-02-06 15:15:10 +01:00
2014-10-03 22:43:09 +02:00
2014-10-03 22:43:08 +02:00
2014-09-19 09:08:23 +02:00
2014-03-03 12:40:32 -07:00
2013-08-23 15:23:44 -06:00
2014-07-21 12:55:11 -04:00
2014-09-04 15:18:43 -06:00
2014-02-14 16:47:14 +01:00
2014-03-25 14:58:41 +01:00
2014-05-28 16:52:48 -06:00
2014-07-01 16:45:35 +02:00
2014-03-25 14:58:41 +01:00
2014-08-18 20:36:24 -06:00
2014-03-20 17:06:38 +01:00
2014-08-28 12:52:42 +02:00
2014-03-20 12:15:00 +00:00
2013-07-29 13:09:39 -06:00
2014-07-15 22:00:59 +04:00
2014-04-02 06:03:00 -06:00
2013-05-17 08:33:22 +02:00
2014-09-18 18:08:29 +04:00
2013-05-17 08:35:08 +02:00
2014-08-01 15:42:28 +02:00
2014-03-25 14:58:41 +01:00
2014-03-25 14:58:41 +01:00
2014-09-03 15:00:19 -04:00
2013-03-19 13:13:28 -06:00
2013-09-13 10:25:56 +02:00
2014-09-04 14:34:03 -06:00
2014-04-25 15:44:09 +01:00
2014-07-14 08:00:46 -06:00
2014-03-18 12:17:12 +01:00
2014-09-05 08:35:34 +02:00
2014-07-03 12:22:37 +02:00
2014-07-14 08:00:46 -06:00
2014-03-18 12:17:12 +01:00
2013-10-08 12:39:30 +01:00
2014-07-01 16:46:29 +02:00
2014-06-12 14:06:21 +02:00
2014-04-25 11:29:55 +01:00
2013-11-20 09:14:55 -07:00
2014-03-25 14:58:41 +01:00
2014-07-29 12:00:42 +01:00
2014-03-25 14:58:41 +01:00
2014-07-14 08:00:46 -06:00
2014-07-14 08:00:46 -06:00
2014-03-25 14:58:41 +01:00
2014-04-09 16:24:08 +02:00
2014-03-10 16:39:18 +00:00
2014-09-24 15:29:22 +01:00
2014-08-27 07:41:48 +02:00
2014-03-25 14:58:41 +01:00
2013-11-28 11:49:01 +00:00
2014-09-11 15:40:50 -06:00
2014-03-25 14:58:41 +01:00
2014-04-28 22:58:10 +02:00
2014-03-25 14:58:41 +01:00
2014-03-25 14:58:41 +01:00
2014-03-25 14:58:41 +01:00
2014-03-25 14:58:41 +01:00
2014-03-25 14:58:41 +01:00
2014-03-25 14:58:41 +01:00
2013-10-14 10:31:01 +01:00
2014-09-11 15:40:50 -06:00
2014-05-20 15:16:22 -06:00
2014-04-07 11:35:29 +02:00
2014-03-25 14:58:41 +01:00
2013-09-24 09:37:26 +01:00
2013-10-08 12:39:30 +01:00
2014-03-25 14:58:41 +01:00
2014-09-04 11:56:39 +02:00
2014-07-16 09:39:57 +02:00
2013-08-09 11:54:41 +01:00
2014-09-04 11:56:39 +02:00
2014-04-08 11:15:55 +01:00
2014-03-25 14:58:41 +01:00
2014-09-24 15:29:22 +01:00
2014-09-11 15:40:14 -06:00
2014-03-29 21:14:15 +01:00
2013-08-12 18:47:56 +02:00
2014-03-18 08:27:29 +01:00
2013-04-03 08:49:30 +02:00
2012-09-12 11:27:22 -06:00
2013-09-13 10:25:56 +02:00
2014-03-25 14:58:41 +01:00
2014-09-24 09:28:29 +02:00
2014-09-11 08:10:13 -04:00
2014-09-11 15:40:50 -06:00
2014-04-21 16:49:08 -06:00
2014-07-25 12:06:07 +02:00
2014-03-25 14:58:41 +01:00
2014-03-25 14:58:41 +01:00
2014-03-25 14:58:41 +01:00
2014-06-11 14:56:18 +02:00
2014-07-14 08:00:46 -06:00
2014-03-20 17:06:38 +01:00
2014-08-18 20:36:24 -06:00
2014-08-18 20:36:24 -06:00
2014-07-14 08:00:46 -06:00