aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/ip/snoopy/icmp6.c
diff options
context:
space:
mode:
authorDan Cross <cross@gajendra.net>2020-01-10 14:44:21 +0000
committerDan Cross <cross@gajendra.net>2020-01-10 14:54:30 +0000
commitfa325e9b42b0bdfb48857d1958d9fb7ceac55151 (patch)
tree81d26256d152435135bcb1ae43121979a49f5f2b /src/cmd/ip/snoopy/icmp6.c
parent77a0a5b5194d4441c86de097f2aae297cb75e2c2 (diff)
downloadplan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.tar.gz
plan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.tar.bz2
plan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.zip
Trivial changes: whitespace and modes.
Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross <cross@gajendra.net>
Diffstat (limited to 'src/cmd/ip/snoopy/icmp6.c')
-rw-r--r--[-rwxr-xr-x]src/cmd/ip/snoopy/icmp6.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/cmd/ip/snoopy/icmp6.c b/src/cmd/ip/snoopy/icmp6.c
index 9ba74939..9ede92a5 100755..100644
--- a/src/cmd/ip/snoopy/icmp6.c
+++ b/src/cmd/ip/snoopy/icmp6.c
@@ -22,14 +22,14 @@ enum
Ot, /* type */
Op, /* next protocol */};
-static Field p_fields[] =
+static Field p_fields[] =
{
{"t", Fnum, Ot, "type", } ,
{0}
};
enum
-{
+{
/* ICMPv6 types */
EchoReply = 0,
UnreachableV6 = 1,
@@ -114,7 +114,7 @@ static char *parpcode[] =
[2] "unrecognized IPv6 option encountered",
[3] "icmp par prob: unknown code"
};
-enum
+enum
{
sll = 1,
tll = 2,
@@ -123,7 +123,7 @@ enum
mtu = 5
};
-static char *icmp6opts[256] =
+static char *icmp6opts[256] =
{
[0] "unknown opt",
[1] "sll_addr",
@@ -206,7 +206,7 @@ opt_seprint(Msg *m)
case sll:
case tll:
- if ((pktsz < osz) || (osz != 8)) {
+ if ((pktsz < osz) || (osz != 8)) {
p = seprint(p, e, "\n option=%s bad size=%d", opt, osz);
m->pr = &dump;
return p;
@@ -217,7 +217,7 @@ opt_seprint(Msg *m)
break;
case pref:
- if ((pktsz < osz) || (osz != 32)) {
+ if ((pktsz < osz) || (osz != 32)) {
p = seprint(p, e, "\n option=%s: bad size=%d", opt, osz);
m->pr = &dump;
return p;
@@ -235,11 +235,11 @@ opt_seprint(Msg *m)
NetL(a+12)!=0);
pktsz -= osz;
- a += osz;
+ a += osz;
break;
case redir:
- if (pktsz < osz) {
+ if (pktsz < osz) {
p = seprint(p, e, "\n option=%s: bad size=%d", opt, osz);
m->pr = &dump;
return p;
@@ -248,11 +248,11 @@ opt_seprint(Msg *m)
p = seprint(p, e, "\n option=%s len %d", opt, osz);
a += osz;
m->ps = a;
- return p;
+ return p;
break;
case mtu:
- if ((pktsz < osz) || (osz != 8)) {
+ if ((pktsz < osz) || (osz != 8)) {
p = seprint(p, e, "\n option=%s: bad size=%d", opt, osz);
m->pr = &dump;
return p;