~siretart/ubuntu/raring/virtualbox-ose/bug.1101867

« back to all changes in this revision

Viewing changes to src/VBox/NetworkServices/DHCP/VBoxNetDHCP.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-01-30 23:27:25 UTC
  • mfrom: (0.3.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20110130232725-2ouajjd2ggdet0zd
Tags: 4.0.2-dfsg-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add Apport hook.
    - debian/virtualbox-ose.files/source_virtualbox-ose.py
    - debian/virtualbox-ose.install
  - Drop *-source packages.
* Drop ubuntu-01-fix-build-gcc45.patch, fixed upstream.
* Drop ubuntu-02-as-needed.patch, added to the Debian package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: VBoxNetDHCP.cpp $ */
 
1
/* $Id: VBoxNetDHCP.cpp 35346 2010-12-27 16:13:13Z vboxsync $ */
2
2
/** @file
3
3
 * VBoxNetDHCP - DHCP Service for connecting to IntNet.
4
4
 */
39
39
#include <VBox/sup.h>
40
40
#include <VBox/intnet.h>
41
41
#include <VBox/intnetinline.h>
42
 
#include <VBox/vmm.h>
 
42
#include <VBox/vmm/vmm.h>
43
43
#include <VBox/version.h>
44
44
 
45
45
#include "../NetLib/VBoxNetLib.h"
60
60
/**
61
61
 * DHCP configuration item.
62
62
 *
63
 
 * This is all public data because I'm too lazy to do it propertly right now.
 
63
 * This is all public data because I'm too lazy to do it properly right now.
64
64
 */
65
65
class VBoxNetDhcpCfg
66
66
{
1360
1360
    /**
1361
1361
     * Begin an option.
1362
1362
     *
1363
 
     * @returns true on succes, false if we're out of space.
 
1363
     * @returns true on success, false if we're out of space.
1364
1364
     *
1365
1365
     * @param   uOption     The option number.
1366
1366
     * @param   cb          The amount of data.
1558
1558
     * Adds the terminating END option.
1559
1559
     *
1560
1560
     * The END will always be added as we're reserving room for it, however, we
1561
 
     * might've dropped previous options due to overflows and that is what the
 
1561
     * might have dropped previous options due to overflows and that is what the
1562
1562
     * return status indicates.
1563
1563
     *
1564
1564
     * @returns true on success, false on a (previous) overflow.