summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2007-03-26 09:10:28 +0000
committeryar <yar@FreeBSD.org>2007-03-26 09:10:28 +0000
commit0c5dfb27b3d5e9c116579201c8000ed376480b70 (patch)
tree47ebbf61f9c4540ff32a0b05835acbc2009ec0a7
parent1e010686dab7b6189a30ef14511acf3131e20cab (diff)
downloadFreeBSD-src-0c5dfb27b3d5e9c116579201c8000ed376480b70.zip
FreeBSD-src-0c5dfb27b3d5e9c116579201c8000ed376480b70.tar.gz
Fix some statements in disc(4) and about it:
- ifnet is no more embedded in softc; - the interface name is `disc', not `ds'.
-rw-r--r--sys/conf/NOTES4
-rw-r--r--sys/net/if_disc.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/conf/NOTES b/sys/conf/NOTES
index 5bd3493..c34d48f 100644
--- a/sys/conf/NOTES
+++ b/sys/conf/NOTES
@@ -736,7 +736,7 @@ device mn # Munich32x/Falc54 Nx64kbit/sec cards.
# simultaneous BPF clients programs runnable. DHCP requires bpf.
# The `disc' device implements a minimal network interface,
# which throws away all packets sent and never receives any. It is
-# included for testing purposes. This shows up as the `ds' interface.
+# included for testing and benchmarking purposes.
# The `edsc' device implements a minimal Ethernet interface,
# which discards all packets sent and receives none.
# The `tap' device is a pty-like virtual Ethernet interface
@@ -783,7 +783,7 @@ device arcnet #Generic Arcnet
device sppp #Generic Synchronous PPP
device loop #Network loopback device
device bpf #Berkeley packet filter
-device disc #Discard device (ds0, ds1, etc)
+device disc #Discard device based on loopback
device edsc #Ethernet discard device
device tap #Virtual Ethernet driver
device tun #Tunnel driver (ppp(8), nos-tun(8))
diff --git a/sys/net/if_disc.c b/sys/net/if_disc.c
index aa76d70..51f05d5 100644
--- a/sys/net/if_disc.c
+++ b/sys/net/if_disc.c
@@ -62,7 +62,7 @@
#define DISCNAME "disc"
struct disc_softc {
- struct ifnet *sc_ifp; /* must be first */
+ struct ifnet *sc_ifp;
};
static int discoutput(struct ifnet *, struct mbuf *,
OpenPOWER on IntegriCloud