]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Merge pull request #2842 in SNORT/snort3 from ~KAMURTHI/snort3:dhp_new_leash to master
authorShravan Rangarajuvenkata (shrarang) <shrarang@cisco.com>
Mon, 12 Apr 2021 18:09:05 +0000 (18:09 +0000)
committerShravan Rangarajuvenkata (shrarang) <shrarang@cisco.com>
Mon, 12 Apr 2021 18:09:05 +0000 (18:09 +0000)
Squashed commit of the following:

commit 1e1db8db55fffc7e4d0d4efffe88234aae80a8f9
Author: Kanimozhi Murthi <kamurthi@cisco.com>
Date:   Mon Apr 12 10:17:05 2021 -0400

    appid: clean-up parameters in service_bootp

src/network_inspectors/appid/service_plugins/service_bootp.cc
src/network_inspectors/appid/service_plugins/service_bootp.h

index c85e5d87c161b20f3b217db8314f6bb44853cb03..f57b60242a0899998f4e356e15516e71dafb0b67 100644 (file)
@@ -230,7 +230,7 @@ int BootpServiceDetector::validate(AppIdDiscoveryArgs& args)
                         goto fail;
 
                     if (option53 && (memcmp(eh->ether_dst, bh->chaddr, 6) == 0))
-                        add_new_dhcp_lease(args.asd, bh->chaddr, bh->yiaddr, pkt->pkth->ingress_group,
+                        add_new_dhcp_lease(args.asd, bh->chaddr, bh->yiaddr,
                             ntohl(subnet), ntohl(leaseTime),
                             router);
                     goto success;
@@ -323,7 +323,6 @@ void BootpServiceDetector::add_dhcp_info(AppIdSession& asd, unsigned op55_len, c
 }
 
 void BootpServiceDetector::add_new_dhcp_lease(AppIdSession& asd, const uint8_t* mac, uint32_t ip,
-    int32_t zone,
     uint32_t subnetmask, uint32_t leaseSecs, uint32_t router)
 {
     if (memcmp(mac, zeromac, 6) == 0 || ip == 0)
index b633afbbee6c37eeff019cedf8c37849cc911fe4..8c3ac604b5335182aae0fac993bb5a0b4b65af98 100644 (file)
@@ -37,8 +37,8 @@ public:
 private:
     void add_dhcp_info(AppIdSession&, unsigned op55_len, const uint8_t* op55, unsigned
         op60_len, const uint8_t* op60, const uint8_t* mac);
-    void add_new_dhcp_lease(AppIdSession&, const uint8_t* mac, uint32_t ip, int32_t zone,
-        uint32_t subnetmask, uint32_t leaseSecs, uint32_t router);
+    void add_new_dhcp_lease(AppIdSession&, const uint8_t* mac, uint32_t ip, uint32_t subnetmask,
+        uint32_t leaseSecs, uint32_t router);
 };
 #endif