hlr

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2020 License: BSD-3-Clause Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthInfoReq_ResyncInfo_Len_name = map[int32]string{
	0:  "ZERO_LEN",
	16: "RAND_LEN",
}
View Source
var AuthInfoReq_ResyncInfo_Len_value = map[string]int32{
	"ZERO_LEN": 0,
	"RAND_LEN": 16,
	"AUTH_LEN": 16,
}
View Source
var ErrorCode_name = map[int32]string{
	0: "SUCCESS",
	1: "UNABLE_TO_DELIVER",
	2: "AUTHENTICATION_REJECTED",
	3: "AUTHENTICATION_DATA_UNAVAILABLE",
	4: "UNKNOWN_SUBSCRIBER",
	5: "NO_PATH_TO_HLR",
	6: "NO_HLR_IN_ACTIVE_STATE",
	7: "NO_RESP_FROM_PEER",
}
View Source
var ErrorCode_value = map[string]int32{
	"SUCCESS":                         0,
	"UNABLE_TO_DELIVER":               1,
	"AUTHENTICATION_REJECTED":         2,
	"AUTHENTICATION_DATA_UNAVAILABLE": 3,
	"UNKNOWN_SUBSCRIBER":              4,
	"NO_PATH_TO_HLR":                  5,
	"NO_HLR_IN_ACTIVE_STATE":          6,
	"NO_RESP_FROM_PEER":               7,
}

Functions

func RegisterHlrProxyServer

func RegisterHlrProxyServer(s *grpc.Server, srv HlrProxyServer)

Types

type AuthInfoAns

