@@ -57,6 +57,7 @@ namespace pcpp
57
57
// / Get a pointer to the live device by its IP address. IP address can be both IPv4 or IPv6
58
58
// / @param[in] ipAddr The IP address defined for the device
59
59
// / @return A pointer to the live device if this IP address exists. nullptr otherwise
60
+ // / @deprecated Use `getDeviceByIp` instead.
60
61
PCPP_DEPRECATED (" Use `getDeviceByIp`" )
61
62
PcapLiveDevice* getPcapLiveDeviceByIp (const IPAddress& ipAddr) const ;
62
63
@@ -68,6 +69,7 @@ namespace pcpp
68
69
// / Get a pointer to the live device by its IPv4 address
69
70
// / @param[in] ipAddr The IPv4 address defined for the device
70
71
// / @return A pointer to the live device if this IPv4 address exists. nullptr otherwise
72
+ // / @deprecated Use `getDeviceByIp` instead.
71
73
PCPP_DEPRECATED (" Use `getDeviceByIp`" )
72
74
PcapLiveDevice* getPcapLiveDeviceByIp (const IPv4Address& ipAddr) const ;
73
75
@@ -79,6 +81,7 @@ namespace pcpp
79
81
// / Get a pointer to the live device by its IPv6 address
80
82
// / @param[in] ip6Addr The IPv6 address defined for the device
81
83
// / @return A pointer to the live device if this IPv6 address exists. nullptr otherwise
84
+ // / @deprecated Use `getDeviceByIp` instead.
82
85
PCPP_DEPRECATED (" Use `getDeviceByIp`" )
83
86
PcapLiveDevice* getPcapLiveDeviceByIp (const IPv6Address& ip6Addr) const ;
84
87
@@ -91,6 +94,7 @@ namespace pcpp
91
94
// / IPv6
92
95
// / @param[in] ipAddrAsString The IP address defined for the device as string
93
96
// / @return A pointer to the live device if this IP address is valid and exists. nullptr otherwise
97
+ // / @deprecated Use `getDeviceByIp` instead.
94
98
PCPP_DEPRECATED (" Use `getDeviceByIp`" )
95
99
PcapLiveDevice* getPcapLiveDeviceByIp (const std::string& ipAddrAsString) const ;
96
100
@@ -103,6 +107,7 @@ namespace pcpp
103
107
// / Get a pointer to the live device by its name
104
108
// / @param[in] name The name of the interface (e.g eth0)
105
109
// / @return A pointer to the live device if this name exists. nullptr otherwise
110
+ // / @deprecated Use `getDeviceByName` instead.
106
111
PCPP_DEPRECATED (" Use `getDeviceByName`" )
107
112
PcapLiveDevice* getPcapLiveDeviceByName (const std::string& name) const ;
108
113
@@ -114,6 +119,7 @@ namespace pcpp
114
119
// / Get a pointer to the live device by its IP address or name
115
120
// / @param[in] ipOrName An IP address or name of the interface
116
121
// / @return A pointer to the live device if exists, nullptr otherwise
122
+ // / @deprecated Use `getDeviceByIpOrName` instead.
117
123
PCPP_DEPRECATED (" Use `getDeviceByIpOrName`" )
118
124
PcapLiveDevice* getPcapLiveDeviceByIpOrName (const std::string& ipOrName) const ;
119
125
0 commit comments