summaryrefslogtreecommitdiff
path: root/src/network/networkd-address-generation.c
Commit message (Collapse)AuthorAgeFilesLines
* tree-wide: use ASSERT_PTR moreDavid Tardon2022-09-131-2/+1
|
* network: dhcp-pd: fix prefix length of address assigned to upstream interfaceYu Watanabe2022-02-221-2/+2
| | | | | | | | This effectively revert ab0c82d9f749cc397a6b7e0327ddb2c08cd7d7e0. I have no idea why I did that... Fixes #22559.
* network: a couple of tweaks suggested by CoccinelleFrantisek Sumsal2021-12-181-4/+3
|
* network: dhcp-pd: rename [DHCPv6PrefixDelegation] -> [DHCPPrefixDelegation]Yu Watanabe2021-12-071-3/+3
| | | | | | | This just changes the names of settings, variables, functions, files, and so on. No functionality is changed. Preparation for supporting 6rd.
* network: dhcp6pd: assign addresses in the delegated prefix instead of a ↵Yu Watanabe2021-12-071-2/+2
| | | | subnet prefix /64 on upstream interface
* network: fix memleakYu Watanabe2021-12-071-2/+2
| | | | | | Follow-up for ab106a609bc253c0dc49667e981108110b3a87a5. Fixes CID#1467055.
* network: eui64 address is supported only ethernet or infinibandYu Watanabe2021-12-061-5/+20
| | | | So, this makes prefixstable mode will be used for other interface types.
* network: make Token=prefixstable optionally take secret keyYu Watanabe2021-11-141-22/+70
| | | | Closes #21345.
* network: make generate_eui64_address() staticYu Watanabe2021-10-071-1/+1
|
* network: introduce Token= setting in [IPv6Prefix]Yu Watanabe2021-10-071-0/+5
| | | | Closes #20149.
* network: extend Token= setting in [DHCPv6PrefixDelegation]Yu Watanabe2021-10-071-0/+5
| | | | | Now the setting supports the same syntax as the one in the [IPv6AcceptRA] section.
* network: introduce Token=eui64Yu Watanabe2021-10-071-0/+12
| | | | So, now user can explicitly request EUI-64 algorithm to generate addresses.
* network: address-genereation: introduce generate_addresses()Yu Watanabe2021-10-071-3/+15
| | | | Preparation for later commits. This does not change functionality.
* network: address-generation: use in6_addr_hash_ops_freeYu Watanabe2021-10-071-33/+25
| | | | Also, downgrade error level, and caller logs the error.
* network: address-generation: modernize config_parse_address_generation_type()Yu Watanabe2021-10-071-57/+64
| | | | | | | - drop unused _NONE type, - rename IPv6Token::prefix -> IPv6Token::address, - clear unused part of IPv6Token::address, - use Set, instead of OrderedSet.
* network: address-generation: mask prefix with prefixlen for safetyYu Watanabe2021-10-071-6/+11
|
* network: address-generation: always start DAD counter from zeroYu Watanabe2021-10-071-35/+62
| | | | | The token is stored in Network, and the .network file may be applied to multiple links.
* network: address-generation: always use the first 64 bits of the prefixYu Watanabe2021-10-071-7/+5
| | | | | | | Hopefully, the prefix length is usually 64. Previously, if the prefix length is smaller than 64, the result address was undefined.
* network: make generate_ipv6_eui_64_address() take prefixYu Watanabe2021-10-071-26/+21
| | | | Also, rename the function.
* network: fix prefixlen for reserved subnet anycast addressYu Watanabe2021-10-071-11/+9
| | | | | | | Then, the prefixlen is not a multiplier of 8, we need to use in6_addr_prefix_covers(). This also constify the reserved addresses, and rename macros.
* network: move address generation methods to network-address-generation.[ch]Yu Watanabe2021-10-071-0/+323