Skip to contentSkip to conversation

Adding notify-flags=skip_link_local causes errors in mptcp daemon

DISCUSSION Harshvardhan Jha 2 participants 6 messages Aug 28, 2025 – Sep 2, 2025 Networking MPTCP

lore
Share & tools
lore
#0 lore raw

Hi there,

I have been using mptcpd version 12 on my system and observed this issue:

systemd[1]: Started mptcp.service - Multipath TCP service. mptcpd[2996]: MPTCP address advertiser path manager initialized. mptcpd[2996]: MPTCP single-subflow-per-interface path manager initialized. mptcpd[2996]: add_addr: too many addresses or duplicate one: -16: Device or resource busy

After extensive debugging I found out that this was due to the custom flags I had added to my configuration:
addr-flags=subflow notify-flags=existing,skip_link_local,skip_loopback

Keeping the first flag as is doesn't change much and only the skip_link_local part of the second flag is what causes the issue mentioned above.
The version doesn't matter, I installed mptcpd built from source on the main branch and upon adding these flags to /usr/local/etc/mptcpd/mptcpd.conf this issue still appears.

I will remove this option for now but Fedora had added this way back in 2021 so I'm not sure whether removing this will cause any unwanted regressions or not.

Thanks & Regards,
Harshvardhan

maintainer
#1 lore raw

Hi Harshvardhan,

Quoted 7 lines · Harshvardhan Jha

I have been using mptcpd version 12 on my system and observed this issue:

systemd[1]: Started mptcp.service - Multipath TCP service. mptcpd[2996]: MPTCP address advertiser path manager initialized. mptcpd[2996]: MPTCP single-subflow-per-interface path manager initialized. mptcpd[2996]: add_addr: too many addresses or duplicate one: -16: Device or resource busy

Thank you for having reported this!

Quoted 8 lines

After extensive debugging I found out that this was due to the custom flags I had added to my configuration:
addr-flags=subflow notify-flags=existing,skip_link_local,skip_loopback

Keeping the first flag as is doesn't change much and only the skip_link_local part of the second flag is what causes the issue mentioned above.

Do you mean that with the following configuration ...

addr-flags=subflow
notify-flags=existing,skip_loopback

... you don't have this "too many addresses or duplicate one" error in mptcpd logs, which means it might be due to the "skip_link_local" flag?

The "too many addresses or duplicate one" error seems to suggest either:

- too many MPTCP endpoints have been added
- or some endpoints cannot be added because they are already there
- (or the help message is wrong)

... which is strange, because "skip_link_local" is supposed to insert fewer endpoints.

When looking at the kernel code (dev version), I think the "-16: Device or resource busy" is supposed to happen only if the userspace tries to add an MPTCP endpoint with a specific ID, and this ID has already been taken. Which makes me suspect the following: is it possible either NM

Quoted 1 line

=1.40 is being used, or mptcpd has been restarted after a crash, no?

By default, NetworkManager >=1.40 will add MPTCP endpoints, see this note:

https://www.mptcp.dev/pm.html#automatic-configuration

Are you using NM >= 1.40?

If no, what's your kernel version, and the output of 'ip addr show up', but also 'ip mptcp endpoint' before and after having started 'mptcpd'?

Quoted 7 lines

The version doesn't matter, I installed mptcpd built from source on the main branch and upon adding these flags to /usr/local/etc/mptcpd/mptcpd.conf this issue still appears.

I will remove this option for now but Fedora had added this way back in 2021 so I'm not sure whether removing this will cause any unwanted regressions or not.

I don't know if this note related to NM is well visible in the package description in Fedora and others. On Debian and related, there is this note:

Quoted 9 lines

By default, this daemon will load the 'addr_adv' plugin from the 'mptcpd-plugins' package, which will add MPTCP endpoints with the 'subflow' flag ("client" mode) for the default in-kernel path-manager. Note that this is something NetworkManager does by default. Having several daemons configuring the MPTCP endpoints at the same time should be avoided. This daemon is usually recommended when NetworkManager is not available, or when advanced per-connection path management is needed, using the userspace path-manager and a custom-made made plugin using the C API.

See: https://salsa.debian.org/debian/mptcpd/-/commit/66c1e8864a9

Do not hesitate to add a similar note in Fedora packages if it is missing, that should help people.

Cheers,
Matt

Signature · 1 line
Sponsored by the NGI0 Core fund.
#2 lore raw
Quoted 20 lines · Matthieu Baerts

Hi Harshvardhan,

