From: "Martin Hundebøll" <martin@hundeboll.net>
To: Philipp Psurek <philipp.psurek@gmail.com>
Cc: b.a.t.m.a.n@lists.open-mesh.org
Subject: Re: [B.A.T.M.A.N.] [PATCH] batman-adv: Check size information when reassembling fragments
Date: Sun, 30 Nov 2014 14:40:04 +0100 [thread overview]
Message-ID: <547B1E34.3020207@hundeboll.net> (raw)
In-Reply-To: <1417354504.8367.14.camel@katze>
Hi Philipp,
On 2014-11-30 14:35, Philipp Psurek wrote:
> Thanks Martin, hi all
>
> There has been a crash with fragmentation disabled (I save us the
> trace-back) so I did like you told me plus more:
>
> # git clone git://git.open-mesh.org/batman-adv.git
> # cd batman-adv/
> # patch < ../2-frag_debug_size.patch
> patching file fragmentation.c
> Hunk #1 succeeded at 217 (offset -3 lines).
> Hunk #2 succeeded at 243 (offset -3 lines).
> Hunk #3 succeeded at 260 with fuzz 2 (offset -3 lines).
> Hunk #4 succeeded at 288 (offset -3 lines).
> patch unexpectedly ends in middle of line
> Hunk #5 succeeded at 301 with fuzz 1 (offset -3 lines).
> # make
> [ … ]
> make: *** [all] Error 2
> # LANG=C make
> /usr/src/batman-adv/gen-compat-autoconf.sh /usr/src/batman-adv/compat-autoconf.h
> make -C /lib/modules/3.17.4-gentoo/build M=/usr/src/batman-adv PWD=/usr/src/batman-adv modules
> make[1]: Entering directory '/usr/src/linux-3.17.4-gentoo'
> CC [M] /usr/src/batman-adv/fragmentation.o
> /usr/src/batman-adv/fragmentation.c: In function 'batadv_frag_merge_packets':
> /usr/src/batman-adv/fragmentation.c:309:20: error: 'struct batadv_frag_table_entry' has no member named 'total_size'
> scripts/Makefile.build:257: recipe for target '/usr/src/batman-adv/fragmentation.o' failed
> make[2]: *** [/usr/src/batman-adv/fragmentation.o] Error 1
> Makefile:1373: recipe for target '_module_/usr/src/batman-adv' failed
> make[1]: *** [_module_/usr/src/batman-adv] Error 2
> make[1]: Leaving directory '/usr/src/linux-3.17.4-gentoo'
> Makefile:53: recipe for target 'all' failed
> make: *** [all] Error 2
>
> I learned something here so I also applied this:
> diff --git a/types.h b/types.h
> index 462a70c..c4d7d24 100644
> --- a/types.h
> +++ b/types.h
> @@ -132,6 +132,7 @@ struct batadv_orig_ifinfo {
> * @timestamp: time (jiffie) of last received fragment
> * @seqno: sequence number of the fragments in the list
> * @size: accumulated size of packets in list
> + * @total_size: expected size of the assembled packet
> */
> struct batadv_frag_table_entry {
> struct hlist_head head;
> @@ -139,6 +140,7 @@ struct batadv_frag_table_entry {
> unsigned long timestamp;
> uint16_t seqno;
> uint16_t size;
> + uint16_t total_size;
> };
>
> /**
> --
Ah, yes. Forgot about Sven's patch in my tree. Thx for solving it.
Without NC and l is ok.
Thanks!
--
Kind Regards,
Martin Hundebøll
Frederiks Allé 99A, 1.th
8000 Aarhus C
+45 61 65 54 61
martin@hundeboll.net
next prev parent reply other threads:[~2014-11-30 13:40 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-25 18:06 [B.A.T.M.A.N.] [PATCH] batman-adv: Check size information when reassembling fragments Sven Eckelmann
2014-11-25 18:11 ` Christian Huldt
2014-11-25 18:39 ` Martin Hundebøll
2014-11-25 21:16 ` Philipp Psurek
2014-11-30 10:36 ` Philipp Psurek
2014-11-30 11:20 ` Philipp Psurek
2014-11-30 12:26 ` Martin Hundebøll
2014-11-30 13:35 ` Philipp Psurek
2014-11-30 13:40 ` Martin Hundebøll [this message]
2014-11-30 14:07 ` Philipp Psurek
2014-11-30 17:04 ` Philipp Psurek
2014-11-30 18:11 ` Philipp Psurek
2014-11-30 18:35 ` Philipp Psurek
2014-11-30 20:04 ` Philipp Psurek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=547B1E34.3020207@hundeboll.net \
--to=martin@hundeboll.net \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
--cc=philipp.psurek@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox