Skip to content

Commit

Permalink
gh-565 Fixed issue with mydisc persistence
Browse files Browse the repository at this point in the history
  • Loading branch information
TrekkieCoder committed Mar 4, 2024
1 parent 414f4f8 commit 03a1cee
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions proto/bfd.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const (
BFDMinSysTXIntervalUs = 100000
BFDDflSysTXIntervalUs = 200000
BFDMinSysRXIntervalUs = 200000
BFDIncrDiscVal = 0x10000000
BFDIncrDiscVal = 0x00000001
)

type ConfigArgs struct {
Expand Down Expand Up @@ -80,7 +80,7 @@ type Notifer interface {

type bfdSession struct {
RemoteName string
SourceIP string
SourceIP string
Instance string
Cxn net.Conn
State SessionState
Expand Down Expand Up @@ -248,9 +248,9 @@ func (bs *Struct) processBFD(conn *net.UDPConn) {
sess := bs.BFDSessMap[remIP.String()]
if sess != nil {
sess.RunSessionSM(raw)
} else {
} /* else {
tk.LogIt(tk.LogDebug, "bfd session(%s) not found\n", remIP.String())
}
} */
}
}

Expand Down Expand Up @@ -426,8 +426,8 @@ func (b *bfdSession) initialize(remoteIP string, sourceIP string, port uint16, i
if myIP == nil {
return errors.New("source address malformed")
}
b.SourceIP = sourceIP
b.SourceIP = sourceIP

if myIP.IsUnspecified() {
myIP = getMyDisc(ip)
if myIP == nil {
Expand Down

0 comments on commit 03a1cee

Please sign in to comment.