Skip to content

Commit

Permalink
fix verification error
Browse files Browse the repository at this point in the history
  • Loading branch information
mlimbeck committed Jul 22, 2024
1 parent 16bbf99 commit 3a6336f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions router/dataplane.go
Original file line number Diff line number Diff line change
Expand Up @@ -3586,13 +3586,13 @@ func (p *scionPacketProcessor) processOHP() (respr processResult, reserr error /
return processResult{}, serrors.New("MAC", "expected", fmt.Sprintf("%x", macCopy),
"actual", fmt.Sprintf("%x", ohp.FirstHop.Mac), "type", "ohp") /*@ , false, absReturnErr(processResult{}) @*/
}
// assert reveal p.scionLayer.EqPathType(p.rawPkt)
// @ assert reveal p.scionLayer.EqPathType(p.rawPkt)
// @ unfold acc(p.scionLayer.Mem(ubScionL), 1-R15)
// @ unfold acc(s.Path.Mem(ubPath), 1-R50)
ohp.Info.UpdateSegID(ohp.FirstHop.Mac /*@, ohp.FirstHop.ToIO_HF() @*/)
// @ fold acc(s.Path.Mem(ubPath), 1-R50)
// @ fold acc(p.scionLayer.Mem(ubScionL), 1-R15)
// assert reveal p.scionLayer.EqPathType(p.rawPkt)
// @ assert reveal p.scionLayer.EqPathType(p.rawPkt)

// (VerifiedSCION) the second parameter was changed from 's' to 'p.scionLayer' due to the
// changes made to 'updateSCIONLayer'.
Expand Down Expand Up @@ -3636,9 +3636,9 @@ func (p *scionPacketProcessor) processOHP() (respr processResult, reserr error /
"type", "ohp", "ingress", p.ingressID,
"neighborIA", neighborIA, "srcIA", s.SrcIA) /*@ , false, absReturnErr(processResult{}) @*/
}
// assert reveal p.scionLayer.EqPathType(p.rawPkt)
// @ assert reveal p.scionLayer.EqPathType(p.rawPkt)
// @ unfold acc(p.scionLayer.Mem(ubScionL), 1-R15)
// @ unfold acc(s.Path.Mem(ubPath), 1-R50)
// @ unfold s.Path.Mem(ubPath)
// @ unfold ohp.SecondHop.Mem()
ohp.SecondHop = path.HopField{
ConsIngress: p.ingressID,
Expand All @@ -3652,9 +3652,9 @@ func (p *scionPacketProcessor) processOHP() (respr processResult, reserr error /
// for the rest of processing.
ohp.SecondHop.Mac = path.MAC(p.mac, ohp.Info, ohp.SecondHop, p.macBuffers.scionInput)
// @ fold ohp.SecondHop.Mem()
// @ fold acc(s.Path.Mem(ubPath), 1-R50)
// @ fold s.Path.Mem(ubPath)
// @ fold acc(p.scionLayer.Mem(ubScionL), 1-R15)
// assert reveal p.scionLayer.EqPathType(p.rawPkt)
// @ assert reveal p.scionLayer.EqPathType(p.rawPkt)

// (VerifiedSCION) the second parameter was changed from 's' to 'p.scionLayer' due to the
// changes made to 'updateSCIONLayer'.
Expand Down

0 comments on commit 3a6336f

Please sign in to comment.