Quoted 7 lines · Harshvardhan Jha

I have been using mptcpd version 12 on my system and observed this issue:

systemd[1]: Started mptcp.service - Multipath TCP service. mptcpd[2996]: MPTCP address advertiser path manager initialized. mptcpd[2996]: MPTCP single-subflow-per-interface path manager initialized. mptcpd[2996]: add_addr: too many addresses or duplicate one: -16: Device or resource busy

Thank you for having reported this!

Quoted 8 lines

After extensive debugging I found out that this was due to the custom flags I had added to my configuration:
addr-flags=subflow notify-flags=existing,skip_link_local,skip_loopback

Keeping the first flag as is doesn't change much and only the skip_link_local part of the second flag is what causes the issue mentioned above.

Quoted 7 lines

Do you mean that with the following configuration ...

addr-flags=subflow
notify-flags=existing,skip_loopback

... you don't have this "too many addresses or duplicate one" error in mptcpd logs, which means it might be due to the "skip_link_local" flag?

Yes, skip_link_local causes this error for me without it this disappears

Quoted 14 lines

The "too many addresses or duplicate one" error seems to suggest either:

- too many MPTCP endpoints have been added
- or some endpoints cannot be added because they are already there
- (or the help message is wrong)

... which is strange, because "skip_link_local" is supposed to insert fewer endpoints.

When looking at the kernel code (dev version), I think the "-16: Device or resource busy" is supposed to happen only if the userspace tries to add an MPTCP endpoint with a specific ID, and this ID has already been taken. Which makes me suspect the following: is it possible either NM

Quoted 6 lines
Quoted 1 line

=1.40 is being used, or mptcpd has been restarted after a crash, no?

By default, NetworkManager >=1.40 will add MPTCP endpoints, see this note:

https://urldefense.com/v3/__https://www.mptcp.dev/pm.html*automatic-configuration__;Iw!!ACWV5N9M2RV99hQ!M7wLbtcCWMUOxiZYPRZeuYxv3UR0LiDdFkqbSyB9H8eWUKvQthCSKvY4MAyYNCnD0gKQjDnQo57TEg8PB-5eIBpE$

Are you using NM >= 1.40?

Yes I am,
❯ rpm -q NetworkManager
NetworkManager-1.52.0-5.0.1.el10_0.x86_64

Quoted 9 lines

If no, what's your kernel version, and the output of 'ip addr show up', but also 'ip mptcp endpoint' before and after having started 'mptcpd'?

Quoted 4 lines

The version doesn't matter, I installed mptcpd built from source on the main branch and upon adding these flags to /usr/local/etc/mptcpd/mptcpd.conf this issue still appears.

Quoted 15 lines
Quoted 3 lines

I will remove this option for now but Fedora had added this way back in 2021 so I'm not sure whether removing this will cause any unwanted regressions or not.

I don't know if this note related to NM is well visible in the package description in Fedora and others. On Debian and related, there is this note:

Quoted 9 lines

By default, this daemon will load the 'addr_adv' plugin from the 'mptcpd-plugins' package, which will add MPTCP endpoints with the 'subflow' flag ("client" mode) for the default in-kernel path-manager. Note that this is something NetworkManager does by default. Having several daemons configuring the MPTCP endpoints at the same time should be avoided. This daemon is usually recommended when NetworkManager is not available, or when advanced per-connection path management is needed, using the userspace path-manager and a custom-made made plugin using the C API.

Is this for all config options in /usr/local/etc/mptcpd/mptcpd.conf?

This note only mentioned subflow so I felt it seems to be related to the addr-flags=subflow flag only. Please correct me if I'm wrong here.

Even removing the subflow flag flag and keeping:
notify-flags=existing,skip_link_local,skip_loopback,check_route Still causes the error.

Quoted 7 lines

See: https://urldefense.com/v3/__https://salsa.debian.org/debian/mptcpd/-/commit/66c1e8864a9__;!!ACWV5N9M2RV99hQ!M7wLbtcCWMUOxiZYPRZeuYxv3UR0LiDdFkqbSyB9H8eWUKvQthCSKvY4MAyYNCnD0gKQjDnQo57TEg8PB_IRLNLV$

Do not hesitate to add a similar note in Fedora packages if it is missing, that should help people.

Cheers,
Matt

Thanks & Regards,
Harshvardhan

maintainer
#3 lore raw
Quoted 45 lines · Harshvardhan Jha
Quoted 20 lines · Matthieu Baerts

