Skip to content

Commit

Permalink
um: add ucast ethernet transport
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Richard Weinberger <[email protected]>
Cc: David Miller <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
nolanl authored and torvalds committed May 25, 2011
1 parent d634f19 commit 4ff4d8d
Show file tree
Hide file tree
Showing 8 changed files with 413 additions and 311 deletions.
10 changes: 10 additions & 0 deletions Documentation/virtual/uml/UserModeLinux-HOWTO.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1182,6 +1182,16 @@
forge.net/> and explains these in detail, as well as
some other issues.

There is also a related point-to-point only "ucast" transport.
This is useful when your network does not support multicast, and
all network connections are simple point to point links.

The full set of command line options for this transport are


ethn=ucast,ethernet address,remote address,listen port,remote port




66..66.. TTUUNN//TTAAPP wwiitthh tthhee uummll__nneett hheellppeerr
Expand Down
4 changes: 2 additions & 2 deletions arch/um/drivers/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
slip-objs := slip_kern.o slip_user.o
slirp-objs := slirp_kern.o slirp_user.o
daemon-objs := daemon_kern.o daemon_user.o
mcast-objs := mcast_kern.o mcast_user.o
umcast-objs := umcast_kern.o umcast_user.o
net-objs := net_kern.o net_user.o
mconsole-objs := mconsole_kern.o mconsole_user.o
hostaudio-objs := hostaudio_kern.o
Expand Down Expand Up @@ -44,7 +44,7 @@ obj-$(CONFIG_UML_NET_SLIP) += slip.o slip_common.o
obj-$(CONFIG_UML_NET_SLIRP) += slirp.o slip_common.o
obj-$(CONFIG_UML_NET_DAEMON) += daemon.o
obj-$(CONFIG_UML_NET_VDE) += vde.o
obj-$(CONFIG_UML_NET_MCAST) += mcast.o
obj-$(CONFIG_UML_NET_MCAST) += umcast.o
obj-$(CONFIG_UML_NET_PCAP) += pcap.o
obj-$(CONFIG_UML_NET) += net.o
obj-$(CONFIG_MCONSOLE) += mconsole.o
Expand Down
24 changes: 0 additions & 24 deletions arch/um/drivers/mcast.h

This file was deleted.

120 changes: 0 additions & 120 deletions arch/um/drivers/mcast_kern.c

This file was deleted.

165 changes: 0 additions & 165 deletions arch/um/drivers/mcast_user.c

This file was deleted.

27 changes: 27 additions & 0 deletions arch/um/drivers/umcast.h
Original file line number Diff line number Diff line change
@@ -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
Loading

0 comments on commit 4ff4d8d

Please sign in to comment.