Commit Graph

20 Commits

Author SHA1 Message Date
Wolfgang Bumiller
1b915170db net: improve ingress tc filter
Instead of doing a dummy "0 == 0" comparison with the u32
filter just use the 'basic' filter.
2016-03-08 15:58:57 +01:00
Wolfgang Bumiller
bce2a5b34c net: tap_plug() needs to apply rate limiting
Any action we take in tap_plug() when using OVS will undo
our rate limiting, which means any hotplug change must
restore the previous rate setting.
Since this means tap_plug() would always be followed by a
tap_rate_limit() call anyway we just include the rate
parameter here and let the caller decide whether the full
tap_plug() is required or the simple tap_rate_limit()
suffices.
2016-03-08 15:50:17 +01:00
Wolfgang Bumiller
ad066ae2de network: tap_rate_limit: fix uninitialized value 2016-03-08 15:50:03 +01:00
Wolfgang Bumiller
f029c1d092 network: get rid of ioctl.ph 2016-02-12 11:17:20 +01:00
Wolfgang Bumiller
12a235d624 Fix #882: active state of interfaces depends on ipv6
read_etc_network_interfaces used the content of
/proc/net/if_inet6 to decide whether an interface's state is
"active", which means an interface is only active when it
has an ipv6 address, thus using net.ipv6.conf.*.disable_ipv6
on an interface will cause it to show as inactive in the web
interface.

We now filter the interfaces found in /proc/dev/net by their
IFF_UP flag read via an SIOCGIFFLAGS ioctl().
2016-02-10 12:20:21 +01:00
Wolfgang Bumiller
846337ad41 network: fix uninitialized value error 2016-01-18 11:01:35 +01:00
Alexandre Derumier
b0b34ffd4e network : add trunks support
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2016-01-15 17:25:42 +01:00
Dietmar Maurer
34eb365639 avoid access to undefinded var $tag 2015-11-19 06:23:12 +01:00
Wolfgang Bumiller
bf52d27bb3 network: IP_from_cidr and is_ip_in_cidr helpers 2015-10-16 16:51:01 +02:00
Stefan Priebe
ce1c3cc44a support QinQ / vlan stacking
Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
2015-09-21 09:30:15 +02:00
Wolfgang Bumiller
b6bff92ee5 Added PVE::Network::tcp_ping to replace Net::Ping
We use Net::Ping twice in pve-storage (once for ISCSIPlugin
and once in GlusterfsPlugin, both with the 'tcp' variant.),
but Net::Ping doesn't support IPv6.
2015-08-28 10:55:17 +02:00
Wolfgang
5d35df41fc fix bug #860: fix the upload from a VM when it is restricted. 2015-08-17 08:32:51 +02:00
Alen Grizonic
32cb7d272f tap device name parse fix
Signed-off-by: Alen Grizonic <a.grizonic@proxmox.com>
2015-08-10 09:05:37 +02:00
Alexandre Derumier
ff0420567b fix tap_plug with vlan for non aware vlan bridges
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2015-08-03 16:13:04 +02:00
Wolfgang Bumiller
6fc54cb240 replace /sbin/vconfig with /sbin/ip call 2015-07-29 11:29:47 +02:00
Alexandre Derumier
4d25f4aafe tap_plug : add support for vlan aware linux bridge
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2015-07-29 10:48:06 +02:00
Wolfgang Bumiller
61aa94e472 PVE::Network: add some common constants
added ipv4_reverse_mask and ipv4_mask_hash_localnet as they
are used in several places.
2015-07-23 06:27:47 +02:00
Alexandre Derumier
f3f0bc3afd add veth_delete
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2015-06-26 11:49:39 +02:00
Alexandre Derumier
35efc4ebcc add veth_create
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2015-06-26 11:49:16 +02:00
Dietmar Maurer
b51b16e6f5 rename data to src 2015-02-27 16:57:20 +01:00