summaryrefslogtreecommitdiff
path: root/arch/um/drivers/umcast.h
diff options
context:
space:
mode:
authorNolan Leake <nolan@sigbus.net>2011-05-24 17:13:02 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2011-05-25 08:39:41 -0700
commit4ff4d8d342fe25c4d1106fb0ffdd310a43d0ace0 (patch)
treeb41ea0ecc007f1c90eceada0db081dc0fb81700c /arch/um/drivers/umcast.h
parentd634f194d4e2e58d57927c812aca097e67a2287d (diff)
um: add ucast ethernet transport
The ucast transport is similar to the mcast transport (and, in fact, shares most of its code), only it uses UDP unicast to move packets. Obviously this is only useful for point-to-point connections between virtual ethernet devices. Signed-off-by: Nolan Leake <nolan@cumulusnetworks.com> Signed-off-by: Richard Weinberger <richard@nod.at> Cc: David Miller <davem@davemloft.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/drivers/umcast.h')
-rw-r--r--arch/um/drivers/umcast.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/um/drivers/umcast.h b/arch/um/drivers/umcast.h
new file mode 100644
index 000000000000..6f8c0fe890fb
--- /dev/null
+++ b/arch/um/drivers/umcast.h
@@ -0,0 +1,27 @@
+/*
+ * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
+ * Licensed under the GPL
+ */
+
+#ifndef __DRIVERS_UMCAST_H
+#define __DRIVERS_UMCAST_H
+
+#include "net_user.h"
+
+struct umcast_data {
+ char *addr;
+ unsigned short lport;
+ unsigned short rport;
+ void *listen_addr;
+ void *remote_addr;
+ int ttl;
+ int unicast;
+ void *dev;
+};
+
+extern const struct net_user_info umcast_user_info;
+
+extern int umcast_user_write(int fd, void *buf, int len,
+ struct umcast_data *pri);
+
+#endif