Skip to content

Commit

Permalink
apps.lwaftr.binding_table: fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneia committed Nov 9, 2022
1 parent bb9eca2 commit bc571d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/apps/lwaftr/binding_table.lua
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function BindingTable.new(psid_map, softwires)
local ret = {
psid_map = assert(psid_map),
softwires = assert(softwires),
lookup = softwires.entry_type()
entry = softwires.entry_type()
}
return setmetatable(ret, {__index=BindingTable})
end
Expand All @@ -165,7 +165,7 @@ end


function BindingTable:lookup(ipv4, port)
local lookup_key = self.lookup.key
local lookup_key = self.entry.key
local psid = self:lookup_psid(ipv4, port)
lookup_key.ipv4 = ipv4
lookup_key.psid = psid
Expand Down

0 comments on commit bc571d3

Please sign in to comment.