VirtualBox

Ignore:
Timestamp:
Nov 30, 2013 2:08:42 AM (11 years ago)
Author:
vboxsync
Message:

VBoxNetBaseService hides all details of internal network implementation and become responsible for supporting receiving loop. Notification of children are done via introduced interface:

virtual int processFrame(void *, size_t) = 0;
virtual int processGSO(PCPDMNETWORKGSO, size_t) = 0;
virtual int processUDP(void *, size_t) = 0;

processFrame() and processGSO() might return VERR_IGNORED, to inform base service switch to processUDP() (e.g. for DHCP needs)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/DHCP/NetworkManagerDhcp.cpp

    r49566 r49735  
    2121#include <iprt/asm.h>
    2222#include <iprt/cdefs.h>
     23#include <iprt/getopt.h>
    2324#include <iprt/net.h>
    2425#include <iprt/param.h>
     
    3839#include <VBox/intnet.h>
    3940
     41#define BASE_SERVICES_ONLY
     42#include "../NetLib/VBoxNetBaseService.h"
    4043#include "Config.h"
    4144#include "ClientDataInt.h"
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette