Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove snet.Addr #3644

Merged
merged 2 commits into from
Jan 30, 2020
Merged

Conversation

lukedirtwalker
Copy link
Collaborator

@lukedirtwalker lukedirtwalker commented Jan 29, 2020

Remove snet.Addr, and constructors for snet.SVCAddr and snet.UDPAddr, instead use the struct directly.

Contributes #3136


This change is Reviewable

Copy link
Contributor

@matzf matzf left a comment

Choose a reason for hiding this comment

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

Reviewed 18 of 47 files at r1.
Reviewable status: 18 of 47 files reviewed, 1 unresolved discussion (waiting on @karampok and @lukedirtwalker)


go/lib/snet/snet.go, line 116 at r1 (raw file):

	}
	snetConn := conn.(*SCIONConn)
	snetConn.remote = &UDPAddr{

It would be nice to add an actual Copy function to *UDPAddr and *SVCAddr and use it here.

Copy link
Contributor

@karampok karampok left a comment

Choose a reason for hiding this comment

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

Reviewed 29 of 47 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @lukedirtwalker)

Remove snet.Addr, and constructors for snet.SVCAddr and snet.UDPAddr, instead use the struct directly.
Copy link
Collaborator Author

@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.

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @matzf)


go/lib/snet/snet.go, line 116 at r1 (raw file):

Previously, matzf (Matthias Frei) wrote…

It would be nice to add an actual Copy function to *UDPAddr and *SVCAddr and use it here.

Done.

Copy link
Contributor

@matzf matzf left a comment

Choose a reason for hiding this comment

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

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

Copy link
Contributor

@karampok karampok 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: :shipit: complete! all files reviewed, all discussions resolved

@lukedirtwalker lukedirtwalker merged commit 721463c into scionproto:master Jan 30, 2020
@lukedirtwalker lukedirtwalker deleted the pubSnetKill branch January 30, 2020 06:57
matzf added a commit to netsec-ethz/scion-apps that referenced this pull request Jan 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants