summaryrefslogtreecommitdiff
path: root/src/network/networkd-address.h
Commit message (Collapse)AuthorAgeFilesLines
...
* Add SPDX license identifiers to source files under the LGPLZbigniew Jędrzejewski-Szmek2017-11-191-0/+1
| | | | | This follows what the kernel is doing, c.f. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5fd54ace4721fc5ce2bb5aef6318fcf17f421460.
* networkd: add scope to address section (#6449)Susant Sahani2017-08-011-0/+1
| | | | | | | This work allows to configure address Scope to host | link | global or a number. Closes #6446
* networkd: Add Router Advertisement variablesPatrik Flykt2017-05-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Add variables for enabling Router Advertisements, router lifetime as well as managed and other information flags indicating use of DHCPv6. Add configuration of default router preferences as defined in RFC 4191. IPv6PrefixDelegation in the [Network] section has to be set in order to enable prefix delegation. The rest of the prefix delegation values are stored in the [IPv6PrefixDelegation] section. The host will act as a default router if it is given a non-zero lifetime with RouterLifetimeSec. Managed and OtherInformation booleans set the level of DHCPv6 support, and the RouterPreference configures the router's preference between low, medium and high. Words 'normal' and 'default' are added as synonyms for 'medium' just to make configuration simpler. This adds a section like the following to .network configuration files: [Network] IPv6PrefixDelegation=true [IPv6PrefixDelegation] RouterLifetimeSec=2000 Managed=false OtherInformation=true RouterPreference=medium
* networkd: Add IPv6Prefix sections to the network configuration filesPatrik Flykt2017-05-151-0/+5
| | | | | | | | | | | | | | | | | Support zero or more [IPv6Prefix] sections in the network configuration files. Each section can have one Prefix=<subnet>[/<prefixlength>] option, with the preferred and valid lifetimes specified by ValidLifetimeSec and PreferredLifetimeSec measured in seconds, and with onlink and address autoconfiguration booleans specified by OnLink and AddressAutoconfiguration variables. This adds a section like the following to .network configuration files: [IPv6Prefix] Prefix=2001:db8:dead:beef::/64 OnLink=true AddressAutoconfiguration=true ValidLifetimeSec=1500 PreferredLifetimeSec=1000
* networkd: Add initial prefix handling for network configurationPatrik Flykt2017-05-151-0/+16
| | | | | Add initial code for handling prefixes in network configuration files. Add hash map and list storing the information in systemd-networkd.
* networkd: fix drop-in conf directory configs overwriting each otherSusant Sahani2017-02-161-2/+3
| | | | | | | | | | | | Now we track the sections for example [Address] via line number. Which was fine till we din't had dropins dir. If we have multiple sections which have the ideantical line number in diffrent files we are overwriting these since line number is the key. This patch fixes this by taking filename and line number as key. This fixes [Address] and [Route] section overwriting. fixes: #5141
* networkd: address add support to configure flags (#4201)Susant Sahani2016-10-081-0/+6
| | | | | | | | | This patch enables to configure IFA_F_HOMEADDRESS IFA_F_NODAD IFA_F_MANAGETEMPADDR IFA_F_NOPREFIXROUTE IFA_F_MCAUTOJOIN
* networkd: constify more thingsLennart Poettering2016-06-031-1/+1
|
* Merge pull request #3156 from keszybz/duid-settingsLennart Poettering2016-05-041-1/+3
|\ | | | | Rework DUID setting
| * networkd: rework headers to avoid circular includesZbigniew Jędrzejewski-Szmek2016-04-291-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Header files were organized in a way where the includer would add various typedefs used by the includee before including it, resulting in a tangled web of dependencies between files. Replace this with the following logic: networkd.h / \ networkd-link.h \ networkd-ipv4ll.h--\__\ networkd-fdb.h \ networkd-network.h netword-netdev-*.h networkd-route.h \ networkd-netdev.h If a pointer to a structure defined in a different header file is needed, use a typedef line instead of including the whole header.
* | networkd: Add support to configure IPv6 preferred lifetime (#3102)Susant Sahani2016-05-031-0/+1
|/ | | | | | Closes #2166. We only allow 0, infinity and forever. infinity and forever is same.
* tree-wide: remove Emacs lines from all filesDaniel Mack2016-02-101-2/+0
| | | | | This should be handled fine now by .dir-locals.el, so need to carry that stuff in every file.
* tree-wide: sort includes in *.hThomas Hindoe Paaboel Andersen2015-11-181-2/+2
| | | | | This is a continuation of the previous include sort patch, which only sorted for .c files.
* networkd: address - drop the 'added' flagTom Gundersen2015-11-111-1/+0
| | | | | Instead instantiate the kernel flags to TENTATIVE until the kernel updates us with the real value.
* networkd: link - deserializeTom Gundersen2015-10-301-0/+1
| | | | | | | For now only deserialize some basic state and the applied addresses. When a link is added, try to deserialize it's state from /run. This is relevant only when networkd is restarted at runtime.
* networkd: address - distinguish between addresses added by us and by othersTom Gundersen2015-10-211-2/+3
| | | | | | | | | We only keep the addresses that we added ourselves in link->addresses, and introduce a new set link->addresses_foreign to keep addresses of unknown origin. Only functional change is that "foreign" addresses no longer prevent a link from entering "configured" state.
* networkd: address - merge _change() into _configure()Tom Gundersen2015-10-211-2/+1
| | | | These functions are almost entirely the same, so avoid duplication.
* networkd: address - factor out address_update()Tom Gundersen2015-10-211-1/+2
| | | | | Call back into link_check_ready() whenever an address state change may have made a link ready.
* networkd: address - introduce address_is_ready()Tom Gundersen2015-10-111-0/+1
| | | | Checks that a given address is not tentative nor deprecated.
* networkd: make address_{establish,release}() staticTom Gundersen2015-10-111-3/+2
| | | | No need to expose these functions, but rather call them from address_{add,drop}.
* networkd: manager - avoid unnecessary memory allocationTom Gundersen2015-10-111-1/+1
| | | | | Don't allocate Address objects only to free them again when processing rtnl events.
* networkd: address - store active addresses in a Set rather than a ListTom Gundersen2015-10-111-0/+4
| | | | | We need to be able to look these things up quickly as we will be updating them continuously and there can in principle be many of them.
* networkd: route/address - simplify and unify creatorsTom Gundersen2015-10-111-1/+1
| | | | Rename new_dynamic() to simply _new() and reuse that from new_static().
* networkd: split up networkd.h into per-object header filesLennart Poettering2015-08-271-0/+73
No functional changes, just moving definitions into separate header files.