summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2008-05-09 20:38:25 +0000
committerrwatson <rwatson@FreeBSD.org>2008-05-09 20:38:25 +0000
commitecfecd5d062d6c8359c53b691c61fd1775071ae9 (patch)
treeb3d084a205bb86f302aff430122c52eaf56004d4 /sys/net
parent7f51c7d8b8103c26ac9b266b7687d8e0268aeee9 (diff)
downloadFreeBSD-src-ecfecd5d062d6c8359c53b691c61fd1775071ae9.zip
FreeBSD-src-ecfecd5d062d6c8359c53b691c61fd1775071ae9.tar.gz
Trim trailing whitespace at ends of lines.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_loop.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c
index 67e1015..5665d65 100644
--- a/sys/net/if_loop.c
+++ b/sys/net/if_loop.c
@@ -153,29 +153,29 @@ lo_clone_create(struct if_clone *ifc, int unit, caddr_t params)
}
static int
-loop_modevent(module_t mod, int type, void *data)
-{
+loop_modevent(module_t mod, int type, void *data)
+{
- switch (type) {
- case MOD_LOAD:
+ switch (type) {
+ case MOD_LOAD:
if_clone_attach(&lo_cloner);
- break;
+ break;
- case MOD_UNLOAD:
- printf("loop module unload - not possible for this module type\n");
+ case MOD_UNLOAD:
+ printf("loop module unload - not possible for this module type\n");
return (EINVAL);
default:
return (EOPNOTSUPP);
- }
+ }
return (0);
-}
+}
-static moduledata_t loop_mod = {
- "loop",
- loop_modevent,
+static moduledata_t loop_mod = {
+ "loop",
+ loop_modevent,
0
-};
+};
DECLARE_MODULE(loop, loop_mod, SI_SUB_PROTO_IFATTACHDOMAIN, SI_ORDER_ANY);
@@ -239,7 +239,7 @@ if_simloop(struct ifnet *ifp, struct mbuf *m, int af, int hlen)
/*
* Let BPF see incoming packet in the following manner:
- * - Emulated packet loopback for a simplex interface
+ * - Emulated packet loopback for a simplex interface
* (net/if_ethersubr.c)
* -> passes it to ifp's BPF
* - IPv4/v6 multicast packet loopback (netinet(6)/ip(6)_output.c)
@@ -275,8 +275,8 @@ if_simloop(struct ifnet *ifp, struct mbuf *m, int af, int hlen)
*/
if (mtod(m, vm_offset_t) & 3) {
KASSERT(hlen >= 3, ("if_simloop: hlen too small"));
- bcopy(m->m_data,
- (char *)(mtod(m, vm_offset_t)
+ bcopy(m->m_data,
+ (char *)(mtod(m, vm_offset_t)
- (mtod(m, vm_offset_t) & 3)),
m->m_len);
m->m_data -= (mtod(m,vm_offset_t) & 3);
OpenPOWER on IntegriCloud