@@ -57,6 +57,7 @@ namespace pcpp
5757 // / Get a pointer to the live device by its IP address. IP address can be both IPv4 or IPv6
5858 // / @param[in] ipAddr The IP address defined for the device
5959 // / @return A pointer to the live device if this IP address exists. nullptr otherwise
60+ // / @deprecated Use `getDeviceByIp` instead.
6061 PCPP_DEPRECATED (" Use `getDeviceByIp`" )
6162 PcapLiveDevice* getPcapLiveDeviceByIp (const IPAddress& ipAddr) const ;
6263
@@ -68,6 +69,7 @@ namespace pcpp
6869 // / Get a pointer to the live device by its IPv4 address
6970 // / @param[in] ipAddr The IPv4 address defined for the device
7071 // / @return A pointer to the live device if this IPv4 address exists. nullptr otherwise
72+ // / @deprecated Use `getDeviceByIp` instead.
7173 PCPP_DEPRECATED (" Use `getDeviceByIp`" )
7274 PcapLiveDevice* getPcapLiveDeviceByIp (const IPv4Address& ipAddr) const ;
7375
@@ -79,6 +81,7 @@ namespace pcpp
7981 // / Get a pointer to the live device by its IPv6 address
8082 // / @param[in] ip6Addr The IPv6 address defined for the device
8183 // / @return A pointer to the live device if this IPv6 address exists. nullptr otherwise
84+ // / @deprecated Use `getDeviceByIp` instead.
8285 PCPP_DEPRECATED (" Use `getDeviceByIp`" )
8386 PcapLiveDevice* getPcapLiveDeviceByIp (const IPv6Address& ip6Addr) const ;
8487
@@ -91,6 +94,7 @@ namespace pcpp
9194 // / IPv6
9295 // / @param[in] ipAddrAsString The IP address defined for the device as string
9396 // / @return A pointer to the live device if this IP address is valid and exists. nullptr otherwise
97+ // / @deprecated Use `getDeviceByIp` instead.
9498 PCPP_DEPRECATED (" Use `getDeviceByIp`" )
9599 PcapLiveDevice* getPcapLiveDeviceByIp (const std::string& ipAddrAsString) const ;
96100
@@ -103,6 +107,7 @@ namespace pcpp
103107 // / Get a pointer to the live device by its name
104108 // / @param[in] name The name of the interface (e.g eth0)
105109 // / @return A pointer to the live device if this name exists. nullptr otherwise
110+ // / @deprecated Use `getDeviceByName` instead.
106111 PCPP_DEPRECATED (" Use `getDeviceByName`" )
107112 PcapLiveDevice* getPcapLiveDeviceByName (const std::string& name) const ;
108113
@@ -114,6 +119,7 @@ namespace pcpp
114119 // / Get a pointer to the live device by its IP address or name
115120 // / @param[in] ipOrName An IP address or name of the interface
116121 // / @return A pointer to the live device if exists, nullptr otherwise
122+ // / @deprecated Use `getDeviceByIpOrName` instead.
117123 PCPP_DEPRECATED (" Use `getDeviceByIpOrName`" )
118124 PcapLiveDevice* getPcapLiveDeviceByIpOrName (const std::string& ipOrName) const ;
119125
0 commit comments