<h3>Contribution description</h3>
<p>While implementing <a href="https://tools.ietf.org/html/draft-ietf-6lo-fragment-recovery-05" rel="nofollow">selective fragment recovery</a> I ran into the problem of the reassembly buffer being bound to tight to classic reassembly, which makes it basically impossible to use without it. As a first preparation step to factor it out, I moved all its public functions to a new sub-module <code>gnrc_sixlowpan_frag_rb</code>. This should simplify the review greatly, as only move stuff around for now (which you can confirm if you activate <a href="https://git-scm.com/docs/git-config#Documentation/git-config.txt-diffcolorMoved" rel="nofollow">diff.colorMoved</a> in your git-config.</p>

<h3>Testing procedure</h3>
<p>Verify that apart from some header changes and module definition stuff I only move stuff around (I'm assuming the RIOT-OS/RIOT remote is called <code>upstream</code> on your system)</p>
<div class="highlight highlight-source-shell"><pre>git fetch upstream
git diff --color-moved <span class="pl-s"><span class="pl-pds">$(</span>git merge-base upstream/master HEAD<span class="pl-pds">)</span></span></pre></div>
<p><code>tests/gnrc_sixlowpan_frag</code> should still work:</p>
<div class="highlight highlight-source-shell"><pre>BOARD=<span class="pl-s"><span class="pl-pds">"</span><pick one><span class="pl-pds">"</span></span> make -C tests/gnrc_sixlowpan_frag flash <span class="pl-c1">test</span></pre></div>

<h3>Issues/PRs references</h3>
<p>None so far</p>


<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/RIOT-OS/RIOT/pull/12318'>https://github.com/RIOT-OS/RIOT/pull/12318</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>gnrc_sixlowpan_frag: move reassembly buffer to its own header</li>
  <li>gnrc_sixlowpan_frag: move public rbuf functions to their own module</li>
  <li>gnrc_sixlowpan: include reassembly buffer only where needed</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/12318/files#diff-0">Makefile.dep</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/12318/files#diff-1">sys/Makefile.include</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/12318/files#diff-2">sys/include/net/gnrc/sixlowpan/frag.h</a>
    (106)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/12318/files#diff-3">sys/include/net/gnrc/sixlowpan/frag/rb.h</a>
    (140)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/12318/files#diff-4">sys/include/net/gnrc/sixlowpan/frag/vrb.h</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/12318/files#diff-5">sys/net/gnrc/Makefile</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/12318/files#diff-6">sys/net/gnrc/network_layer/sixlowpan/frag/gnrc_sixlowpan_frag.c</a>
    (57)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/12318/files#diff-7">sys/net/gnrc/network_layer/sixlowpan/frag/rb/Makefile</a>
    (3)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/12318/files#diff-8">sys/net/gnrc/network_layer/sixlowpan/frag/rb/gnrc_sixlowpan_frag_rb.c</a>
    (85)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/12318/files#diff-9">sys/net/gnrc/network_layer/sixlowpan/frag/rbuf.h</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/12318/files#diff-10">sys/net/gnrc/network_layer/sixlowpan/gnrc_sixlowpan.c</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/12318/files#diff-11">sys/net/gnrc/network_layer/sixlowpan/iphc/gnrc_sixlowpan_iphc.c</a>
    (2)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/12318.patch'>https://github.com/RIOT-OS/RIOT/pull/12318.patch</a></li>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/12318.diff'>https://github.com/RIOT-OS/RIOT/pull/12318.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/12318?email_source=notifications&email_token=ABE7WYDYLYDS2YJSSSJGJ2TQLYZ4TA5CNFSM4I3IQTZKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HOGOAVA">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYD2V2SHPB24D2PNK4LQLYZ4TANCNFSM4I3IQTZA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYCFJVIXJ7LJPIPU4FTQLYZ4TA5CNFSM4I3IQTZKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HOGOAVA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/12318?email_source=notifications\u0026email_token=ABE7WYDYLYDS2YJSSSJGJ2TQLYZ4TA5CNFSM4I3IQTZKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HOGOAVA",
"url": "https://github.com/RIOT-OS/RIOT/pull/12318?email_source=notifications\u0026email_token=ABE7WYDYLYDS2YJSSSJGJ2TQLYZ4TA5CNFSM4I3IQTZKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HOGOAVA",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>