Hi Harshvardhan,

Quoted 7 lines · Harshvardhan Jha

I have been using mptcpd version 12 on my system and observed this issue:

systemd[1]: Started mptcp.service - Multipath TCP service. mptcpd[2996]: MPTCP address advertiser path manager initialized. mptcpd[2996]: MPTCP single-subflow-per-interface path manager initialized. mptcpd[2996]: add_addr: too many addresses or duplicate one: -16: Device or resource busy

Thank you for having reported this!

Quoted 8 lines

After extensive debugging I found out that this was due to the custom flags I had added to my configuration:
addr-flags=subflow notify-flags=existing,skip_link_local,skip_loopback

Keeping the first flag as is doesn't change much and only the skip_link_local part of the second flag is what causes the issue mentioned above.

Quoted 7 lines

Do you mean that with the following configuration ...

addr-flags=subflow
notify-flags=existing,skip_loopback

... you don't have this "too many addresses or duplicate one" error in mptcpd logs, which means it might be due to the "skip_link_local" flag?

Yes, skip_link_local causes this error for me without it this disappears

Quoted 15 lines

The "too many addresses or duplicate one" error seems to suggest either:

- too many MPTCP endpoints have been added
- or some endpoints cannot be added because they are already there
- (or the help message is wrong)

... which is strange, because "skip_link_local" is supposed to insert fewer endpoints.

When looking at the kernel code (dev version), I think the "-16: Device or resource busy" is supposed to happen only if the userspace tries to add an MPTCP endpoint with a specific ID, and this ID has already been taken. Which makes me suspect the following: is it possible either NM

Quoted 1 line

=1.40 is being used, or mptcpd has been restarted after a crash, no?

Quoted 8 lines
Quoted 5 lines

By default, NetworkManager >=1.40 will add MPTCP endpoints, see this note:

https://www.mptcp.dev/pm.html

Are you using NM >= 1.40?

Yes I am,
❯ rpm -q NetworkManager
NetworkManager-1.52.0-5.0.1.el10_0.x86_64

OK, so I guess mptcpd is conflicting with NM, right?

Quoted 24 lines
Quoted 8 lines

If no, what's your kernel version, and the output of 'ip addr show up', but also 'ip mptcp endpoint' before and after having started 'mptcpd'?

Quoted 4 lines

The version doesn't matter, I installed mptcpd built from source on the main branch and upon adding these flags to /usr/local/etc/mptcpd/mptcpd.conf this issue still appears.

Quoted 15 lines
Quoted 3 lines

I will remove this option for now but Fedora had added this way back in 2021 so I'm not sure whether removing this will cause any unwanted regressions or not.

I don't know if this note related to NM is well visible in the package description in Fedora and others. On Debian and related, there is this note:

Quoted 9 lines

By default, this daemon will load the 'addr_adv' plugin from the 'mptcpd-plugins' package, which will add MPTCP endpoints with the 'subflow' flag ("client" mode) for the default in-kernel path-manager. Note that this is something NetworkManager does by default. Having several daemons configuring the MPTCP endpoints at the same time should be avoided. This daemon is usually recommended when NetworkManager is not available, or when advanced per-connection path management is needed, using the userspace path-manager and a custom-made made plugin using the C API.

Quoted 4 lines

Is this for all config options in /usr/local/etc/mptcpd/mptcpd.conf?

This note only mentioned subflow so I felt it seems to be related to the addr-flags=subflow flag only. Please correct me if I'm wrong here.

This note is explaining the default behaviour: in short, the same as what NM >= 1.40 will do. As mentioned, mptcpd should then be used when NM is not, or for its main purpose: when the userspace path-manager is used on the kernel side. That's not the default behaviour, and it is for advanced usages: when a use-case is not covered by the in-kernel PM.

https://docs.kernel.org/next/networking/mptcp.html#path-manager

Quoted 3 lines

Even removing the subflow flag flag and keeping:
notify-flags=existing,skip_link_local,skip_loopback,check_route Still causes the error.

mptcpd's 'addr_adv' plugin will still continue to add endpoints, but without the "subflow" flag. Other plugins like sspi or custom ones will not cause these errors, because they will not add MPTCP endpoints. These endpoints are only used by the in-kernel PM (the default one).

Cheers,
Matt

Signature · 1 line
Sponsored by the NGI0 Core fund.
#4 lore raw

Hi Matthieu,

Quoted 81 lines · Matthieu Baerts
Quoted 43 lines · Harshvardhan Jha
Quoted 20 lines · Matthieu Baerts

