*
* \param Name of a network interface
*/
-int GetIfaceMaxHWHeaderLength(char *pcap_dev)
+int GetIfaceMaxHWHeaderLength(const char *pcap_dev)
{
if ((!strcmp("eth", pcap_dev))
||
* \param Name of link
* \retval -1 in case of error, 0 if MTU can not be found
*/
-int GetIfaceMTU(char *pcap_dev)
+int GetIfaceMTU(const char *pcap_dev)
{
#ifdef SIOCGIFMTU
struct ifreq ifr;
* \param Name of a network interface
* \retval 0 in case of error
*/
-int GetIfaceMaxPacketSize(char *pcap_dev)
+int GetIfaceMaxPacketSize(const char *pcap_dev)
{
int ll_header = GetIfaceMaxHWHeaderLength(pcap_dev);
int mtu = 0;
* \param Name of link
* \retval -1 in case of error, 0 if none, 1 if some
*/
-int GetIfaceOffloading(char *pcap_dev)
+int GetIfaceOffloading(const char *pcap_dev)
{
#if defined (ETHTOOL_GGRO) && defined (ETHTOOL_GFLAGS)
struct ifreq ifr;
* \author Eric Leblond <eleblond@edenwall.com>
*/
-int GetIfaceMTU(char *pcap_dev);
-int GetIfaceMaxPacketSize(char *pcap_dev);
-int GetIfaceOffloading(char *pcap_dev);
+int GetIfaceMTU(const char *pcap_dev);
+int GetIfaceMaxPacketSize(const char *pcap_dev);
+int GetIfaceOffloading(const char *pcap_dev);
int GetIfaceRSSQueuesNum(const char *pcap_dev);