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

« back to all changes in this revision

Viewing changes to src/VBox/Devices/Network/slirp/mbuf.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:
34
34
     * Find a nice value for msize
35
35
     * XXX if_maxlinkhdr already in mtu
36
36
     */
37
 
    msize = (if_mtu>if_mru ? if_mtu : if_mru) 
38
 
          + if_maxlinkhdr + sizeof(struct m_hdr ) + 6;
 
37
    msize = (if_mtu>if_mru ? if_mtu : if_mru)
 
38
          + sizeof(struct m_hdr) + sizeof(void *)   /*pointer to the backstore*/
 
39
          + if_maxlinkhdr ;
39
40
}
40
41
 
41
42
/*
98
99
    DEBUG_CALL("m_free");
99
100
    DEBUG_ARG("m = %lx", (long )m);
100
101
 
101
 
    if(m)
 
102
    if (m)
102
103
    {
103
104
        /* Remove from m_usedlist */
104
105
        if (m->m_flags & M_USEDLIST)
121
122
            insque(pData, m,&m_freelist);
122
123
            m->m_flags = M_FREELIST; /* Clobber other flags */
123
124
        }
124
 
    } /* if(m) */
 
125
    } /* if (m) */
125
126
}
126
127
 
127
128
/*
245
246
        }
246
247
        else
247
248
        {
248
 
            if (   (char *)dat >=  m->m_dat 
 
249
            if (   (char *)dat >=  m->m_dat
249
250
                && (char *)dat <  (m->m_dat + m->m_size))
250
251
                return m;
251
252
        }