Hi Harshvardhan,

Quoted 7 lines · Harshvardhan Jha

I have been using mptcpd version 12 on my system and observed this issue:

systemd[1]: Started mptcp.service - Multipath TCP service. mptcpd[2996]: MPTCP address advertiser path manager initialized. mptcpd[2996]: MPTCP single-subflow-per-interface path manager initialized. mptcpd[2996]: add_addr: too many addresses or duplicate one: -16: Device or resource busy

Thank you for having reported this!

Quoted 8 lines

After extensive debugging I found out that this was due to the custom flags I had added to my configuration:
addr-flags=subflow notify-flags=existing,skip_link_local,skip_loopback

Keeping the first flag as is doesn't change much and only the skip_link_local part of the second flag is what causes the issue mentioned above.

Quoted 7 lines

Do you mean that with the following configuration ...

addr-flags=subflow
notify-flags=existing,skip_loopback

... you don't have this "too many addresses or duplicate one" error in mptcpd logs, which means it might be due to the "skip_link_local" flag?

Yes, skip_link_local causes this error for me without it this disappears

Quoted 14 lines

The "too many addresses or duplicate one" error seems to suggest either:

- too many MPTCP endpoints have been added
- or some endpoints cannot be added because they are already there
- (or the help message is wrong)

... which is strange, because "skip_link_local" is supposed to insert fewer endpoints.

When looking at the kernel code (dev version), I think the "-16: Device or resource busy" is supposed to happen only if the userspace tries to add an MPTCP endpoint with a specific ID, and this ID has already been taken. Which makes me suspect the following: is it possible either NM

Quoted 1 line

=1.40 is being used, or mptcpd has been restarted after a crash, no?

Quoted 8 lines
Quoted 5 lines

By default, NetworkManager >=1.40 will add MPTCP endpoints, see this note:

https://urldefense.com/v3/__https://www.mptcp.dev/pm.html__;!!ACWV5N9M2RV99hQ!IpYyHXknDf7OI13aAkdo-amupYoR7R-gsFQtsQwMZh29C_9taCiFSCK5C-JcJZ8-C4bv53kqSPUSzjpemAmXgIxR$

Are you using NM >= 1.40?

Yes I am,
❯ rpm -q NetworkManager
NetworkManager-1.52.0-5.0.1.el10_0.x86_64

OK, so I guess mptcpd is conflicting with NM, right?

Quoted 23 lines
Quoted 8 lines

If no, what's your kernel version, and the output of 'ip addr show up', but also 'ip mptcp endpoint' before and after having started 'mptcpd'?

Quoted 4 lines

The version doesn't matter, I installed mptcpd built from source on the main branch and upon adding these flags to /usr/local/etc/mptcpd/mptcpd.conf this issue still appears.

Quoted 15 lines
Quoted 3 lines

I will remove this option for now but Fedora had added this way back in 2021 so I'm not sure whether removing this will cause any unwanted regressions or not.

I don't know if this note related to NM is well visible in the package description in Fedora and others. On Debian and related, there is this note:

Quoted 9 lines

By default, this daemon will load the 'addr_adv' plugin from the 'mptcpd-plugins' package, which will add MPTCP endpoints with the 'subflow' flag ("client" mode) for the default in-kernel path-manager. Note that this is something NetworkManager does by default. Having several daemons configuring the MPTCP endpoints at the same time should be avoided. This daemon is usually recommended when NetworkManager is not available, or when advanced per-connection path management is needed, using the userspace path-manager and a custom-made made plugin using the C API.

Quoted 4 lines

Is this for all config options in /usr/local/etc/mptcpd/mptcpd.conf?

This note only mentioned subflow so I felt it seems to be related to the addr-flags=subflow flag only. Please correct me if I'm wrong here.

Quoted 7 lines

This note is explaining the default behaviour: in short, the same as what NM >= 1.40 will do. As mentioned, mptcpd should then be used when NM is not, or for its main purpose: when the userspace path-manager is used on the kernel side. That's not the default behaviour, and it is for advanced usages: when a use-case is not covered by the in-kernel PM.

https://urldefense.com/v3/__https://docs.kernel.org/next/networking/mptcp.html*path-manager__;Iw!!ACWV5N9M2RV99hQ!IpYyHXknDf7OI13aAkdo-amupYoR7R-gsFQtsQwMZh29C_9taCiFSCK5C-JcJZ8-C4bv53kqSPUSzjpemFSPvx02$

