summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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