Skip to content

Conversation

scrye
Copy link
Contributor

@scrye scrye commented Nov 5, 2019

The addr.L4Info interface type was always used as a normal 2-byte port.
However, code needed to account for the possibility of other
implementations. By using uint16 directly the code gets much simpler.

Fixes #3296.


This change is Reviewable

@scrye scrye added the refactor Change that focuses around reducing tech debt label Nov 5, 2019
@scrye scrye self-assigned this Nov 5, 2019
Copy link
Collaborator

@lukedirtwalker lukedirtwalker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 53 of 58 files at r1.
Reviewable status: 53 of 58 files reviewed, 1 unresolved discussion (waiting on @lukedirtwalker, @scrye, and @sgmonroy)


go/lib/infra/messenger/addr.go, line 126 at r1 (raw file):

		// SVC addresses in the local AS get resolved via topology lookup
		if svc, ok := newAddr.Host.L3.(addr.HostSVC); ok && r.Router.LocalIA() == newAddr.IA {

why this extra line?

Copy link
Collaborator

@lukedirtwalker lukedirtwalker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 5 of 58 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @scrye and @sgmonroy)

Copy link
Contributor

@sgmonroy sgmonroy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 9 of 58 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @scrye)

scrye added 2 commits November 5, 2019 17:59
The addr.L4Info interface type was always used as a normal 2-byte port.
However, code needed to account for the possibility of other
implementations. By using uint16 directly the code gets much simpler.

Fixes #3296.
Copy link
Contributor Author

@scrye scrye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 49 of 58 files reviewed, 1 unresolved discussion (waiting on @lukedirtwalker and @sgmonroy)


go/lib/infra/messenger/addr.go, line 126 at r1 (raw file):

Previously, lukedirtwalker (Lukas Vogel) wrote…

why this extra line?

Done.

Copy link
Collaborator

@lukedirtwalker lukedirtwalker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 9 of 9 files at r2.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@scrye scrye merged commit eba7482 into scionproto:master Nov 6, 2019
@scrye scrye deleted the pubpr-fix-3296 branch November 6, 2019 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Change that focuses around reducing tech debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove addr.L4Info
3 participants