]> The Tcpdump Group git mirrors - libpcap/commitdiff
Remove trailing spaces/tabs
authorFrancois-Xavier Le Bail <[email protected]>
Fri, 25 May 2018 07:46:32 +0000 (09:46 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Fri, 25 May 2018 07:46:32 +0000 (09:46 +0200)
CMakeLists.txt
pcap-rpcap.c
pcap.3pcap.in
rpcapd/daemon.c
rpcapd/rpcapd.manadmin.in
sockutils.c
testprogs/filtertest.c

index c5c8bc0f8c0b59e0e718b37528800fce9c5b865d..7ba90ea822b78c5705f4075c4f24d8d7fbb246c0 100644 (file)
@@ -251,7 +251,7 @@ option(YYDEBUG "Build parser debugging code" OFF)
 
 # Get, parse, format and set pcap's version string from [pcap_root]/VERSION
 # for later use.
 
 # Get, parse, format and set pcap's version string from [pcap_root]/VERSION
 # for later use.
+
 # Get MAJOR, MINOR, PATCH & SUFFIX
 file(STRINGS ${pcap_SOURCE_DIR}/VERSION
     PACKAGE_VERSION
 # Get MAJOR, MINOR, PATCH & SUFFIX
 file(STRINGS ${pcap_SOURCE_DIR}/VERSION
     PACKAGE_VERSION
@@ -264,7 +264,7 @@ string(REGEX MATCH "^([0-9]+)" PACKAGE_VERSION_MAJOR "${PACKAGE_VERSION}")
 # Get MAJOR, MINOR & PATCH
 string(REGEX MATCH "^([0-9]+.)?([0-9]+.)?([0-9]+)" PACKAGE_VERSION_NOSUFFIX "${PACKAGE_VERSION}")
 
 # Get MAJOR, MINOR & PATCH
 string(REGEX MATCH "^([0-9]+.)?([0-9]+.)?([0-9]+)" PACKAGE_VERSION_NOSUFFIX "${PACKAGE_VERSION}")
 
-if(WIN32) 
+if(WIN32)
     # Convert PCAP_VERSION_NOSUFFIX to Windows preferred version format
     string(REPLACE "." "," PACKAGE_VERSION_PREDLL ${PACKAGE_VERSION_NOSUFFIX})
 
     # Convert PCAP_VERSION_NOSUFFIX to Windows preferred version format
     string(REPLACE "." "," PACKAGE_VERSION_PREDLL ${PACKAGE_VERSION_NOSUFFIX})
 
@@ -1499,7 +1499,7 @@ if(NOT DISABLE_DAG)
             endif()
         endif()
     endif()
             endif()
         endif()
     endif()
-endif() 
+endif()
 
 # Check for Septel card support.
 set(PROJECT_EXTERNAL_OBJECT_LIST "")
 
 # Check for Septel card support.
 set(PROJECT_EXTERNAL_OBJECT_LIST "")
@@ -1521,7 +1521,7 @@ if(NOT DISABLE_SEPTEL)
         set(PROJECT_EXTERNAL_OBJECT_LIST ${PROJECT_EXTERNAL_OBJECT_LIST} "${SEPTEL_ROOT}/asciibin.o ${SEPTEL_ROOT}/bit2byte.o ${SEPTEL_ROOT}/confirm.o ${SEPTEL_ROOT}/fmtmsg.o ${SEPTEL_ROOT}/gct_unix.o ${SEPTEL_ROOT}/hqueue.o ${SEPTEL_ROOT}/ident.o ${SEPTEL_ROOT}/mem.o ${SEPTEL_ROOT}/pack.o ${SEPTEL_ROOT}/parse.o ${SEPTEL_ROOT}/pool.o ${SEPTEL_ROOT}/sdlsig.o ${SEPTEL_ROOT}/strtonum.o ${SEPTEL_ROOT}/timer.o ${SEPTEL_ROOT}/trace.o")
         set(HAVE_SEPTEL_API TRUE)
     endif()
         set(PROJECT_EXTERNAL_OBJECT_LIST ${PROJECT_EXTERNAL_OBJECT_LIST} "${SEPTEL_ROOT}/asciibin.o ${SEPTEL_ROOT}/bit2byte.o ${SEPTEL_ROOT}/confirm.o ${SEPTEL_ROOT}/fmtmsg.o ${SEPTEL_ROOT}/gct_unix.o ${SEPTEL_ROOT}/hqueue.o ${SEPTEL_ROOT}/ident.o ${SEPTEL_ROOT}/mem.o ${SEPTEL_ROOT}/pack.o ${SEPTEL_ROOT}/parse.o ${SEPTEL_ROOT}/pool.o ${SEPTEL_ROOT}/sdlsig.o ${SEPTEL_ROOT}/strtonum.o ${SEPTEL_ROOT}/timer.o ${SEPTEL_ROOT}/trace.o")
         set(HAVE_SEPTEL_API TRUE)
     endif()
-endif() 
+endif()
 
 # Check for Myricom SNF support.
 if(NOT DISABLE_SNF)
 
 # Check for Myricom SNF support.
 if(NOT DISABLE_SNF)
@@ -1542,7 +1542,7 @@ if(NOT DISABLE_SNF)
         set(HAVE_SNF_API TRUE)
         set(PCAP_LINK_LIBRARIES ${PCAP_LINK_LIBRARIES} ${SNF_LIBRARIES})
     endif()
         set(HAVE_SNF_API TRUE)
         set(PCAP_LINK_LIBRARIES ${PCAP_LINK_LIBRARIES} ${SNF_LIBRARIES})
     endif()
-endif() 
+endif()
 
 # Check for Riverbed TurboCap support.
 if(NOT DISABLE_TC)
 
 # Check for Riverbed TurboCap support.
 if(NOT DISABLE_TC)
@@ -1563,7 +1563,7 @@ if(NOT DISABLE_TC)
         set(HAVE_TC_API TRUE)
         set(PCAP_LINK_LIBRARIES "${PCAP_LINK_LIBRARIES} ${TC_LIBRARIES} ${CMAKE_USE_PTHREADS_INIT} stdc++")
     endif()
         set(HAVE_TC_API TRUE)
         set(PCAP_LINK_LIBRARIES "${PCAP_LINK_LIBRARIES} ${TC_LIBRARIES} ${CMAKE_USE_PTHREADS_INIT} stdc++")
     endif()
-endif() 
+endif()
 
 #
 # Remote capture support.
 
 #
 # Remote capture support.
@@ -1982,7 +1982,7 @@ if(WIN32)
         # For compatibility, build the shared library without the "lib" prefix on
         # MinGW as well.
         #
         # For compatibility, build the shared library without the "lib" prefix on
         # MinGW as well.
         #
-        set_target_properties(${LIBRARY_NAME} PROPERTIES 
+        set_target_properties(${LIBRARY_NAME} PROPERTIES
             PREFIX ""
             OUTPUT_NAME "${LIBRARY_NAME}"
         )
             PREFIX ""
             OUTPUT_NAME "${LIBRARY_NAME}"
         )
index 42f381c8627378544d03c849ebe31f9dab190194..65e235f06291b57241e6bc07155984178fc7dbe4 100644 (file)
@@ -3110,7 +3110,7 @@ static int rpcap_check_msg_type(SOCKET sock, uint8 request_type, struct rpcap_he
                }
                return -1;
        }
                }
                return -1;
        }
