]> The Tcpdump Group git mirrors - libpcap/commitdiff
spaces
authorDario Lombardo <[email protected]>
Fri, 10 Jan 2014 12:21:41 +0000 (13:21 +0100)
committerDario Lombardo <[email protected]>
Fri, 10 Jan 2014 12:21:41 +0000 (13:21 +0100)
inet.c
pcap.c
pcap/pcap.h

diff --git a/inet.c b/inet.c
index 8f50d3194f84bd70f9560bd947f69046900db551..1b9dc3dd73e6d5e5d83eb5a6d8f074a3ba2fcd87 100644 (file)
--- a/inet.c
+++ b/inet.c
@@ -812,14 +812,14 @@ pcap_lookupdev(errbuf)
        DWORD dwWindowsMajorVersion;
        dwVersion = GetVersion();       /* get the OS version */
        dwWindowsMajorVersion = (DWORD)(LOBYTE(LOWORD(dwVersion)));
-       
+
        if (dwVersion >= 0x80000000 && dwWindowsMajorVersion >= 4) {
                /*
                 * Windows 95, 98, ME.
                 */
                ULONG NameLength = 8192;
                static char AdaptersName[8192];
-               
+
                if (PacketGetAdapterNames(AdaptersName,&NameLength) )
                        return (AdaptersName);
                else
@@ -882,7 +882,7 @@ pcap_lookupdev(errbuf)
 
                free(TAdaptersName);
                return (char *)(AdaptersName);
-       }       
+       }
 }
 
 
@@ -892,7 +892,7 @@ pcap_lookupnet(device, netp, maskp, errbuf)
        register bpf_u_int32 *netp, *maskp;
        register char *errbuf;
 {
-       /* 
+       /*
         * We need only the first IPv4 address, so we must scan the array returned by PacketGetNetInfo()
         * in order to skip non IPv4 (i.e. IPv6 addresses)
         */
@@ -918,7 +918,7 @@ pcap_lookupnet(device, netp, maskp, errbuf)
                        *netp &= *maskp;
                        return (0);
                }
-                               
+
        }
 
        *netp = *maskp = 0;
diff --git a/pcap.c b/pcap.c
index 26f18167819575c261393cb09963d1c3f110b85e..b8eab26e6d0fc0489fa510f0ef243faa2748b8e3 100644 (file)
--- a/pcap.c
+++ b/pcap.c
 #include "pcap-dbus.h"
 #endif
 
-int 
+int
 pcap_not_initialized(pcap_t *pcap _U_)
 {
        /* this means 'not initialized' */
@@ -216,7 +216,7 @@ pcap_next(pcap_t *p, struct pcap_pkthdr *h)
        return (pkt);
 }
 
-int 
+int
 pcap_next_ex(pcap_t *p, struct pcap_pkthdr **pkt_header,
     const u_char **pkt_data)
 {
@@ -350,7 +350,7 @@ pcap_findalldevs(pcap_if_t **alldevsp, char *errbuf)
 
        /*
         * Get the list of regular interfaces first.
-        */ 
+        */
        if (pcap_findalldevs_interfaces(alldevsp, errbuf) == -1)
                return (-1);    /* failure */
 
@@ -501,7 +501,7 @@ pcap_alloc_pcap_t(char *ebuf, size_t size)
 #ifndef WIN32
        p->fd = -1;     /* not opened yet */
        p->selectable_fd = -1;
-#endif 
+#endif
 
        if (size == 0) {
                /* No private data was requested. */
@@ -1454,7 +1454,7 @@ pcap_setnonblock_fd(pcap_t *p, int nonblock, char *errbuf)
 
 #ifdef WIN32
 /*
- * Generate a string for the last Win32-specific error (i.e. an error generated when 
+ * Generate a string for the last Win32-specific error (i.e. an error generated when
  * calling a Win32 API).
  * For errors occurred during standard C calls, we still use pcap_strerror()
  */
@@ -1862,7 +1862,7 @@ pcap_offline_filter(const struct bpf_program *fp, const struct pcap_pkthdr *h,
 {
        const struct bpf_insn *fcode = fp->bf_insns;
 
-       if (fcode != NULL) 
+       if (fcode != NULL)
                return (bpf_filter(fcode, pkt, h->len, h->caplen));
        else
                return (0);
index d1b79ef950f9aeac164e647aa645057111421e6d..1969d9c56ca0ad7eed711f278475a4c11aaba12e 100644 (file)
@@ -131,7 +131,7 @@ struct pcap_file_header {
 
 /*
  * Macros for the value returned by pcap_datalink_ext().
- * 
+ *
  * If LT_FCS_LENGTH_PRESENT(x) is true, the LT_FCS_LENGTH(x) macro
  * gives the FCS length of packets in the capture.
  */