Class UpfGtpTunnelPeer

  • All Implemented Interfaces:
    UpfEntity

    @Beta
    public final class UpfGtpTunnelPeer
    extends Object
    implements UpfEntity
    A structure representing a UPF GTP tunnel peer. The GTP Tunnel Peer is used by UPF to identify a second end of a GTP tunnel. The source and destination tunnel IPv4 addresses, and source UDP port are set based on the information from this structure.
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • tunPeerId

        public byte tunPeerId()
        Get the ID of the UPF GTP tunnel peer.
        Returns:
        GTP tunnel peer ID
      • src

        public Ip4Address src()
        Get the source IP address of this unidirectional UPF GTP tunnel.
        Returns:
        tunnel source IP
      • dst

        public Ip4Address dst()
        Get the destination address of this unidirectional UPF GTP tunnel.
        Returns:
        tunnel destination IP
      • srcPort

        public short srcPort()
        Get the source L4 port of this unidirectional UPF GTP tunnel.
        Returns:
        tunnel source port
      • type

        public UpfEntityType type()
        Description copied from interface: UpfEntity
        Returns the type of this entity.
        Specified by:
        type in interface UpfEntity
        Returns:
        entity type