go-pfcp icon indicating copy to clipboard operation
go-pfcp copied to clipboard

ADNP in PFDContents

Open john721 opened this issue 2 years ago • 1 comments

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

john721 avatar Oct 18 '22 07:10 john721

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 avatar Oct 18 '22 10:10 wmnsk

resolved in https://github.com/wmnsk/go-pfcp/pull/106

wmnsk avatar Jul 28 '23 14:07 wmnsk