Module: kamailio
Branch: master
Commit: e3875c01adf576f179374a926e69e99c0094e5b4
URL: 
https://github.com/kamailio/kamailio/commit/e3875c01adf576f179374a926e69e99c0094e5b4

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2021-08-04T14:15:38+02:00

misc/tools/protoshoot: removed svn id and history

---

Modified: misc/tools/protoshoot/protoshoot.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/e3875c01adf576f179374a926e69e99c0094e5b4.diff
Patch: 
https://github.com/kamailio/kamailio/commit/e3875c01adf576f179374a926e69e99c0094e5b4.patch

---

diff --git a/misc/tools/protoshoot/protoshoot.c 
b/misc/tools/protoshoot/protoshoot.c
index 352e1018a6..6eced5fc2b 100644
--- a/misc/tools/protoshoot/protoshoot.c
+++ b/misc/tools/protoshoot/protoshoot.c
@@ -1,4 +1,3 @@
-/* $Id$ */
 /*
  *
  * Copyright (C) 2001-2003 FhG Fokus
@@ -20,14 +19,10 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  
USA
  */
-/*
- * History:
- *  2005-09-09  basic tcp support added (andrei)
- */
 
 
 
@@ -50,7 +45,6 @@
 #include <signal.h>
 
 
-static char *id="$Id$";
 static char *version="protoshoot 0.4";
 static char* help_msg="\
 Usage: protoshoot -f file -d address -p port -c count [-v]\n\
@@ -87,7 +81,7 @@ int main (int argc, char** argv)
        char buf[BUF_SIZE];
        struct hostent* he;
        struct sockaddr_in addr;
-       
+
        int count;
        int verbose;
        char *fname;
@@ -104,7 +98,7 @@ int main (int argc, char** argv)
        struct linger t_linger;
        int k;
        int err;
-       
+
        /* init */
        count=1;
        verbose=0;
@@ -190,7 +184,6 @@ int main (int argc, char** argv)
                                break;
                        case 'V':
                                printf("version: %s\n", version);
-                               printf("%s\n",id);
                                exit(0);
                                break;
                        case 'h':
@@ -213,7 +206,7 @@ int main (int argc, char** argv)
                                        abort();
                }
        }
-       
+
        /* check if all the required params are present */
        if (fname==0){
                fprintf(stderr, "Missing -f file\n");
@@ -238,13 +231,13 @@ int main (int argc, char** argv)
                exit(-1);
        }
        if (proto==PROTO_UDP || (proto==PROTO_SCTP && !sctp_o2o)) con_no=1;
-       
+
        /* ignore sigpipe */
        if (signal(SIGPIPE, SIG_IGN)==SIG_ERR){
                fprintf(stderr, "failed to ignore SIGPIPE: %s\n", 
strerror(errno));
                exit(-1);
        }
-       
+
        /* open packet file */
        fd=open(fname, O_RDONLY);
        if (fd<0){
@@ -274,7 +267,7 @@ int main (int argc, char** argv)
        addr.sin_len=sizeof(struct sockaddr_in);
 #endif
        memcpy(&addr.sin_addr.s_addr, he->h_addr_list[0], he->h_length);
-       
+
        for (k=0; k<con_no; k++){
                switch(proto){
                        case PROTO_UDP:
@@ -285,7 +278,7 @@ int main (int argc, char** argv)
                                break;
 #ifdef USE_SCTP
                        case PROTO_SCTP:
-                               sock = socket(he->h_addrtype, 
+                               sock = socket(he->h_addrtype,
                                                                
sctp_o2o?SOCK_STREAM:SOCK_SEQPACKET,
                                                                IPPROTO_SCTP);
                                break;
@@ -333,8 +326,7 @@ int main (int argc, char** argv)
                        fprintf(stderr, "ERROR: connect: %s\n", 
strerror(errno));
                        goto error;
                }
-               
-               
+
                /* flood loop */
                t=throttle;
                for (r=0; r<count; r++){
@@ -366,7 +358,7 @@ int main (int argc, char** argv)
                                }
                        }
                }
-               
+
                close(sock);
                if ((verbose) && (k%1000==999)) { putchar('#'); fflush(stdout); 
}
        }


_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to