Opened 7 years ago

Last modified 4 months ago

#6647 enhancement new

Accept embedded scope ids on IPv6 addresses when calling listenUDP

Reported by: habnabit Owned by: mhoeft
Priority: normal Milestone:
Component: core Keywords: ipv6
Cc: Branch:
Author:

Description

As a followup to #5086, Twisted should provide support for listening on an IPv6 address including a scope id. This allows listening on a link-local address for a particular interface.

Once this is resolved, Twisted servers should be able to bind UDP ports to IPv6 addresses such as fe80::1%lo0, as well as send datagrams to such IPv6 addresses. Where the platform requires the scope id, IReactorUDP.listenUDP and IUDPTransport.write will require the scope id as well.

Change History (4)

comment:1 Changed 6 years ago by habnabit

(In [40881]) Merge ipv6-listenUDP-5086-2: Accept IPv6 address literals in IReactorUDP.listenUDP

Authors: marto1_, habnabit, satis Reviewers: exarkun, rwall Fixes: #5086 Refs: #6646, #6647, #6826, #6828

IReactorUDP.listenUDP, IUDPTransport.write and IUDPTransport.connect now accept IPv6 address literals.

comment:2 Changed 5 months ago by mhoeft

Keywords: rewiev added

I prepared a PR with changes allowing a DatagramProtocol instance to bind to a socket with IPv6 link-local address only. PR link: https://github.com/twisted/twisted/pull/1215

Last edited 5 months ago by mhoeft (previous) (diff)

comment:3 Changed 5 months ago by mhoeft

Keywords: review added; rewiev removed

comment:4 Changed 4 months ago by Glyph

Keywords: review removed
Owner: set to mhoeft

Review is over on Github.

Note: See TracTickets for help on using tickets.