Skip to content
Snippets Groups Projects
Commit a95c1982 authored by Oliver Herms's avatar Oliver Herms
Browse files

Fix naming

parent 8755aea1
Branches
Tags
No related merge requests found
......@@ -37,7 +37,7 @@ type router struct {
type neighbor struct {
localAS uint32
peerAS uint32
address [16]byte
peerAddress [16]byte
routerID uint32
fsm *FSM
opt *packet.DecodeOptions
......@@ -277,7 +277,7 @@ func (r *router) processPeerUpNotification(msg *bmppkt.PeerUpNotification) error
n := &neighbor{
localAS: fsm.peer.localASN,
peerAS: msg.PerPeerHeader.PeerAS,
address: msg.PerPeerHeader.PeerAddress,
peerAddress: msg.PerPeerHeader.PeerAddress,
routerID: recvOpen.BGPIdentifier,
fsm: fsm,
opt: fsm.decodeOptions(),
......
......
......@@ -304,7 +304,7 @@ func TestProcessPeerUpNotification(t *testing.T) {
[16]byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 255, 1}: {
localAS: 200,
peerAS: 100,
address: [16]byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 255, 1},
peerAddress: [16]byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 255, 1},
routerID: 169090610,
opt: &packet.DecodeOptions{
AddPath: false,
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment