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

ADNP in PFDContents #107

Closed
john721 opened this issue Oct 18, 2022 · 2 comments
Closed

ADNP in PFDContents #107

john721 opened this issue Oct 18, 2022 · 2 comments

Comments

@john721
Copy link

john721 commented Oct 18, 2022

Hi,

In go-pfcp/ie/pfd-contents.go , the type of this field may need to be []byte.
AdditionalDomainNameAndProtocol []string

According to 29.244, Figure 8.2.39-4, this field is a compound field which contains length field. So, I think it should not be of type []string, but []byte instead?
image

@wmnsk
Copy link
Owner

wmnsk commented Oct 18, 2022

Seems so (and other fields should also be updated). I think we rather want to define a dedicated struct for them to be more kind, like;

type PFDContentsFields struct {
	// ...
	AdditionalDomainNameAndProtocol []*AdditionalDomainNameAndProtocol
}

type AdditionalDomainNameAndProtocol struct {
	Length     uint16
	DomainName string
	Protocol   string
}

I'll have a closer look another time, maybe next month.

@wmnsk
Copy link
Owner

wmnsk commented Jul 28, 2023

resolved in #106

@wmnsk wmnsk closed this as completed Jul 28, 2023
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

No branches or pull requests

2 participants