netperf/netperf.patch

Wed, 08 Feb 2012 20:07:00 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 08 Feb 2012 20:07:00 +0200
changeset 588
300d43423c2e
parent 312
c71ec3f2c0da
permissions
-rw-r--r--

Update version, adapt patch, correct PID writing, correct build on newer
FreeBSD releases, and most importantly introduce new patch to try to
avoid segfault caused by multiple network interfaces with the same (or
no) address. This is common when configuring bridges and tunnels.

     1 diff -Nau src/dscp.c.orig src/dscp.c
     2 Index: src/dscp.c
     3 --- src/dscp.c.orig	2012-08-21 12:14:56.541033514 +0200
     4 +++ src/dscp.c	2012-08-21 12:15:00.668991007 +0200
     5 @@ -50,6 +50,7 @@
     6   */
     8  #if HAVE_NETINET_IN_SYSTM_H
     9 +#include <stdint.h>
    10  #include <netinet/in_systm.h>
    11  #endif
    12  #if HAVE_NETINET_IP_H
    13 diff -Nau src/nettest_bsd.c.orig src/nettest_bsd.c
    14 Index: src/nettest_bsd.c
    15 --- src/nettest_bsd.c.orig	2012-06-19 22:32:47.000000000 +0200
    16 +++ src/nettest_bsd.c	2012-08-21 12:15:36.378376195 +0200
    17 @@ -106,6 +106,7 @@
    18  #include <netinet/tcp.h>
    20  #ifdef HAVE_NETINET_SCTP_H
    21 +#include <sys/socket.h>
    22  #include <netinet/sctp.h>
    23  #endif
    25 diff -Nau src/nettest_sctp.c.orig src/nettest_sctp.c
    26 Index: src/nettest_sctp.c
    27 --- src/nettest_sctp.c.orig	2012-06-19 22:39:22.000000000 +0200
    28 +++ src/nettest_sctp.c	2012-08-21 12:16:25.314029201 +0200
    29 @@ -58,6 +58,7 @@
    30  #include <netinet/sctp.h>
    31  #include <arpa/inet.h>
    32  #include <netdb.h>
    33 +#include <strings.h>
    35  /* would seem that not all sctp.h files define a MSG_EOF, but that
    36     MSG_EOF can be the same as MSG_FIN so lets work with that

mercurial