-       
+
        return 0;
 }
 
        return 0;
 }
 
index cf15941210bcadf37863865630d9a6ac300c4d3b..4b896c5207ecc8c0852c14d1a3cf6b7d66bc3df2 100644 (file)
@@ -181,7 +181,7 @@ negative value is unpredictable.
 the packet buffer timeout cannot be used to cause calls that read
 packets to return within a limited period of time, because, on some
 platforms, the packet buffer timeout isn't supported, and, on other
 the packet buffer timeout cannot be used to cause calls that read
 packets to return within a limited period of time, because, on some
 platforms, the packet buffer timeout isn't supported, and, on other
-platforms, the timer doesn't start until at least one packet arrives. 
+platforms, the timer doesn't start until at least one packet arrives.
 This means that the packet buffer timeout should
 .B NOT
 be used, for example, in an interactive application to allow the packet
 This means that the packet buffer timeout should
 .B NOT
 be used, for example, in an interactive application to allow the packet
index fe166f816af4519dced6cba180362f3765a3d7ca..b6815ac7f02c5acde935673be1247bf51ce8a774 100755 (executable)
@@ -287,7 +287,7 @@ daemon_serviceloop(SOCKET sockctrl_in, SOCKET sockctrl_out, int isactive, int nu
                                // but they might be able to handle
                                // *our* maximum version, so reply
                                // with that version.
                                // but they might be able to handle
                                // *our* maximum version, so reply
                                // with that version.
-                               // 
+                               //
                                reply_version = RPCAP_MAX_VERSION;
                        }
                        if (rpcap_senderror(pars.sockctrl_out, reply_version,
                                reply_version = RPCAP_MAX_VERSION;
                        }
                        if (rpcap_senderror(pars.sockctrl_out, reply_version,
@@ -1438,7 +1438,7 @@ daemon_msg_findallif_req(struct daemon_slpars *pars, uint32 plen)
 error:
        if (alldevs)
                pcap_freealldevs(alldevs);
 error:
        if (alldevs)
                pcap_freealldevs(alldevs);
-       
+
        if (rpcap_senderror(pars->sockctrl_out, pars->protocol_version,
            PCAP_ERR_FINDALLIF, errmsgbuf, errbuf) == -1)
        {
        if (rpcap_senderror(pars->sockctrl_out, pars->protocol_version,
            PCAP_ERR_FINDALLIF, errmsgbuf, errbuf) == -1)
        {
@@ -1867,7 +1867,7 @@ fatal_error:
                        //
                        SetEvent(pcap_getevent(session->fp));
                }
                        //
                        SetEvent(pcap_getevent(session->fp));
                }
-               
+
                //
                // Wait for the thread to exit, so we don't close
                // sockets out from under it.
                //
                // Wait for the thread to exit, so we don't close
                // sockets out from under it.
@@ -1921,7 +1921,7 @@ daemon_msg_endcap_req(struct daemon_slpars *pars, struct session *session, struc
                // out of the loop" indication.
                //
                SetEvent(pcap_getevent(session->fp));
                // out of the loop" indication.
                //
                SetEvent(pcap_getevent(session->fp));
-               
+
                //
                // Wait for the thread to exit, so we don't close
                // sockets out from under it.
                //
                // Wait for the thread to exit, so we don't close
                // sockets out from under it.
index b38dd4a451e8ac774f1cfe32b722639723a28ad0..92f676c02c04193be6de816f3b9ba28584d15426 100644 (file)
@@ -4,11 +4,11 @@
 .\"  Copyright (c) 2005-2009 CACE Technologies
 .\"  Copyright (c) 2018-     The TCPdump Group
 .\"  All rights reserved.
 .\"  Copyright (c) 2005-2009 CACE Technologies
 .\"  Copyright (c) 2018-     The TCPdump Group
 .\"  All rights reserved.
-.\" 
+.\"
 .\"  Redistribution and use in source and binary forms, with or without
 .\"  modification, are permitted provided that the following conditions
 .\"  are met:
 .\"  Redistribution and use in source and binary forms, with or without
 .\"  modification, are permitted provided that the following conditions
 .\"  are met:
-.\" 
+.\"
 .\"  1. Redistributions of source code must retain the above copyright
 .\"  notice, this list of conditions and the following disclaimer.
 .\"  2. Redistributions in binary form must reproduce the above copyright
 .\"  1. Redistributions of source code must retain the above copyright
 .\"  notice, this list of conditions and the following disclaimer.
 .\"  2. Redistributions in binary form must reproduce the above copyright
@@ -17,7 +17,7 @@
 .\"  3. Neither the name of the Politecnico di Torino nor the names of its
 .\"  contributors may be used to endorse or promote products derived from
 .\"  this software without specific prior written permission.
 .\"  3. Neither the name of the Politecnico di Torino nor the names of its
 .\"  contributors may be used to endorse or promote products derived from
 .\"  this software without specific prior written permission.
-.\" 
+.\"
 .\"  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 .\"  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 .\"  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 .\"  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 .\"  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 .\"  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
@@ -115,9 +115,9 @@ Rpcapd will parse all the parameters and save them into the specified
 configuration file.
 .SH Installing rpcapd on Win32
 .LP
 configuration file.
 .SH Installing rpcapd on Win32
 .LP
-The remote daemon is installed automatically when installing WinPcap. 
-The installation process places the rpcapd file into the WinPcap folder. 
-This file can be executed either from the command line, or as a service. 
+The remote daemon is installed automatically when installing WinPcap.
+The installation process places the rpcapd file into the WinPcap folder.
+This file can be executed either from the command line, or as a service.
 For instance, the installation process updates the list of available
 services list and it creates a new item (Remote Packet Capture Protocol
 v.0 (experimental) ).  To avoid security problems, the service is
 For instance, the installation process updates the list of available
 services list and it creates a new item (Remote Packet Capture Protocol
 v.0 (experimental) ).  To avoid security problems, the service is
@@ -142,7 +142,7 @@ start in the foreground.
 .SH Installing rpcapd on Unix-like systems
 TBD
 .SH Starting rpcapd on Unix-like systems
 .SH Installing rpcapd on Unix-like systems
 TBD
 .SH Starting rpcapd on Unix-like systems
-.B rpcapd 
+.B rpcapd
 needs sufficient privileges to perform packet capture, e.g.
 run as root or be owned by root and have suid set. Most operating
 systems provide more elegant solutions when run as user than the
 needs sufficient privileges to perform packet capture, e.g.
 run as root or be owned by root and have suid set. Most operating
 systems provide more elegant solutions when run as user than the
index 079c49db2cac166c92f923cbac2d69f2f6e0b6b1..018ac026e527b2fff7f4e6ca30b9ccbd9ff50d5d 100644 (file)
  *   Wth MSVC, there *is* no ssize_t.
  *
  *   With MinGW, there is an ssize_t type; it is either an int (32 bit)
  *   Wth MSVC, there *is* no ssize_t.
  *
  *   With MinGW, there is an ssize_t type; it is either an int (32 bit)
- *   or a long long (64 bit). 
+ *   or a long long (64 bit).
  *
  * So, on Windows, if we don't have ssize_t defined, define it as an
  * int, so we can use it, on all platforms, as the type of variables
  *
  * So, on Windows, if we don't have ssize_t defined, define it as an
  * int, so we can use it, on all platforms, as the type of variables
index 8fb8ecba5dc3f16864513cb644195ed18903d7e0..7e2d6d6e186d4989f4c694c5a0f7bf5d4f99eb0c 100644 (file)
@@ -254,7 +254,7 @@ main(int argc, char **argv)
 
                        switch (inet_pton(AF_INET, optarg, &addr)) {
 
 
                        switch (inet_pton(AF_INET, optarg, &addr)) {
 
-                       case 0:                        
+                       case 0:
                                error("invalid netmask %s", optarg);
                                break;
 
                                error("invalid netmask %s", optarg);
                                break;