Changeset 57358 in vbox for trunk/src/VBox/HostDrivers/VBoxNetFlt
- Timestamp:
- Aug 14, 2015 3:16:38 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 102121
- Location:
- trunk/src/VBox/HostDrivers/VBoxNetFlt
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/VBoxNetFlt.c
r56293 r57358 245 245 */ 246 246 247 /******************************************************************************* 248 * Header Files * 249 *******************************************************************************/ 247 248 /********************************************************************************************************************************* 249 * Header Files * 250 *********************************************************************************************************************************/ 250 251 #define LOG_GROUP LOG_GROUP_NET_FLT_DRV 251 252 #include "VBoxNetFltInternal.h" … … 264 265 265 266 266 /******************************************************************************* 267 * Defined Constants And Macros *268 ******************************************************************************* /267 /********************************************************************************************************************************* 268 * Defined Constants And Macros * 269 *********************************************************************************************************************************/ 269 270 #define IFPORT_2_VBOXNETFLTINS(pIfPort) \ 270 271 ( (PVBOXNETFLTINS)((uint8_t *)pIfPort - RT_OFFSETOF(VBOXNETFLTINS, MyPort)) ) -
trunk/src/VBox/HostDrivers/VBoxNetFlt/darwin/VBoxNetFlt-darwin.cpp
r57253 r57358 16 16 */ 17 17 18 /******************************************************************************* 19 * Header Files * 20 *******************************************************************************/ 18 19 /********************************************************************************************************************************* 20 * Header Files * 21 *********************************************************************************************************************************/ 21 22 #define LOG_GROUP LOG_GROUP_NET_FLT_DRV 22 23 #include "../../../Runtime/r0drv/darwin/the-darwin-kernel.h" … … 66 67 67 68 68 /******************************************************************************* 69 * Defined Constants And Macros *70 ******************************************************************************* /69 /********************************************************************************************************************************* 70 * Defined Constants And Macros * 71 *********************************************************************************************************************************/ 71 72 /** The maximum number of SG segments. 72 73 * Used to prevent stack overflow and similar bad stuff. */ … … 84 85 85 86 86 /******************************************************************************* 87 * Internal Functions *88 ******************************************************************************* /87 /********************************************************************************************************************************* 88 * Internal Functions * 89 *********************************************************************************************************************************/ 89 90 RT_C_DECLS_BEGIN 90 91 static kern_return_t VBoxNetFltDarwinStart(struct kmod_info *pKModInfo, void *pvData); … … 95 96 96 97 97 /******************************************************************************* 98 * Structures and Typedefs *99 ******************************************************************************* /98 /********************************************************************************************************************************* 99 * Structures and Typedefs * 100 *********************************************************************************************************************************/ 100 101 /** 101 102 * The mbuf tag data. … … 117 118 118 119 119 /******************************************************************************* 120 * Global Variables *121 ******************************************************************************* /120 /********************************************************************************************************************************* 121 * Global Variables * 122 *********************************************************************************************************************************/ 122 123 /** 123 124 * Declare the module stuff. -
trunk/src/VBox/HostDrivers/VBoxNetFlt/freebsd/VBoxNetFlt-freebsd.c
r52618 r57358 29 29 */ 30 30 31 /******************************************************************************* 32 * Header Files * 33 *******************************************************************************/ 31 32 /********************************************************************************************************************************* 33 * Header Files * 34 *********************************************************************************************************************************/ 34 35 #include <sys/param.h> 35 36 #undef PVM -
trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
r57315 r57358 16 16 */ 17 17 18 /******************************************************************************* 19 * Header Files * 20 *******************************************************************************/ 18 19 /********************************************************************************************************************************* 20 * Header Files * 21 *********************************************************************************************************************************/ 21 22 #define LOG_GROUP LOG_GROUP_NET_FLT_DRV 22 23 #define VBOXNETFLT_LINUX_NO_XMIT_QUEUE … … 73 74 74 75 75 /******************************************************************************* 76 * Defined Constants And Macros *77 ******************************************************************************* /76 /********************************************************************************************************************************* 77 * Defined Constants And Macros * 78 *********************************************************************************************************************************/ 78 79 #define VBOX_FLT_NB_TO_INST(pNB) RT_FROM_MEMBER(pNB, VBOXNETFLTINS, u.s.Notifier) 79 80 #define VBOX_FLT_PT_TO_INST(pPT) RT_FROM_MEMBER(pPT, VBOXNETFLTINS, u.s.PacketType) … … 171 172 #endif 172 173 173 /******************************************************************************* 174 * Internal Functions * 175 *******************************************************************************/ 174 175 /********************************************************************************************************************************* 176 * Internal Functions * 177 *********************************************************************************************************************************/ 176 178 static int VBoxNetFltLinuxInit(void); 177 179 static void VBoxNetFltLinuxUnload(void); … … 179 181 180 182 181 /******************************************************************************* 182 * Global Variables *183 ******************************************************************************* /183 /********************************************************************************************************************************* 184 * Global Variables * 185 *********************************************************************************************************************************/ 184 186 /** 185 187 * The (common) global data. -
trunk/src/VBox/HostDrivers/VBoxNetFlt/solaris/VBoxNetFlt-solaris.c
r56293 r57358 25 25 */ 26 26 27 /******************************************************************************* 28 * Header Files * 29 *******************************************************************************/ 27 28 /********************************************************************************************************************************* 29 * Header Files * 30 *********************************************************************************************************************************/ 30 31 #define LOG_GROUP LOG_GROUP_NET_FLT_DRV 31 32 #include <VBox/log.h> … … 85 86 #include "../VBoxNetFltInternal.h" 86 87 87 /******************************************************************************* 88 * Defined Constants And Macros * 89 *******************************************************************************/ 88 89 /********************************************************************************************************************************* 90 * Defined Constants And Macros * 91 *********************************************************************************************************************************/ 90 92 /** The module name. */ 91 93 #define DEVICE_NAME "vboxflt" … … 115 117 typedef struct VLANHEADER *PVLANHEADER; 116 118 117 /******************************************************************************* 118 * Global Functions * 119 *******************************************************************************/ 119 120 /********************************************************************************************************************************* 121 * Global Functions * 122 *********************************************************************************************************************************/ 120 123 /** 121 124 * Stream Driver hooks. … … 135 138 136 139 137 /******************************************************************************* 138 * Structures and Typedefs *139 ******************************************************************************* /140 /********************************************************************************************************************************* 141 * Structures and Typedefs * 142 *********************************************************************************************************************************/ 140 143 /** 141 144 * Streams: module info. … … 350 353 351 354 352 /******************************************************************************* 353 * Internal Functions *354 ******************************************************************************* /355 /********************************************************************************************************************************* 356 * Internal Functions * 357 *********************************************************************************************************************************/ 355 358 static int vboxNetFltSolarisSetRawMode(vboxnetflt_promisc_stream_t *pPromiscStream); 356 359 /* static int vboxNetFltSolarisSetFastMode(queue_t *pQueue); */ … … 376 379 377 380 378 /******************************************************************************* 379 * Global Variables *380 ******************************************************************************* /381 /********************************************************************************************************************************* 382 * Global Variables * 383 *********************************************************************************************************************************/ 381 384 /** Global device info handle. */ 382 385 static dev_info_t *g_pVBoxNetFltSolarisDip = NULL; -
trunk/src/VBox/HostDrivers/VBoxNetFlt/solaris/VBoxNetFltBow-solaris.c
r56293 r57358 25 25 */ 26 26 27 /******************************************************************************* 28 * Header Files * 29 *******************************************************************************/ 27 28 /********************************************************************************************************************************* 29 * Header Files * 30 *********************************************************************************************************************************/ 30 31 #define LOG_GROUP LOG_GROUP_NET_FLT_DRV 31 32 #include <VBox/log.h> … … 67 68 #include "../VBoxNetFltInternal.h" 68 69 69 /******************************************************************************* 70 * Defined Constants And Macros * 71 *******************************************************************************/ 70 71 /********************************************************************************************************************************* 72 * Defined Constants And Macros * 73 *********************************************************************************************************************************/ 72 74 /** The module name. */ 73 75 #define DEVICE_NAME "vboxbow" … … 114 116 115 117 116 /******************************************************************************* 117 * Kernel Entry Hooks *118 ******************************************************************************* /118 /********************************************************************************************************************************* 119 * Kernel Entry Hooks * 120 *********************************************************************************************************************************/ 119 121 LOCAL int VBoxNetFltSolarisAttach(dev_info_t *pDip, ddi_attach_cmd_t enmCmd); 120 122 LOCAL int VBoxNetFltSolarisDetach(dev_info_t *pDip, ddi_detach_cmd_t enmCmd); … … 122 124 123 125 124 /******************************************************************************* 125 * Structures and Typedefs *126 ******************************************************************************* /126 /********************************************************************************************************************************* 127 * Structures and Typedefs * 128 *********************************************************************************************************************************/ 127 129 /** 128 130 * cb_ops: for drivers that support char/block entry points … … 236 238 237 239 238 /******************************************************************************* 239 * Global Variables *240 ******************************************************************************* /240 /********************************************************************************************************************************* 241 * Global Variables * 242 *********************************************************************************************************************************/ 241 243 /** Global Device handle we only support one instance. */ 242 244 static dev_info_t *g_pVBoxNetFltSolarisDip = NULL; … … 247 249 248 250 249 /******************************************************************************* 250 * Internal Functions *251 ******************************************************************************* /251 /********************************************************************************************************************************* 252 * Internal Functions * 253 *********************************************************************************************************************************/ 252 254 LOCAL mblk_t *vboxNetFltSolarisMBlkFromSG(PVBOXNETFLTINS pThis, PINTNETSG pSG, uint32_t fDst); 253 255 LOCAL unsigned vboxNetFltSolarisMBlkCalcSGSegs(PVBOXNETFLTINS pThis, mblk_t *pMsg);
Note:
See TracChangeset
for help on using the changeset viewer.