Skip to contentSkip to conversation

UML networking update

PATCH New Jeff Dike 1 participant 1 message Oct 2, 2002

lore
Share & tools
lore

Jeff Dike

author
#0 lore raw

PATCH 1/1 UML networking update

Please pull http://jdike.stearns.org:5000/net-2.5

It updates the UML networking by
adding a transport that makes a pcap packet stream look like a UML
ethernet device
cleaning up and simplifying the transport interface.

Jeff

 arch/um/config_net.in                    |    1 
 arch/um/defconfig                        |    1 
 arch/um/drivers/Makefile                 |   17 ++
 arch/um/drivers/daemon_kern.c            |   90 +++++------
 arch/um/drivers/daemon_kern.h            |    8 -
 arch/um/drivers/mcast.h                  |    2 
 arch/um/drivers/mcast_kern.c             |  127 +++++++---------
 arch/um/drivers/mcast_kern.h             |    8 -
 arch/um/drivers/net_kern.c               |  234 ++++++++++++++++++++-----------
 arch/um/drivers/net_user.c               |   22 ++
 arch/um/drivers/pcap_kern.c              |  127 ++++++++++++++++
 arch/um/drivers/pcap_user.c              |  143 ++++++++++++++++++
 arch/um/drivers/pcap_user.h              |   31 ++++
 arch/um/drivers/slip_kern.c              |   57 +++----
 arch/um/drivers/slip_kern.h              |    8 -
 arch/um/include/net_kern.h               |   19 +-
 arch/um/include/net_user.h               |    4 
 arch/um/os-Linux/drivers/etap_kern.h     |   24 ---
 arch/um/os-Linux/drivers/ethertap_kern.c |   68 +++------
 arch/um/os-Linux/drivers/tuntap.h        |    2 
 arch/um/os-Linux/drivers/tuntap_kern.c   |   65 +++-----
 arch/um/os-Linux/drivers/tuntap_kern.h   |   24 ---
 22 files changed, 690 insertions(+), 392 deletions(-)

[email protected], 2002-10-02 15:09:13-04:00, [email protected]
Changed my mind about having CONFIG_UML_NET_PCAP enabled by default in defconfig. This would cause the default config to break on any system without libpcap, so disabling it by default is better.

[email protected], 2002-10-02 15:01:35-04:00, [email protected]
Fixed a build bug with CONFIG_UML_NET_PCAP.

[email protected], 2002-10-02 12:12:16-04:00, [email protected]
Fixed a bit of the last merge which I messed up.

[email protected], 2002-10-02 11:48:30-04:00, [email protected]
Updated defconfig with CONFIG_UML_NET_PCAP.

[email protected], 2002-10-02 11:33:50-04:00, [email protected]
A bunch of network updates from 2.4.19.
Added the pcap transport, which makes a pcap packet stream look like a network interface inside UML.
Lifted the limit on the number of network interfaces. Cleaned up and simplified the transport interface.