Changeset 87790 in vbox
- Timestamp:
- Feb 18, 2021 4:31:03 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/NetworkServices/NAT/VBoxNetLwipNAT.cpp
r87743 r87790 191 191 192 192 private: 193 int comInit();194 int homeInit();195 int logInit();196 int i pv4Init();197 int i pv4LoopbackMapInit();198 int i pv6Init();199 int eventsInit();193 int initCom(); 194 int initHome(); 195 int initLog(); 196 int initIPv4(); 197 int initIPv4LoopbackMap(); 198 int initIPv6(); 199 int initComEvents(); 200 200 201 201 int getExtraData(com::Utf8Str &strValueOut, const char *pcszKey); … … 210 210 static void reportErrorInfo(const com::ErrorInfo &info); 211 211 212 void createRawSock4();213 void createRawSock6();212 void initIPv4RawSock(); 213 void initIPv6RawSock(); 214 214 215 215 static DECLCALLBACK(void) onLwipTcpIpInit(void *arg); … … 351 351 352 352 /* Get the COM API set up. */ 353 rc = comInit();353 rc = initCom(); 354 354 if (RT_FAILURE(rc)) 355 355 return rc; 356 356 357 357 /* Get the home folder location. It's ok if it fails. */ 358 homeInit();358 initHome(); 359 359 360 360 /* … … 375 375 * indeed exists we can create the release log file. 376 376 */ 377 logInit();377 initLog(); 378 378 379 379 // resolver changes are reported on vbox but are retrieved from … … 384 384 385 385 /* Get the settings related to IPv4. */ 386 rc = i pv4Init();386 rc = initIPv4(); 387 387 if (RT_FAILURE(rc)) 388 388 return rc; 389 389 390 390 /* Get the settings related to IPv6. */ 391 rc = i pv6Init();391 rc = initIPv6(); 392 392 if (RT_FAILURE(rc)) 393 393 return rc; 394 395 394 396 395 … … 412 411 m_ProxyOptions.nameservers = getHostNameservers(); 413 412 414 eventsInit();413 initComEvents(); 415 414 /* end of COM initialization */ 416 415 … … 441 440 * it ourselves and do the refactoring later. 442 441 */ 443 int VBoxNetLwipNAT:: comInit()442 int VBoxNetLwipNAT::initCom() 444 443 { 445 444 HRESULT hrc; … … 489 488 * and for the TFTP root location. 490 489 */ 491 int VBoxNetLwipNAT:: homeInit()490 int VBoxNetLwipNAT::initHome() 492 491 { 493 492 HRESULT hrc; … … 524 523 * onLwipTcpIpInit(). 525 524 */ 526 int VBoxNetLwipNAT::i pv4Init()525 int VBoxNetLwipNAT::initIPv4() 527 526 { 528 527 HRESULT hrc; … … 590 589 591 590 /* Raw socket for ICMP. */ 592 createRawSock4();591 initIPv4RawSock(); 593 592 594 593 … … 616 615 617 616 /* Make host's loopback(s) available from inside the natnet */ 618 i pv4LoopbackMapInit();617 initIPv4LoopbackMap(); 619 618 620 619 return VINF_SUCCESS; … … 628 627 * caching dns proxy on 127.0.1.1 or 127.0.0.53. 629 628 */ 630 int VBoxNetLwipNAT::i pv4LoopbackMapInit()629 int VBoxNetLwipNAT::initIPv4LoopbackMap() 631 630 { 632 631 HRESULT hrc; … … 740 739 * onLwipTcpIpInit(). 741 740 */ 742 int VBoxNetLwipNAT::i pv6Init()741 int VBoxNetLwipNAT::initIPv6() 743 742 { 744 743 HRESULT hrc; … … 836 835 837 836 /* Raw socket for ICMP. */ 838 createRawSock6();837 initIPv6RawSock(); 839 838 840 839 … … 1006 1005 * Create and register API event listeners. 1007 1006 */ 1008 int VBoxNetLwipNAT:: eventsInit()1007 int VBoxNetLwipNAT::initComEvents() 1009 1008 { 1010 1009 /** … … 1045 1044 * Create raw IPv4 socket for sending and snooping ICMP. 1046 1045 */ 1047 void VBoxNetLwipNAT:: createRawSock4()1046 void VBoxNetLwipNAT::initIPv4RawSock() 1048 1047 { 1049 1048 SOCKET icmpsock4 = INVALID_SOCKET; … … 1092 1091 * Create raw IPv6 socket for sending and snooping ICMP6. 1093 1092 */ 1094 void VBoxNetLwipNAT:: createRawSock6()1093 void VBoxNetLwipNAT::initIPv6RawSock() 1095 1094 { 1096 1095 SOCKET icmpsock6 = INVALID_SOCKET; … … 2007 2006 */ 2008 2007 /* static */ 2009 int VBoxNetLwipNAT:: logInit()2008 int VBoxNetLwipNAT::initLog() 2010 2009 { 2011 2010 size_t cch;
Note:
See TracChangeset
for help on using the changeset viewer.