aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/ip/snoopy/llc.c
diff options
context:
space:
mode:
authorPetter Rodhelind <petter.rodhelind@gmail.com>2020-01-14 11:41:08 +0100
committerPetter Rodhelind <petter.rodhelind@gmail.com>2020-01-14 11:41:08 +0100
commit02d7aa8915f9c3a3288dab01f321eb94ba219e3b (patch)
treef053238978479e408a2b83571443e132f30586ab /src/cmd/ip/snoopy/llc.c
parentc0c9d8f883dfd3a7f5a74499d91bb95884b15873 (diff)
parent3d1382b98a502d0c34d5ba2c462396acc515016e (diff)
downloadplan9port-02d7aa8915f9c3a3288dab01f321eb94ba219e3b.tar.gz
plan9port-02d7aa8915f9c3a3288dab01f321eb94ba219e3b.tar.bz2
plan9port-02d7aa8915f9c3a3288dab01f321eb94ba219e3b.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/cmd/ip/snoopy/llc.c')
-rw-r--r--src/cmd/ip/snoopy/llc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cmd/ip/snoopy/llc.c b/src/cmd/ip/snoopy/llc.c
index bbc21986..09cf022d 100644
--- a/src/cmd/ip/snoopy/llc.c
+++ b/src/cmd/ip/snoopy/llc.c
@@ -1,4 +1,4 @@
-/*
+/*
* LLC. Only enough to dispatch to SNAP and IP.
*/
@@ -17,7 +17,7 @@ enum
UPoll = 0x10,
IsPoll = 0x100,
XidFi = 0x81,
-
+
SapNull = 0,
SapGlobal = 0xff,
Sap8021BI = 0x02,
@@ -40,7 +40,7 @@ static Mux p_mux[] =
// Linux gives llc -> snap not llc -> ip.
// If we don't tell snoopy about llc -> ip, then the default patterns
// like snoopy -h radiotap -f dns work better.
-// { "ip", SapIP },
+// { "ip", SapIP },
{ "snap", SapSnap },
{ 0 }
};
@@ -138,7 +138,7 @@ static int
p_seprint(Msg *m)
{
Hdr h;
-
+
memset(&h, 0, sizeof h);
if(unpackhdr(m->ps, m->pe, &h) < 0)
return -1;
@@ -156,7 +156,7 @@ p_seprint(Msg *m)
m->pr = &snap;
break;
}
- }
+ }
return 0;
}