From cb45addd7f530f83c9ee888af03888bbcbd4a20e Mon Sep 17 00:00:00 2001
From: Nate Sales <nate@natesales.net>
Date: Tue, 16 Jan 2024 20:30:36 -0500
Subject: [PATCH] feat: log nexthop on reject

---
 pkg/embed/templates/global.tmpl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/embed/templates/global.tmpl b/pkg/embed/templates/global.tmpl
index 625768b8..85f0ce56 100644
--- a/pkg/embed/templates/global.tmpl
+++ b/pkg/embed/templates/global.tmpl
@@ -245,7 +245,7 @@ define BLOCKLIST_PREFIXES = [
 # Helper Functions
 
 function _reject(string reason) {
-  reject "REJECTED [", reason, "] pfx ", net, " session ", proto, " path ", bgp_path, " pathlen ", bgp_path.len, " origin ", bgp_path.last;
+  reject "REJECTED [", reason, "] pfx ", net, " session ", proto, " path ", bgp_path, " pathlen ", bgp_path.len, " origin ", bgp_path.last, " nexthop ", bgp_next_hop;
 }
 
 function reject_blocklist() {