aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/ip/snoopy/ip6.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/ip6.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/ip6.c')
-rw-r--r--[-rwxr-xr-x]src/cmd/ip/snoopy/ip6.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/ip/snoopy/ip6.c b/src/cmd/ip/snoopy/ip6.c
index 7187cda7..ba9be993 100755..100644
--- a/src/cmd/ip/snoopy/ip6.c
+++ b/src/cmd/ip/snoopy/ip6.c
@@ -132,7 +132,7 @@ enum
Ot, /* type */
};
-static Field p_fields[] =
+static Field p_fields[] =
{
{"s", Fv6ip, Os, "source address", } ,
{"d", Fv6ip, Od, "destination address", } ,
@@ -167,7 +167,7 @@ v6hdrlen(Hdr *h)
int pktlen = IP6HDR + NetS(h->length);
uchar nexthdr = h->proto;
uchar *pkt = (uchar*) h;
-
+
pkt += len;
plen = len;
@@ -176,7 +176,7 @@ v6hdrlen(Hdr *h)
if (nexthdr == FRAG_HDR)
len = FRAG_HSZ;
- else
+ else
len = ( ((int) *(pkt+1)) + 1) * 8;
if (plen + len > pktlen)
@@ -226,7 +226,7 @@ v6hdr_seprint(Msg *m)
int pktlen = IP6HDR + NetS(h->length);
uchar nexthdr = h->proto;
int plen;
-
+
pkt += len;
plen = len;