diff options
author | Sergey Matveychuk <sem@FreeBSD.org> | 2005-03-11 13:51:32 +0000 |
---|---|---|
committer | Sergey Matveychuk <sem@FreeBSD.org> | 2005-03-11 13:51:32 +0000 |
commit | 032fc7a937a99728fd73f642950e45fb59ea55e5 (patch) | |
tree | f9cff82a48e3421e2b160246e1931048dfaf8a87 /net/vde2/files/patch-hash.c | |
parent | Unbreak: USE_KDEBASE instead of KDELIBS since libkate* is over there (diff) |
VDE is a user-mode ethernet simulation. It's quite useful for
hooking together multiple qemu instances into a single virtual
network without needing root access. It can also be used for
tunneling or other network simulation tasks.
PR: ports/76874
Submitted by: Craig Boston <craig@yekse.gank.org>
Notes
Notes:
svn path=/head/; revision=130884
Diffstat (limited to 'net/vde2/files/patch-hash.c')
-rw-r--r-- | net/vde2/files/patch-hash.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/net/vde2/files/patch-hash.c b/net/vde2/files/patch-hash.c new file mode 100644 index 000000000000..e4cdaef6e90b --- /dev/null +++ b/net/vde2/files/patch-hash.c @@ -0,0 +1,23 @@ +--- hash.c Sat Jan 29 15:02:08 2005 ++++ hash.c Sat Jan 29 15:08:18 2005 +@@ -14,7 +14,11 @@ + #include <syslog.h> + #include <sys/types.h> + #include <sys/time.h> ++#ifdef __FreeBSD__ ++#include <signal.h> ++#else + #include <sys/signal.h> ++#endif + #include "switch.h" + #include "hash.h" + +@@ -129,7 +133,7 @@ + printf("Hash: %d Addr: %02x:%02x:%02x:%02x:%02x:%02x to port: %s " + "age %ld secs\n", calc_hash(e->dst), + e->dst[0], e->dst[1], e->dst[2], e->dst[3], e->dst[4], e->dst[5], +- (*p->port_id)(e->port), (int) p->now - e->last_seen); ++ (*p->port_id)(e->port), (long) p->now - e->last_seen); + } + + void print_hash(char *(*port_id)(void *)) |