VirtualBox

Ignore:
Timestamp:
Jun 12, 2011 6:37:56 PM (13 years ago)
Author:
vboxsync
Message:

Ran the source code massager (scm).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/freebsd/VBoxNetFlt-freebsd.c

    r36385 r37423  
    8484
    8585/** Netgraph node type */
    86 #define NG_VBOXNETFLT_NODE_TYPE    "vboxnetflt"
     86#define NG_VBOXNETFLT_NODE_TYPE     "vboxnetflt"
    8787/** Netgraph message cookie */
    88 #define NGM_VBOXNETFLT_COOKIE    0x56424f58
     88#define NGM_VBOXNETFLT_COOKIE       0x56424f58
    8989
    9090/** Input netgraph hook name */
    91 #define NG_VBOXNETFLT_HOOK_IN    "input"
     91#define NG_VBOXNETFLT_HOOK_IN       "input"
    9292/** Output netgraph hook name */
    93 #define NG_VBOXNETFLT_HOOK_OUT    "output"
     93#define NG_VBOXNETFLT_HOOK_OUT      "output"
    9494
    9595/** mbuf tag identifier */
    96 #define MTAG_VBOX        0x56424f58
     96#define MTAG_VBOX                   0x56424f58
    9797/** mbuf packet tag */
    98 #define PACKET_TAG_VBOX        128
     98#define PACKET_TAG_VBOX             128
    9999
    100100#if defined(__FreeBSD_version) && __FreeBSD_version >= 800500
     
    102102# include <net/vnet.h>
    103103
    104 # define VBOXCURVNET_SET(arg)           CURVNET_SET_QUIET(arg)
    105 # define VBOXCURVNET_SET_FROM_UCRED()   VBOXCURVNET_SET(CRED_TO_VNET(curthread->td_ucred))
    106 # define VBOXCURVNET_RESTORE()          CURVNET_RESTORE()
     104# define VBOXCURVNET_SET(arg)           CURVNET_SET_QUIET(arg)
     105# define VBOXCURVNET_SET_FROM_UCRED()   VBOXCURVNET_SET(CRED_TO_VNET(curthread->td_ucred))
     106# define VBOXCURVNET_RESTORE()          CURVNET_RESTORE()
    107107
    108108#else /* !defined(__FreeBSD_version) || __FreeBSD_version < 800500 */
     
    128128static struct ng_type ng_vboxnetflt_typestruct =
    129129{
    130     .version =    NG_ABI_VERSION,
    131     .name =        NG_VBOXNETFLT_NODE_TYPE,
    132     .mod_event =    vboxnetflt_modevent,
    133     .constructor =    ng_vboxnetflt_constructor,
    134     .rcvmsg =    ng_vboxnetflt_rcvmsg,
    135     .shutdown =    ng_vboxnetflt_shutdown,
    136     .newhook =    ng_vboxnetflt_newhook,
    137     .rcvdata =    ng_vboxnetflt_rcvdata,
    138     .disconnect =     ng_vboxnetflt_disconnect,
    139     .cmdlist =    ng_vboxnetflt_cmdlist,
     130    .version    = NG_ABI_VERSION,
     131    .name       = NG_VBOXNETFLT_NODE_TYPE,
     132    .mod_event  = vboxnetflt_modevent,
     133    .constructor= ng_vboxnetflt_constructor,
     134    .rcvmsg     = ng_vboxnetflt_rcvmsg,
     135    .shutdown   = ng_vboxnetflt_shutdown,
     136    .newhook    = ng_vboxnetflt_newhook,
     137    .rcvdata    = ng_vboxnetflt_rcvdata,
     138    .disconnect = ng_vboxnetflt_disconnect,
     139    .cmdlist    = ng_vboxnetflt_cmdlist,
    140140};
    141141NETGRAPH_INIT(vboxnetflt, &ng_vboxnetflt_typestruct);
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