Skip to content

Commit

Permalink
Merge pull request #18 from nextmn/source_iface
Browse files Browse the repository at this point in the history
Add PDR methods
  • Loading branch information
louisroyer authored Jun 4, 2024
2 parents 1897250 + 82b25fe commit d27d73d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pfcp/pdr.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,18 @@ func (pdr *PDR) OuterHeaderRemoval() *ie.IE {
return pdr.outerHeaderRemoval
}

func (pdr *PDR) SourceInterface() (uint8, error) {
return pdr.pdi.SourceInterface()
}

func (pdr *PDR) FTEID() (*ie.FTEIDFields, error) {
return pdr.pdi.FTEID()
}

func (pdr *PDR) UEIPAddress() (*ie.UEIPAddressFields, error) {
return pdr.pdi.UEIPAddress()
}

func (pdr *PDR) NewCreatePDR() *ie.IE {
ies := make([]*ie.IE, 0)
ies = append(ies, pdr.id)
Expand Down

0 comments on commit d27d73d

Please sign in to comment.