]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Rename GetIfaceMaxPayloadSize to GetIfaceMaxPacketSize to reflect the actual function.
authorVictor Julien <victor@inliniac.net>
Thu, 25 Apr 2013 16:37:33 +0000 (18:37 +0200)
committerVictor Julien <victor@inliniac.net>
Sat, 20 Jul 2013 09:17:09 +0000 (11:17 +0200)
src/source-pcap.c
src/suricata.c
src/util-ioctl.c
src/util-ioctl.h

index 7a31f580aaebeeda5f65c4edf91ebd0cf47491c4..041370921681fd318ed9cc0716cbd7b4d87b3453 100644 (file)
@@ -415,7 +415,7 @@ TmEcode ReceivePcapThreadInit(ThreadVars *tv, void *initdata, void **data) {
 
     if (pcapconfig->snaplen == 0) {
         /* We set snaplen if we can get the MTU */
-        ptv->pcap_snaplen = GetIfaceMaxPayloadSize(pcapconfig->iface);
+        ptv->pcap_snaplen = GetIfaceMaxPacketSize(pcapconfig->iface);
     } else {
         ptv->pcap_snaplen = pcapconfig->snaplen;
     }
@@ -562,7 +562,7 @@ TmEcode ReceivePcapThreadInit(ThreadVars *tv, void *initdata, void **data) {
 
     if (pcapconfig->snaplen == 0) {
         /* We try to set snaplen from MTU value */
-        ptv->pcap_snaplen = GetIfaceMaxPayloadSize(pcapconfig->iface);
+        ptv->pcap_snaplen = GetIfaceMaxPacketSize(pcapconfig->iface);
         /* be conservative with old pcap lib to mimic old tcpdump behavior
            when MTU was not available. */
         if (ptv->pcap_snaplen <= 0)
index 9f5f12507d4b288859c9a72fc76b4962d6b39709..568ec6a64d207c3b545b21f8c1cd24187c3aaa0e 100644 (file)
@@ -1426,7 +1426,7 @@ int main(int argc, char **argv)
             case RUNMODE_PFRING:
                 /* FIXME this don't work effficiently in multiinterface */
                 /* find payload for interface and use it */
-                default_packet_size = GetIfaceMaxPayloadSize(pcap_dev);
+                default_packet_size = GetIfaceMaxPacketSize(pcap_dev);
                 if (default_packet_size)
                     break;
             default:
index 7c681ecb829fdc5dcaefb5559fddb3e98f91b8d9..ef5824a3b5e48b129a40e2feb50ec676f3baa770 100644 (file)
@@ -97,7 +97,7 @@ int GetIfaceMTU(char *pcap_dev)
 }
 
 /**
- * \brief output max payload size for a link
+ * \brief output max packet size for a link
  *
  * This does a best effort to find the maximum packet size
  * for the link. In case of uncertainty, it will output a
@@ -106,7 +106,7 @@ int GetIfaceMTU(char *pcap_dev)
  * \param Name of a network interface
  * \retval 0 in case of error
  */
-int GetIfaceMaxPayloadSize(char *pcap_dev)
+int GetIfaceMaxPacketSize(char *pcap_dev)
 {
     int ll_header = GetIfaceMaxHWHeaderLength(pcap_dev);
     int mtu = GetIfaceMTU(pcap_dev);
index 9292f3fe48ea86ced413f74454185264c2baaae6..7378aeeef4f7647988bd51e7ac8d8e6a0525fd31 100644 (file)
@@ -22,4 +22,4 @@
  */
 
 int GetIfaceMTU(char *pcap_dev);
-int GetIfaceMaxPayloadSize(char *pcap_dev);
+int GetIfaceMaxPacketSize(char *pcap_dev);