~ubuntu-branches/ubuntu/vivid/virtualbox-ose/vivid

« back to all changes in this revision

Viewing changes to src/VBox/Devices/Network/slirp/tcp_output.c

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2009-10-13 23:06:00 UTC
  • mfrom: (0.3.2 upstream) (0.1.12 sid)
  • Revision ID: james.westby@ubuntu.com-20091013230600-xhu2pwizq0wo63l9
Tags: 3.0.8-dfsg-1ubuntu1
* Merge from debian unstable (LP: #444812), remaining changes:
  - Enable DKMS support on virtualbox host and guest modules (LP: #267097)
    - Drop virtualbox-ose{-guest,}-modules-* package templates
    - Recommend *-source instead of *-modules packages
    - Replace error messages related to missing/mismatched
      kernel module accordingly
  - Autoload kernel module
    - LOAD_VBOXDRV_MODULE=1 in virtualbox-ose.default
  - Disable update action
    - patches/u01-disable-update-action.dpatch
  - Virtualbox should go in Accessories, not in System tools (LP: #288590)
    - virtualbox-ose-qt.files/virtualbox-ose.desktop
  - Add apport hook
    - virtualbox-ose.files/source_virtualbox-ose.py
    - virtualbox-ose.install
  - Add launchpad integration
    - control
    - lpi-bug.xpm
    - patches/u02-lp-integration.dpatch
* Try to remove existing dkms modules before adding the new modules
  (LP: #434503)
  - debian/virtualbox-ose-source.postinst
  - debian/virtualbox-ose-guest-source.postinst
* Don't fail if dkms modules have already been removed
  - debian/virtualbox-ose-source.prerm
  - debian/virtualbox-ose-guest-source.prerm

Show diffs side-by-side

added added

removed removed

Lines of Context:
214
214
         * taking into account that we are limited by
215
215
         * TCP_MAXWIN << tp->rcv_scale.
216
216
         */
217
 
        long adv = min(win, 
218
 
                       (long)TCP_MAXWIN << tp->rcv_scale) - 
 
217
        long adv = min(win,
 
218
                       (long)TCP_MAXWIN << tp->rcv_scale) -
219
219
                       (tp->rcv_adv - tp->rcv_nxt);
220
220
 
221
221
        if (adv >= (long) (2 * tp->t_maxseg))
512
512
     * In transmit state, time the transmission and arrange for
513
513
     * the retransmit.  In persist state, just set snd_max.
514
514
     */
515
 
    if (tp->t_force == 0 || tp->t_timer[TCPT_PERSIST] == 0) 
 
515
    if (tp->t_force == 0 || tp->t_timer[TCPT_PERSIST] == 0)
516
516
    {
517
517
        tcp_seq startseq = tp->snd_nxt;
518
518
 
601
601
        }
602
602
#endif
603
603
#ifdef VBOX_WITH_SLIRP_ALIAS
604
 
        if(so->so_la != NULL)
 
604
        if (so->so_la != NULL)
605
605
            m->m_la = so->so_la;
606
606
#endif
607
607
        error = ip_output(pData, so, m);