I went through this and set net.mptcp.pm_type = 0 however I'm still getting the error when I start the daemon and use the same options in the mpcpd.conf file.

Shouldn't net.mptcp.pm_type sysctl flag prevent this from happening?

Quoted 11 lines
Quoted 4 lines

Even removing the subflow flag flag and keeping:
notify-flags=existing,skip_link_local,skip_loopback,check_route Still causes the error.

mptcpd's 'addr_adv' plugin will still continue to add endpoints, but without the "subflow" flag. Other plugins like sspi or custom ones will not cause these errors, because they will not add MPTCP endpoints. These endpoints are only used by the in-kernel PM (the default one).

Cheers,
Matt

Thanks & Regards,
Harshvardhan

maintainer
#5 lore raw

Hi Harshvardhan,

Quoted 4 lines · Harshvardhan Jha
Quoted 3 lines · Matthieu Baerts
Quoted 2 lines · Harshvardhan Jha
Quoted 1 line · Matthieu Baerts

On 28/08/2025 16:28, Harshvardhan Jha wrote:

(...)

Quoted 25 lines
Quoted 25 lines
Quoted 15 lines
Quoted 15 lines
Quoted 3 lines

I will remove this option for now but Fedora had added this way back in 2021 so I'm not sure whether removing this will cause any unwanted regressions or not.

I don't know if this note related to NM is well visible in the package description in Fedora and others. On Debian and related, there is this note:

Quoted 9 lines

By default, this daemon will load the 'addr_adv' plugin from the 'mptcpd-plugins' package, which will add MPTCP endpoints with the 'subflow' flag ("client" mode) for the default in-kernel path-manager. Note that this is something NetworkManager does by default. Having several daemons configuring the MPTCP endpoints at the same time should be avoided. This daemon is usually recommended when NetworkManager is not available, or when advanced per-connection path management is needed, using the userspace path-manager and a custom-made made plugin using the C API.

Quoted 4 lines

Is this for all config options in /usr/local/etc/mptcpd/mptcpd.conf?

This note only mentioned subflow so I felt it seems to be related to the addr-flags=subflow flag only. Please correct me if I'm wrong here.

This note is explaining the default behaviour: in short, the same as what NM >= 1.40 will do. As mentioned, mptcpd should then be used when NM is not, or for its main purpose: when the userspace path-manager is used on the kernel side. That's not the default behaviour, and it is for advanced usages: when a use-case is not covered by the in-kernel PM.

Quoted 7 lines
Quoted 1 line

https://urldefense.com/v3/__https://docs.kernel.org/next/networking/mptcp.html*path-manager__;Iw!!ACWV5N9M2RV99hQ!IpYyHXknDf7OI13aAkdo-amupYoR7R-gsFQtsQwMZh29C_9taCiFSCK5C-JcJZ8-C4bv53kqSPUSzjpemFSPvx02$

I went through this and set net.mptcp.pm_type = 0 however I'm still getting the error when I start the daemon and use the same options in the mpcpd.conf file.

Shouldn't net.mptcp.pm_type sysctl flag prevent this from happening?

Sorry, I'm a bit lost:

- net.mptcp.pm_type is set to 0 (in-kernel PM) by default

- mptcpd can handle both the in-kernel PM, and the userspace one

- mptcpd's initial goal was to handle the userspace PM (pm_type=1), but:

- the in-kernel PM has been upstreamed in the Linux kernel first, and the mptcpd's 'addr_adv' plugin got added to "simply" add available IP addresses as MPTCP endpoints (in short, the same as executing:
'ip mptcp endpoint add <IP> dev <IFACE> <FLAG>' for each IP address)

- for the userspace PM, the idea is that people can create new plugins to cover their own particular use-case. So no good default plugin using the 'userspace' interfaces, only examples that can be adapted.

- so to be useful for more users, mptcpd loads 'addr_adv' by default

- NM is now doing the same as this 'addr_adv' plugin, so conflicting

Today, mptcpd is then useful when NM is not used, or when someone want to use a custom PM with the 'userspace PM'. Before that, it is then required to build such custom PM, and set net.mptcp.pm_type=1.

It also means that 'mptcpd' is now mostly useful for advanced MPTCP users.

Note that the 'mptcpd' project also includes 'mptcpize' which is not reserved for advanced users (more the opposite). So some people might install the 'mptcpd' service but not requiring it.

Cheers,
Matt

Signature · 1 line
Sponsored by the NGI0 Core fund.