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

HP: Add HP messages to the messenger #2914

Merged
merged 2 commits into from
Jul 26, 2019

Conversation

chaehni
Copy link

@chaehni chaehni commented Jul 26, 2019

Fixes #2896


This change is Reviewable

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 8 of 8 files at r1.
Reviewable status: all files reviewed, 6 unresolved discussions (waiting on @chaehni)


go/lib/infra/common.go, line 204 at r1 (raw file):

	case HPSegReply:
		return "HPSegReply"
	case HPSegReg:

Those should have the same order as the definitions. So move HpSegReg up to just after Ack


go/lib/infra/common.go, line 265 at r1 (raw file):

	case HPSegReply:
		return "hp_seg_push"
	case HPSegReg:

ditto move up.


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

	}
	logger := log.FromCtx(ctx)
	logger.Trace("[Messenger] Sending Notify", "type", infra.SegReply, "to", a, "id", id)

HPSegReply


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

	logger := log.FromCtx(ctx)
	logger.Trace("[Messenger] Sending Notify", "type", infra.SegReply, "to", a, "id", id)
	return m.getFallbackRequester(infra.SegReply).Notify(ctx, pld, a)

HPSegReply


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

HPSegReply)

HPCfgReply


go/lib/sciond/sciond.go, line 186 at r1 (raw file):

				// TODO(chaehni): set HPCfgs to nil until it is clear what the client
				// API looks like to properly set this
				HPCfgs: nil,

That is not really needed it is by default nil. If you want to keep the comment I would add it to the interface. (something like: TODO(chaehni): Add way to specify HPCfgs Ids)

Copy link
Author

@chaehni chaehni 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, 6 unresolved discussions (waiting on @lukedirtwalker)


go/lib/infra/common.go, line 204 at r1 (raw file):

Previously, lukedirtwalker (Lukas Vogel) wrote…

Those should have the same order as the definitions. So move HpSegReg up to just after Ack

Done.


go/lib/infra/common.go, line 265 at r1 (raw file):

Previously, lukedirtwalker (Lukas Vogel) wrote…

ditto move up.

Done.


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

Previously, lukedirtwalker (Lukas Vogel) wrote…

HPSegReply

Done.


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

Previously, lukedirtwalker (Lukas Vogel) wrote…

HPSegReply

Done.


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

Previously, lukedirtwalker (Lukas Vogel) wrote…
HPSegReply)

HPCfgReply

Done.


go/lib/sciond/sciond.go, line 186 at r1 (raw file):

Previously, lukedirtwalker (Lukas Vogel) wrote…

That is not really needed it is by default nil. If you want to keep the comment I would add it to the interface. (something like: TODO(chaehni): Add way to specify HPCfgs Ids)

You're right. I added it to make it explicit but I guess this is not something we can forget.
Removed the comment.

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 3 of 3 files at r2.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@lukedirtwalker lukedirtwalker added the c/hidden paths Hidden paths service label Jul 26, 2019
@lukedirtwalker lukedirtwalker merged commit 4bbbc68 into scionproto:master Jul 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/hidden paths Hidden paths service
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HP: Add HP messages to the messenger
2 participants