Susant Sahani
69c317a07f
networkd: introduce netdev ipvtap
...
This patch adds netdev ipvtap that is based on the
IP-VLAN network interface, called ipvtap. An ipvtap device can be created
in the same way as an ipvlan device, using 'kind ipvtap', and then accessed
using the tap user space interface.
2019-05-16 09:48:53 +09:00
Susant Sahani
deb2cfa4c6
networkd: do not generate MAC for bridge device.
...
closes https://github.com/systemd/systemd/issues/12558
2019-05-15 04:03:14 +02:00
Yu Watanabe
bc45457f08
Merge pull request #12516 from yuwata/network-split-link
...
networkd: split networkd-link.c
2019-05-12 00:51:23 +02:00
Susant Sahani
d70c9bbd6c
networkd: Geneve add support for inherit for TTL
2019-05-12 00:39:13 +02:00
Yu Watanabe
8e2cb51ce0
network: move MulticastRouter to netdev/bridge.[ch]
2019-05-11 06:24:04 +09:00
Yu Watanabe
86e2be7bc3
network: drop unnecessary initializations
2019-05-11 06:24:04 +09:00
Yu Watanabe
4799f19e30
network: move link_set_bond() to netdev/bond.c
2019-05-11 06:24:04 +09:00
Yu Watanabe
9a81f11956
network: move link_set_bridge to netdev/bridge.c
2019-05-11 06:24:04 +09:00
Yu Watanabe
8e54db83e2
network: make link_drop() can take custom handler
...
It will be used in the later commit.
2019-05-11 06:15:35 +09:00
Susant Sahani
f4a8ca329a
networkd: VXLAN support keyword 'inherit' for TTL
2019-05-10 20:41:04 +02:00
Yu Watanabe
cd43199671
Merge pull request #12520 from ssahani/geneve
...
networkd: Geneve add DF feature and allow TTL to bechosen by kernel
2019-05-10 19:47:19 +02:00
Susant Sahani
328184d1fc
networkd: Geneve Allow TTL to be zero.
...
Also verify VNI is set
2019-05-10 22:45:26 +09:00
Susant Sahani
aac350192b
networkd: Geneve add support configure IP don't fragment
2019-05-10 22:45:26 +09:00
Yu Watanabe
5af7bc6f4c
Merge pull request #12480 from ssahani/proxy-arp
...
network: bridge add support to configure proxy ARP/WIFI
2019-05-10 15:30:41 +02:00
Susant Sahani
1189c00a3c
networkd: VXLAN add support to configure IP Don't fragment.
...
Allow users to set the IPv4 DF bit in outgoing packets, or to inherit its
value from the IPv4 inner header. If the encapsulated protocol is IPv6 and
DF is configured to be inherited, always set it.
2019-05-09 06:40:33 +02:00
Susant Sahani
1c8b0eccc7
networkd: Assign VXLAN destination port to when GPE is set
...
When VXLAN destination port is unset and GPE is set
then assign 4790 to destination port. Kernel does the same as
well as iproute.
IANA VXLAN-GPE port is 4790
2019-05-09 06:40:33 +02:00
Yu Watanabe
9aa5d8ba84
network: include glibc headers before including kernel headers
2019-05-09 03:21:31 +02:00
Susant Sahani
8c32c5884d
networkd: VXLAN use correct type for VNI
2019-05-08 06:52:54 +05:30
Susant Sahani
4cc0fd7531
networkd: VXLAN add support to configure Generic Protocol Extension
...
See https://tools.ietf.org/html/draft-ietf-nvo3-vxlan-gpe-07
2019-05-08 06:52:42 +05:30
Susant Sahani
76fbd4d73d
networkd: VXLan TTL must be <= 255
...
Ignore when TTL > 255
2019-05-07 20:34:45 +02:00
Susant Sahani
83cb24ac20
networkd: VXLan Make group and remote variable separate
...
VXLAN Document Group=
2019-05-07 20:34:27 +02:00
Susant Sahani
6f213e4a34
networkd: VXLAN rename Id to VNI
...
It makes more sense to call VXLAN ID as
1. the VXLAN Network Identifier (VNI) (or VXLAN Segment ID)
2. test-network: rename VXLAN Id to VNI
3. fuzzer: Add VXLAN VNI directive to fuzzer
2019-05-07 20:52:11 +05:30
Yu Watanabe
1c30b174ed
network: rename WireGuard.FwMark -> FirewallMark
...
For the consistency with FirewallMark= in [RoutingPolicyRule] section.
2019-05-04 17:20:23 +02:00
Ben Boeckel
5238e95759
codespell: fix spelling errors
2019-04-29 16:47:18 +02:00
Yu Watanabe
a62b7bb79e
network: fix ListenPort= in [WireGuard] section
...
This fixes a bug introduced by f1368a333e .
Fixes #12377 .
2019-04-25 02:43:03 +02:00
Lennart Poettering
929b02b5b8
Merge pull request #12301 from keszybz/silence-alignment-warning
...
Silence alignment warning
2019-04-15 11:21:15 +02:00
Zbigniew Jędrzejewski-Szmek
e61614099f
network: avoid warning about unaligned pointers
...
With gcc-9.0.1-0.10.fc30.x86_64:
../src/network/netdev/macsec.c: In function ‘config_parse_macsec_port’:
../src/network/netdev/macsec.c:584:24: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
584 | dest = &c->sci.port;
| ^~~~~~~~~~~~
../src/network/netdev/macsec.c:592:24: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
592 | dest = &b->sci.port;
| ^~~~~~~~~~~~
(The alignment was probably OK, but it's nicer to avoid the warning anyway.)
2019-04-13 11:55:04 +02:00
Yu Watanabe
3e8afae5b5
network: re-indent conf parser and wrap long lines in bond.c
2019-04-13 17:52:00 +09:00
Yu Watanabe
674c96fc44
network: use OrderedSet for bond ARP ip targets
2019-04-13 17:52:00 +09:00
Yu Watanabe
1e2a490e91
network: drop allocation for Bond::ad_actor_system
2019-04-13 17:51:59 +09:00
Yu Watanabe
f200093337
network: drop bond_mode_to_kernel() and bond_xmit_hash_policy_to_kernel()
2019-04-13 17:51:59 +09:00
Yu Watanabe
e57319dd54
network: re-indent gperf files
2019-04-12 10:12:42 +09:00
Yu Watanabe
70c5754761
network: warn when private key is stored in world readable files
2019-04-12 10:12:42 +09:00
Yu Watanabe
b0e13c3122
network: add MACsecTransmitAssociation.UseForEncoding= setting
2019-04-12 10:12:42 +09:00
Yu Watanabe
a7b9c52f1f
network: add MACsec*Association.Activate= setting
2019-04-12 10:12:42 +09:00
Yu Watanabe
eb4705fb36
network: add MACsec*Association.KeyFile= setting
2019-04-12 10:12:42 +09:00
Yu Watanabe
e482018672
network: explicitly clear security key for macsec
2019-04-12 10:12:42 +09:00
Yu Watanabe
e0fde24c97
network: support multiple security associations for macsec channels
2019-04-12 10:12:42 +09:00
Susant Sahani
81962db798
network: Introduce MACsec
...
Media Access Control Security (MACsec) is an 802.1AE IEEE
industry-standard security technology that provides secure
communication for all traffic on Ethernet links.
MACsec provides point-to-point security on Ethernet links between
directly connected nodes and is capable of identifying and preventing
most security threats, including denial of service, intrusion,
man-in-the-middle, masquerading, passive wiretapping, and playback attacks.
Closes #5754
2019-04-12 10:12:41 +09:00
Yu Watanabe
01234e1fe7
tree-wide: drop several missing_*.h and import relevant headers from kernel-5.0
2019-04-11 19:00:37 +02:00
Yu Watanabe
86a3d44de5
network: fix use-of-uninitialized-value or null dereference
...
This fixes a bug introduced by 6ef5c881dd .
Fixes oss-fuzz#14157 and oss-fuzz#14158.
2019-04-10 18:18:11 +09:00
Yu Watanabe
2b942a926c
network: make wireguard_decode_key_and_warn() take uint8_t buf[static WG_KEY_LEN]
2019-04-09 15:50:23 +09:00
Yu Watanabe
26f86d500e
network: warn when wireguard keys are stored in world readable files
2019-04-09 15:50:22 +09:00
Yu Watanabe
a3945c6361
network: add WireGuardPeer.PresharedKeyFile= setting
2019-04-09 15:50:22 +09:00
Yu Watanabe
6ef5c881dd
network: clear wireguard keys on failure or on exit
2019-04-09 15:50:22 +09:00
Yu Watanabe
cb31e7c861
network: make reading PrivateKeyFile= failure always fatal
...
This also refactor wireguard_read_key_file().
2019-04-09 15:50:22 +09:00
Yu Watanabe
03fec54396
network: re-indent conf parsers in wireguard.c
2019-04-08 00:52:34 +09:00
Yu Watanabe
7df5c6ba90
network: make FooOverUDP.Protocol= support name of ipproto
2019-04-02 03:29:41 +09:00
Yu Watanabe
881c74bd64
network: use asynchronous call for creating FOU tunnels
...
Otherwise, multiple FOU tunnels cannot be created correctly.
2019-04-02 03:08:49 +09:00
Yu Watanabe
3abf950fdb
network: do not ignore FooOverUDP.Encapsulation= setting
...
Previously the setting is ignored and always FOU_ENCAP_GUE is sent.
2019-04-02 03:07:42 +09:00