From 8acf7116676fae94e328d37b5314a722b3cb61a0 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 4 May 2023 06:47:37 +0200 Subject: [PATCH] respond/reject: minor code cleanups (cherry picked from commit 1f0aed07755c89ddcd1cf6c808d8257ddf4efb46) --- src/respond-reject-libnet11.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/respond-reject-libnet11.c b/src/respond-reject-libnet11.c index b6e4abcc43..5149d5eec0 100644 --- a/src/respond-reject-libnet11.c +++ b/src/respond-reject-libnet11.c @@ -259,14 +259,11 @@ static inline int BuildEthernet(libnet_t *c, Libnet11Packet *lpacket, uint16_t p static inline int BuildEthernetVLAN(libnet_t *c, Libnet11Packet *lpacket, uint16_t proto, uint16_t vlan_id) { - if (libnet_build_802_1q( - lpacket->dmac, lpacket->smac, ETHERTYPE_VLAN, - 0x000, 0x000, vlan_id, proto, - NULL, /* payload */ - 0, /* payload size */ - c, /* libnet handle */ - 0) < 0) - { + if (libnet_build_802_1q(lpacket->dmac, lpacket->smac, ETHERTYPE_VLAN, 0x00, 0x00, vlan_id, + proto, NULL, /* payload */ + 0, /* payload size */ + c, /* libnet handle */ + 0) < 0) { SCLogError(SC_ERR_LIBNET_BUILD_FAILED,"libnet_build_802_1q %s", libnet_geterror(c)); return -1; } -- 2.47.2