Changeset 87384 in vbox for trunk/src/VBox/NetworkServices/NAT/VBoxNetLwipNAT.cpp
- Timestamp:
- Jan 22, 2021 10:57:43 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/NetworkServices/NAT/VBoxNetLwipNAT.cpp
r87383 r87384 119 119 }; 120 120 121 typedef struct NATSE VICEPORTFORWARDRULE121 typedef struct NATSERVICEPORTFORWARDRULE 122 122 { 123 123 PORTFORWARDRULE Pfr; 124 124 fwspec FWSpec; 125 } NATSE VICEPORTFORWARDRULE, *PNATSEVICEPORTFORWARDRULE;126 127 typedef std::vector<NATSE VICEPORTFORWARDRULE> VECNATSERVICEPF;125 } NATSERVICEPORTFORWARDRULE, *PNATSERVICEPORTFORWARDRULE; 126 127 typedef std::vector<NATSERVICEPORTFORWARDRULE> VECNATSERVICEPF; 128 128 typedef VECNATSERVICEPF::iterator ITERATORNATSERVICEPF; 129 129 typedef VECNATSERVICEPF::const_iterator CITERATORNATSERVICEPF; … … 193 193 VECNATSERVICEPF m_vecPortForwardRule6; 194 194 195 static int natServicePfRegister(NATSE VICEPORTFORWARDRULE& natServicePf);195 static int natServicePfRegister(NATSERVICEPORTFORWARDRULE& natServicePf); 196 196 static int natServiceProcessRegisteredPf(VECNATSERVICEPF& vecPf); 197 197 }; … … 353 353 : m_vecPortForwardRule4; 354 354 355 NATSE VICEPORTFORWARDRULE r;355 NATSERVICEPORTFORWARDRULE r; 356 356 RT_ZERO(r); 357 357 … … 425 425 { 426 426 /* compare */ 427 NATSE VICEPORTFORWARDRULE &natFw = *it;427 NATSERVICEPORTFORWARDRULE &natFw = *it; 428 428 if ( natFw.Pfr.iPfrProto == r.Pfr.iPfrProto 429 429 && natFw.Pfr.u16PfrHostPort == r.Pfr.u16PfrHostPort … … 715 715 716 716 717 /*static*/ int VBoxNetLwipNAT::natServicePfRegister(NATSE VICEPORTFORWARDRULE& natPf)717 /*static*/ int VBoxNetLwipNAT::natServicePfRegister(NATSERVICEPORTFORWARDRULE& natPf) 718 718 { 719 719 int lrc; … … 773 773 for (it = vecRules.begin(); it != vecRules.end(); ++it) 774 774 { 775 NATSE VICEPORTFORWARDRULE &natPf = *it;775 NATSERVICEPORTFORWARDRULE &natPf = *it; 776 776 777 777 LogRel(("Loading %s port-forwarding rule \"%s\": %s %s%s%s:%d -> %s%s%s:%d\n", … … 1009 1009 case 'P': 1010 1010 { 1011 NATSE VICEPORTFORWARDRULE Rule;1011 NATSERVICEPORTFORWARDRULE Rule; 1012 1012 VECNATSERVICEPF& rules = (rc == 'P'? 1013 1013 m_vecPortForwardRule6 … … 1392 1392 AssertComRCReturn(hrc, VERR_INTERNAL_ERROR); 1393 1393 1394 NATSE VICEPORTFORWARDRULE Rule;1394 NATSERVICEPORTFORWARDRULE Rule; 1395 1395 for (size_t idxRules = 0; idxRules < rules.size(); ++idxRules) 1396 1396 {
Note:
See TracChangeset
for help on using the changeset viewer.