util: ignore NextHopFaceId on Nack in DummyClientFace
refs #4224
Change-Id: Ic2e78eabc83fbeeea8283412c44b10a04c3acd86
diff --git a/src/face.cpp b/src/face.cpp
index 8e59ce9..8580720 100644
--- a/src/face.cpp
+++ b/src/face.cpp
@@ -376,13 +376,8 @@
static void
extractLpLocalFields(NetPkt& netPacket, const lp::Packet& lpPacket)
{
- if (lpPacket.has<lp::IncomingFaceIdField>()) {
- netPacket.setTag(make_shared<lp::IncomingFaceIdTag>(lpPacket.get<lp::IncomingFaceIdField>()));
- }
-
- if (lpPacket.has<lp::CongestionMarkField>()) {
- netPacket.setTag(make_shared<lp::CongestionMarkTag>(lpPacket.get<lp::CongestionMarkField>()));
- }
+ addTagFromField<lp::IncomingFaceIdTag, lp::IncomingFaceIdField>(netPacket, lpPacket);
+ addTagFromField<lp::CongestionMarkTag, lp::CongestionMarkField>(netPacket, lpPacket);
}
void