type AuthInfoAns struct {
	// EPC error code on failure
	ErrorCode ErrorCode `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3,enum=magma.feg.hlr.ErrorCode" json:"error_code,omitempty"`
	// Authentication vectors matching the requested number
	UmtsVectors          []*AuthInfoAns_UMTSVector `protobuf:"bytes,2,rep,name=umts_vectors,json=umtsVectors,proto3" json:"umts_vectors,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

Authentication Information Answer (MAP 29.002 Section 8.5.2)

func (*AuthInfoAns) Descriptor

func (*AuthInfoAns) Descriptor() ([]byte, []int)

func (*AuthInfoAns) GetErrorCode

func (m *AuthInfoAns) GetErrorCode() ErrorCode

func (*AuthInfoAns) GetUmtsVectors

func (m *AuthInfoAns) GetUmtsVectors() []*AuthInfoAns_UMTSVector

func (*AuthInfoAns) ProtoMessage

func (*AuthInfoAns) ProtoMessage()

func (*AuthInfoAns) Reset

func (m *AuthInfoAns) Reset()

func (*AuthInfoAns) String

func (m *AuthInfoAns) String() string

func (*AuthInfoAns) XXX_DiscardUnknown

func (m *AuthInfoAns) XXX_DiscardUnknown()

func (*AuthInfoAns) XXX_Marshal

func (m *AuthInfoAns) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthInfoAns) XXX_Merge

func (m *AuthInfoAns) XXX_Merge(src proto.Message)

func (*AuthInfoAns) XXX_Size

func (m *AuthInfoAns) XXX_Size() int

func (*AuthInfoAns) XXX_Unmarshal

func (m *AuthInfoAns) XXX_Unmarshal(b []byte) error

type AuthInfoAns_UMTSVector

type AuthInfoAns_UMTSVector struct {
	Rand                 []byte   `protobuf:"bytes,1,opt,name=rand,proto3" json:"rand,omitempty"`
	Xres                 []byte   `protobuf:"bytes,2,opt,name=xres,proto3" json:"xres,omitempty"`
	Ck                   []byte   `protobuf:"bytes,3,opt,name=ck,proto3" json:"ck,omitempty"`
	Ik                   []byte   `protobuf:"bytes,4,opt,name=ik,proto3" json:"ik,omitempty"`
	Autn                 []byte   `protobuf:"bytes,5,opt,name=autn,proto3" json:"autn,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

For details about fields read 3GPP 33.401

func (*AuthInfoAns_UMTSVector) Descriptor

func (*AuthInfoAns_UMTSVector) Descriptor() ([]byte, []int)

func (*AuthInfoAns_UMTSVector) GetAutn

func (m *AuthInfoAns_UMTSVector) GetAutn() []byte

func (*AuthInfoAns_UMTSVector) GetCk

func (m *AuthInfoAns_UMTSVector) GetCk() []byte

func (*AuthInfoAns_UMTSVector) GetIk

func (m *AuthInfoAns_UMTSVector) GetIk() []byte

func (*AuthInfoAns_UMTSVector) GetRand

func (m *AuthInfoAns_UMTSVector) GetRand() []byte

func (*AuthInfoAns_UMTSVector) GetXres

func (m *AuthInfoAns_UMTSVector) GetXres() []byte

func (*AuthInfoAns_UMTSVector) ProtoMessage

func (*AuthInfoAns_UMTSVector) ProtoMessage()

func (*AuthInfoAns_UMTSVector) Reset

func (m *AuthInfoAns_UMTSVector) Reset()

func (*AuthInfoAns_UMTSVector) String

func (m *AuthInfoAns_UMTSVector) String() string

func (*AuthInfoAns_UMTSVector) XXX_DiscardUnknown

func (m *AuthInfoAns_UMTSVector) XXX_DiscardUnknown()

func (*AuthInfoAns_UMTSVector) XXX_Marshal

func (m *AuthInfoAns_UMTSVector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthInfoAns_UMTSVector) XXX_Merge

func (m *AuthInfoAns_UMTSVector) XXX_Merge(src proto.Message)

func (*AuthInfoAns_UMTSVector) XXX_Size

func (m *AuthInfoAns_UMTSVector) XXX_Size() int

func (*AuthInfoAns_UMTSVector) XXX_Unmarshal

func (m *AuthInfoAns_UMTSVector) XXX_Unmarshal(b []byte) error

type AuthInfoReq

type AuthInfoReq struct {
	// Subscriber identifier
	UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	// Number of umts vectors to request in response
	NumRequestedUmtsVectors uint32 `` /* 135-byte string literal not displayed */
	//ResyncInfo containing RAND and AUTS in the case of a resync attach
	ResyncInfo           *AuthInfoReq_ResyncInfo `protobuf:"bytes,3,opt,name=resync_info,json=resyncInfo,proto3" json:"resync_info,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

Authentication Information Request (MAP 29.002 section 8.5.2)

func (*AuthInfoReq) Descriptor

func (*AuthInfoReq) Descriptor() ([]byte, []int)

func (*AuthInfoReq) GetNumRequestedUmtsVectors

func (m *AuthInfoReq) GetNumRequestedUmtsVectors() uint32

func (*AuthInfoReq) GetResyncInfo

func (m *AuthInfoReq) GetResyncInfo() *AuthInfoReq_ResyncInfo

func (*AuthInfoReq) GetUserName

func (m *AuthInfoReq) GetUserName() string

func (*AuthInfoReq) ProtoMessage

func (*AuthInfoReq) ProtoMessage()

func (*AuthInfoReq) Reset

func (m *AuthInfoReq) Reset()

func (*AuthInfoReq) String

func (m *AuthInfoReq) String() string

func (*AuthInfoReq) XXX_DiscardUnknown

func (m *AuthInfoReq) XXX_DiscardUnknown()

func (*AuthInfoReq) XXX_Marshal

func (m *AuthInfoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthInfoReq) XXX_Merge

func (m *AuthInfoReq) XXX_Merge(src proto.Message)

func (*AuthInfoReq) XXX_Size

func (m *AuthInfoReq) XXX_Size() int

func (*AuthInfoReq) XXX_Unmarshal

func (m *AuthInfoReq) XXX_Unmarshal(b []byte) error

type AuthInfoReq_ResyncInfo

type AuthInfoReq_ResyncInfo struct {
	Rand                 []byte   `protobuf:"bytes,1,opt,name=rand,proto3" json:"rand,omitempty"`
	Autn                 []byte   `protobuf:"bytes,2,opt,name=autn,proto3" json:"autn,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AuthInfoReq_ResyncInfo) Descriptor

func (*AuthInfoReq_ResyncInfo) Descriptor() ([]byte, []int)

func (*AuthInfoReq_ResyncInfo) GetAutn

func (m *AuthInfoReq_ResyncInfo) GetAutn() []byte

func (*AuthInfoReq_ResyncInfo) GetRand

func (m *AuthInfoReq_ResyncInfo) GetRand() []byte

func (*AuthInfoReq_ResyncInfo) ProtoMessage

func (*AuthInfoReq_ResyncInfo) ProtoMessage()

func (*AuthInfoReq_ResyncInfo) Reset

func (m *AuthInfoReq_ResyncInfo) Reset()

func (*AuthInfoReq_ResyncInfo) String

func (m *AuthInfoReq_ResyncInfo) String() string

func (*AuthInfoReq_ResyncInfo) XXX_DiscardUnknown

func (m *AuthInfoReq_ResyncInfo) XXX_DiscardUnknown()

func (*AuthInfoReq_ResyncInfo) XXX_Marshal

func (m *AuthInfoReq_ResyncInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthInfoReq_ResyncInfo) XXX_Merge

func (m *AuthInfoReq_ResyncInfo) XXX_Merge(src proto.Message)

func (*AuthInfoReq_ResyncInfo) XXX_Size

func (m *AuthInfoReq_ResyncInfo) XXX_Size() int

func (*AuthInfoReq_ResyncInfo) XXX_Unmarshal

func (m *AuthInfoReq_ResyncInfo) XXX_Unmarshal(b []byte) error

type AuthInfoReq_ResyncInfo_Len

type AuthInfoReq_ResyncInfo_Len int32
const (
	AuthInfoReq_ResyncInfo_ZERO_LEN AuthInfoReq_ResyncInfo_Len = 0
	AuthInfoReq_ResyncInfo_RAND_LEN AuthInfoReq_ResyncInfo_Len = 16
	AuthInfoReq_ResyncInfo_AUTH_LEN AuthInfoReq_ResyncInfo_Len = 16
)

func (AuthInfoReq_ResyncInfo_Len) EnumDescriptor

func (AuthInfoReq_ResyncInfo_Len) EnumDescriptor() ([]byte, []int)

func (AuthInfoReq_ResyncInfo_Len) String

type ErrorCode

type ErrorCode int32

This RPC converts Result-Code from Altran MAP Protocol into gRPC status codes ErrorCode reflects Experimental-Result values which are 3GPP failures to be processed by HLR Proxy.

const (
	// Default success code
	ErrorCode_SUCCESS                         ErrorCode = 0
	ErrorCode_UNABLE_TO_DELIVER               ErrorCode = 1
	ErrorCode_AUTHENTICATION_REJECTED         ErrorCode = 2
	ErrorCode_AUTHENTICATION_DATA_UNAVAILABLE ErrorCode = 3
	ErrorCode_UNKNOWN_SUBSCRIBER              ErrorCode = 4
	ErrorCode_NO_PATH_TO_HLR                  ErrorCode = 5
	ErrorCode_NO_HLR_IN_ACTIVE_STATE          ErrorCode = 6
	ErrorCode_NO_RESP_FROM_PEER               ErrorCode = 7
)

func (ErrorCode) EnumDescriptor

func (ErrorCode) EnumDescriptor() ([]byte, []int)

func (ErrorCode) String

func (x ErrorCode) String() string

type HlrProxyClient

type HlrProxyClient interface {
	AuthInfo(ctx context.Context, in *AuthInfoReq, opts ...grpc.CallOption) (*AuthInfoAns, error)
}

HlrProxyClient is the client API for HlrProxy service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewHlrProxyClient

func NewHlrProxyClient(cc grpc.ClientConnInterface) HlrProxyClient

type HlrProxyServer

type HlrProxyServer interface {
	AuthInfo(context.Context, *AuthInfoReq) (*AuthInfoAns, error)
}

HlrProxyServer is the server API for HlrProxy service.

type UnimplementedHlrProxyServer

type UnimplementedHlrProxyServer struct {
}

UnimplementedHlrProxyServer can be embedded to have forward compatible implementations.

func (*UnimplementedHlrProxyServer) AuthInfo

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL