@@ -67,6 +67,8 @@ type N3UE struct {
6767
6868 // Continuous IKE_SA_INIT timer for reconnection
6969 ContinuousIkeSaInitTimer * time.Timer
70+
71+ ReRegistrationRequired bool
7072}
7173
7274func N3UESelf () * N3UE {
@@ -116,6 +118,7 @@ type N3IWFRanUe struct {
116118
117119 /* NAS TCP Connection */
118120 TCPConnection net.Conn
121+ TcpConnStopCh chan struct {}
119122
120123 /* Others */
121124 Guami * ngapType.GUAMI
@@ -280,49 +283,49 @@ func (ikeUe *N3IWFIkeUe) CompleteChildSA(msgID uint32, outboundSPI uint32,
280283// ===== IKE Security Association Retransmit Methods =====
281284
282285// Request retransmit methods (for N3UE's requests)
283- func (ikeSA * IKESecurityAssociation ) GetReqRetPrevReq () []byte {
286+ func (ikeSA * IKESecurityAssociation ) GetReqRetransPrevReq () []byte {
284287 if ikeSA .ReqRetransmitInfo == nil {
285288 return nil
286289 }
287290 return ikeSA .ReqRetransmitInfo .PrevReq
288291}
289292
290- func (ikeSA * IKESecurityAssociation ) GetReqRetTimer () * RetransmitTimer {
293+ func (ikeSA * IKESecurityAssociation ) GetReqRetransTimer () * RetransmitTimer {
291294 if ikeSA .ReqRetransmitInfo == nil {
292295 return nil
293296 }
294297 return ikeSA .ReqRetransmitInfo .RetransmitTimer
295298}
296299
297- func (ikeSA * IKESecurityAssociation ) GetReqRetUdpConnInfo () * UDPSocketInfo {
300+ func (ikeSA * IKESecurityAssociation ) GetReqRetransUdpConnInfo () * UDPSocketInfo {
298301 if ikeSA .ReqRetransmitInfo == nil {
299302 return nil
300303 }
301304 return ikeSA .ReqRetransmitInfo .UdpConnInfo
302305}
303306
304- func (ikeSA * IKESecurityAssociation ) StoreReqRetPrevReq (pkt []byte ) {
307+ func (ikeSA * IKESecurityAssociation ) StoreReqRetransPrevReq (pkt []byte ) {
305308 if ikeSA .ReqRetransmitInfo == nil {
306309 ikeSA .ReqRetransmitInfo = & ReqRetransmitInfo {}
307310 }
308311 ikeSA .ReqRetransmitInfo .PrevReq = pkt
309312}
310313
311- func (ikeSA * IKESecurityAssociation ) StoreReqRetUdpConnInfo (udpConnInfo * UDPSocketInfo ) {
314+ func (ikeSA * IKESecurityAssociation ) StoreReqRetransUdpConnInfo (udpConnInfo * UDPSocketInfo ) {
312315 if ikeSA .ReqRetransmitInfo == nil {
313316 ikeSA .ReqRetransmitInfo = & ReqRetransmitInfo {}
314317 }
315318 ikeSA .ReqRetransmitInfo .UdpConnInfo = udpConnInfo
316319}
317320
318- func (ikeSA * IKESecurityAssociation ) StoreReqRetTimer (timer * RetransmitTimer ) {
321+ func (ikeSA * IKESecurityAssociation ) StoreReqRetransTimer (timer * RetransmitTimer ) {
319322 if ikeSA .ReqRetransmitInfo == nil {
320323 ikeSA .ReqRetransmitInfo = & ReqRetransmitInfo {}
321324 }
322325 ikeSA .ReqRetransmitInfo .RetransmitTimer = timer
323326}
324327
325- func (ikeSA * IKESecurityAssociation ) StopReqRetTimer () {
328+ func (ikeSA * IKESecurityAssociation ) StopReqRetransTimer () {
326329 if ikeSA .ReqRetransmitInfo == nil {
327330 return
328331 }
@@ -335,43 +338,43 @@ func (ikeSA *IKESecurityAssociation) StopReqRetTimer() {
335338}
336339
337340// Response retransmit methods (for responses to peer's requests)
338- func (ikeSA * IKESecurityAssociation ) GetRspRetPrevReqHash () [sha1 .Size ]byte {
341+ func (ikeSA * IKESecurityAssociation ) GetRspRetransPrevReqHash () [sha1 .Size ]byte {
339342 if ikeSA .RspRetransmitInfo == nil {
340343 return [sha1 .Size ]byte {}
341344 }
342345 return ikeSA .RspRetransmitInfo .PrevReqHash
343346}
344347
345- func (ikeSA * IKESecurityAssociation ) GetRspRetPrevRsp () []byte {
348+ func (ikeSA * IKESecurityAssociation ) GetRspRetransPrevRsp () []byte {
346349 if ikeSA .RspRetransmitInfo == nil {
347350 return nil
348351 }
349352
350353 return ikeSA .RspRetransmitInfo .PrevRsp
351354}
352355
353- func (ikeSA * IKESecurityAssociation ) GetRspRetUdpConnInfo () * UDPSocketInfo {
356+ func (ikeSA * IKESecurityAssociation ) GetRspRetransUdpConnInfo () * UDPSocketInfo {
354357 if ikeSA .RspRetransmitInfo == nil {
355358 return nil
356359 }
357360 return ikeSA .RspRetransmitInfo .UdpConnInfo
358361}
359362
360- func (ikeSA * IKESecurityAssociation ) StoreRspRetPrevRsp (pkt []byte ) {
363+ func (ikeSA * IKESecurityAssociation ) StoreRspRetransPrevRsp (pkt []byte ) {
361364 if ikeSA .RspRetransmitInfo == nil {
362365 ikeSA .RspRetransmitInfo = & RspRetransmitInfo {}
363366 }
364367 ikeSA .RspRetransmitInfo .PrevRsp = pkt
365368}
366369
367- func (ikeSA * IKESecurityAssociation ) StoreRspRetUdpConnInfo (udpConnInfo * UDPSocketInfo ) {
370+ func (ikeSA * IKESecurityAssociation ) StoreRspRetransUdpConnInfo (udpConnInfo * UDPSocketInfo ) {
368371 if ikeSA .RspRetransmitInfo == nil {
369372 ikeSA .RspRetransmitInfo = & RspRetransmitInfo {}
370373 }
371374 ikeSA .RspRetransmitInfo .UdpConnInfo = udpConnInfo
372375}
373376
374- func (ikeSA * IKESecurityAssociation ) StoreRspRetPrevReqHash (pkt []byte ) {
377+ func (ikeSA * IKESecurityAssociation ) StoreRspRetransPrevReqHash (pkt []byte ) {
375378 if ikeSA .RspRetransmitInfo == nil {
376379 ikeSA .RspRetransmitInfo = & RspRetransmitInfo {}
377380 }
0 commit comments