History log of /vbox/src/VBox/NetworkServices/NAT/VBoxNetLwipNAT.cpp
Revision Date Author Comments Expand
2883e7039d8138676e0a0d96c56f4838f1bf049b 54700 09-Mar-2015 vboxsync

VBoxNetNAT, VBoxNetDHCP: use the VirtualBoxClient interface

8680dc7232f3eefc091f564093aaffd15075d898 54671 06-Mar-2015 vboxsync

NAT networks: don't kill VBoxNetDHCP and VBoxNetNAT but send the INATNetworkStartStop event to ask them politely to shutdown

2dddafcbe839b9d20def42343502dcde34124472 50494 18-Feb-2014 vboxsync

VBoxNetLwipNAT: Windows build fix.

7637f95dd4e129cc0cea182081cff9951f215fe8 50488 18-Feb-2014 vboxsync

Massage release logging for port-forwarding a bit. Log rules on startup.

139d6822c3d16fba6d6c6f141bea3af61ea61cbe 50487 17-Feb-2014 vboxsync

NATNet: clean up handling of port-forwarding rules a bit. Don't assert what we don't control, deal with failure. Use RTCMemAutoPtr to manage fwspec copy. Add release logging to VBoxEventType_OnNATNetworkPortForward.

39cdc89a08672eb8f744b6b0afee5d294d931e13 50484 17-Feb-2014 vboxsync

Oops, fix TABs in previous.

9a49b4b4ea1cfbba843b29a1aea263c3b343a19c 50483 17-Feb-2014 vboxsync

fetchNatPortForwardRules: pass fIsIPv6 flag to netPfStrToPf.

7c0de5ca2fad53ef4831b56f3f7ec4c9222fa2da 50480 17-Feb-2014 vboxsync

VBoxNetLwipNAT::natServicePfRegister: fix trivial constness XXX.

62db8d17754170e46f016862d5cd117f62985b40 50450 13-Feb-2014 vboxsync

VBoxNetBaseService.cpp: fix build on ancient Linux box.

314a7f04c5224519620af617f00bae44adaff41a 50360 07-Feb-2014 vboxsync

Print ifconfig-like information about proxy netif to release log.

49b82b13aa2ae915b93d3f2148e80a34af08e7f1 50279 30-Jan-2014 vboxsync

Entity parameter to VBoxLogRelCreate is used only for log file header intended for human consumption, so use friendlier "NAT Network".

aca4c0e4065b55fb4903e2727940d5ac5a099fc1 50240 27-Jan-2014 vboxsync

Create NAT Network release logger. This can probably use some improvements. Log rotation is not implemented yet.

0c8329b13e3842b927a7d891572a40e9e99bd42c 50239 27-Jan-2014 vboxsync

TrustedMain: when com::Initialize() fails make error reporting more sane.

0d49a2fbc9857ad8dd29542de7fb37202f1a283f 50213 24-Jan-2014 vboxsync

spaces

b293ba5cb1dbc85dab2871dffcda3e99335a7d6e 50082 16-Jan-2014 vboxsync

Deal with ETH_PAD_SIZE != 0. Express processGSO() in terms of processFrame() to avoid code duplication.

7a6fc5f2030115036a44948418c5ceda38e50a4d 50075 14-Jan-2014 vboxsync

Get rid of LWIP_SOCKET - we don't need it for NAT and it pollutes namespace.

071bb796623ad87df4cf15f4ff34172e7382cae5 50072 14-Jan-2014 vboxsync

Refer to lwip symbols without lwip_ prefix introduced by our internal renaming. Renaming will do the right thing if present. Same object code is generated.

5eb4b75eda15627221295b5a3edf2d0622b4da28 50068 14-Jan-2014 vboxsync

Add ifdefed out code to use debug helper for raw ICMP sockets. Add to the makefile commented out option to enable it.

88dd377dac25fe761b8193e53c1f7c689e6dcc7f 50002 25-Dec-2013 vboxsync

VBoxNetLwipNAT::init: fix begin/end pasto in the condition of the loop over IPv4 loopback mappings.

b73558f2e00416e86d24d6704100021758131e9b 49842 09-Dec-2013 vboxsync

DHCP/NAT and NAT are acting in the same manner: polling for events on main thread and waiting for packets on internal network on RECV thread. DHCP/Host-Only waits for packets on main thread.

2952ae6d8febed641412cd438092a97ee86ef7c2 49839 09-Dec-2013 vboxsync

NetworkServices/NAT: windows build fix

93d029e9d16eb2a10384a69e338d5030334aa5e4 49836 09-Dec-2013 vboxsync

VBoxNetLwipNAT.cpp: extract fetchNatPortForwardRules() to fetch ipv4 and ipv6 port-forward-rules.

6a9535fac6406fce9d72b6e20c2b8be966da7e38 49835 09-Dec-2013 vboxsync

VBoxNetLwipNAT.cpp: uses exported functions and listener declaration.

00169717d174b8b4333bed887e1c83d11726a785 49834 09-Dec-2013 vboxsync

VBoxNetLwipNAT.cpp: G/c extra lines.

a981ff6a4f40ee88ad046110d4b0aa7d566944b0 49823 09-Dec-2013 vboxsync

VBoxNetLwipNAT: G/c removes uniused members and its initializarion: hReqIntNet and hSemSVC.

0e1eea910a209a7a8edeed71c9be066a02f59202 49735 30-Nov-2013 vboxsync

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)

c07f01ad78ab5f3b2a46418698551a3ed0f68162 49711 29-Nov-2013 vboxsync

ICMP_FILTER is not privileged. Drop the comment now that setsockopt was fixed in previous. Things work better when done correctly...

1611ba048314a9a30a1b6f15bb890bd27b0d4a78 49710 29-Nov-2013 vboxsync

Fix edito in previous: create icmp6 socket using OS-specific socket type, always use SOL_RAW for Linux-specific ICMP_FILTER.

c42362d1edf4145fb50356e3945e890b9a2517b2 49689 28-Nov-2013 vboxsync

Create ICMP sockets for ping proxy.

4b13f27e465bdc28caaf1b9d6058be5319322640 49688 27-Nov-2013 vboxsync

G/c redundant lwIP includes.

7cfa8a9bf6560b261a92c25fe36ad470af76a48e 49560 20-Nov-2013 vboxsync

NetworkServices: VBoxNetBaseService::isMainNeeded() +const.

93876319f348f0a38e4e5b13e115fa6057c70244 49559 20-Nov-2013 vboxsync

VBoxNetNAT: always needs Main.

011bebd8930c3fa3df178d1c82ae88cc73c70d39 49516 16-Nov-2013 vboxsync

Introduce option "--need-main(-M) on|off" in network services to emphosize whether network service need to establish connection with Main (by default this optiois off).

ddfcff4bca5b8a20012365c6a00ef2af564590f8 49413 08-Nov-2013 vboxsync

Handle VBoxNetLwipNAT::init() failure too.

8a8d7629deae8875b70c6899e8b0f683b2a543e1 49412 08-Nov-2013 vboxsync

VBoxNetBaseService::tryGoOnline: return iprt status code. Adapt VBoxNetDHCP, add check in VBoxNetLwipNAT.

2d5c2f8b7f8e7cfeb5eb272b1242e4258dcd64be 49249 23-Oct-2013 vboxsync

Finish DNS proxy code and hook it in.

dedca7cc52051cf857f4cc1b28999b71dac798eb 49210 21-Oct-2013 vboxsync

Add listener for HostNameResolutionConfigurationChange (a do-nothing as of yet). Doesn't get events yet b/c of problems on the event source side that are being worked on.

f97bf404774df5621a720a587d9e5bd151ab4cf0 49200 21-Oct-2013 vboxsync

VBoxNetLwipNAT::init: Move code to read IPv6 options so that options-related code is grouped together.

7d5ddadf0574f92124dd7c79de4b64d2c7b06582 49199 21-Oct-2013 vboxsync

VBoxNetLwipNAT::init: shuffle delcarations a bit to improve readability.

bdd34e28b5eb6d82b13a4cdf41686b31e78a35d4 49198 21-Oct-2013 vboxsync

Rename VBoxNetLwipNAT::net to m_net

28700fe9526d5fa12a6b137b2a2da5de37f3990d 49149 17-Oct-2013 vboxsync

On NATNetworkSetting trigger quick RAs.

5cfa3b5bc57e1b96ec6557417e38b3f1a0a53113 49125 16-Oct-2013 vboxsync

Fix TAB/spaces in previous.

d7f1531f09f1ddf22b55a93e7b2ae8032db37f2f 49124 16-Oct-2013 vboxsync

VBoxNetLwipNAT::HandleEvent: set NATSEVICEPORTFORWARDRULE::Pfr::fPfrIPv6

177727c096bdc6d5749f5f95c7307d9e6af5653d 49119 15-Oct-2013 vboxsync

VBoxNetNAT: drops Windows's limitation on registering listeners.

b47ede7e57e074b8986a68e28d984d17639b6cd2 49113 15-Oct-2013 vboxsync

NetworkServices: coding style

9f6491aa9b59e7eeba6cd017b807c8bdded386a1 49112 15-Oct-2013 vboxsync

VBoxNetLwipNAT.cpp: event qeue processing (borrowed from VBoxHeadless).

8d0478b79910599578946396696c76fa68842072 49110 15-Oct-2013 vboxsync

VBoxNetLwipNAT.cpp: extend listener scope to class level.

7a50267685ef08759eadb184e8d5c2fb3b980fe1 49109 15-Oct-2013 vboxsync

VBoxNetLwipNAT.cpp: typo (copy'n'paste) in dynamic port-forwarding proccessing.

64afa59d6de7da3066072731814cde98917a3f61 49102 15-Oct-2013 vboxsync

Listen for VBoxEventType_OnNATNetworkSetting to pick up changes in AdvertiseDefaultIPv6RouteEnabled. XXX: We also need to prod rtadvd to send unsolicited advertisement with updated router lifetime, but event delivery seems to be busted, so I can't test that properly. For now just pick up the flag, that will be announced on the next scheduled advertisement.

a546ab481474ecab5d286addaa15b67cab69484a 49096 15-Oct-2013 vboxsync

Blank lines nit.

15a97ef031623a57e41c6545f0395d1193eed8da 49095 15-Oct-2013 vboxsync

Rename PortForwardListener to NATNetworkListener (with more events to come).

33ed30f3dbda8e6e7939324c9f8dc0a07a9dc34f 49042 11-Oct-2013 vboxsync

Do not configure IPv6 addresses and netif::output_ip6 method on the proxy netif if IPv6 is disabled for this NAT network.

f0c792e78a8bf77c28c7814441e514bea7c5362b 49016 10-Oct-2013 vboxsync

Change vestigial names proxytest.* to proxy.*

d5b5f09d8841828e647de9da5003fda55ca4cd5e 48956 08-Oct-2013 vboxsync

NetworkServices: Whitespace (including tabs!) and svn:keywords cleanups by scm.

1e1e76dc977de06dab62ba97d7fd574a8aeb03f2 48904 05-Oct-2013 vboxsync

VBoxNetLwipNAT: warns [-Wunused-parameter].

778f17dea66e4e9cd14f3afba4a0853d0aef8804 48903 05-Oct-2013 vboxsync

VBoxNetLwipNAT: PortForwardListener::PortForwardListener() explicitly initializes m_pNAT with NULL PortForwardListener::init(VBoxNetLwipNAT *) allows only non-NULL values. PortForwardListener::(un)init() assign m_pNAT to NULL.

0d79d1947a094e3ed44ffbdd94a6ed9feb25f354 48876 04-Oct-2013 vboxsync

VBoxNetLwipNAT: PortForwardListener: cosmetic(lines).

d55fccdd89be9480517657ef6577fccd634511fc 48875 04-Oct-2013 vboxsync

VBoxNetLwipNAT: PortForwardListener uses default (de)constructor, init's n_pNAT with init(...) functions, PortForwardListener::HandleEvent checks m_pNAT before proxying event.

961a3e7aa2fe3e3b610c841d599a1d999a6c6de8 48873 04-Oct-2013 vboxsync

VBoxNetLwipNAT::HandleEvent: pfEvt->COMGETTER(HostPort -> GuestPort)(&lGuestPort);

74fc088ad65b4c4be831c1156423713755a40ea3 48482 16-Sep-2013 vboxsync

VBoxNetLwipNAT::init(): vbox-style of multiline if-clause.

b16a0956c7b61259cf0cab839dcac3632c2eef7e 48481 16-Sep-2013 vboxsync

VBoxNetLwipNAT::init() Loopback mapping should be loaded unconditionally.

6cf18df52cc7cb6eb72de8c1f9675ce87d3b8a40 48480 16-Sep-2013 vboxsync

VBoxNetLwipNAT::VBoxNetLwipNAT() initialization of fDontLoadRulesOnStartup to false.

5fa47b384217a5f74e7aa8bafc04f942988e78fe 48434 11-Sep-2013 vboxsync

VBoxNetLwipNAT::init: temporary com::Utf8Str object is destructed at the end of the statement, leaving pszLo2Off dangling - give it proper lifetime.

d32ee79929c09a2d5c985ed48c93385e9e0ee28a 48405 10-Sep-2013 vboxsync

NAT/Loopback mapping: changes semantically unrelated symbol ";" with more expressive "=" for map opperation. VBoxManage natnework modify -t nat-test-1 -l "127.0.1.3=8"

3796ce27dfaf58d201968f378aa3cccad3c19912 48403 10-Sep-2013 vboxsync

NAT/Lwip: bypass registered loopbacks to proxy.

9b8301677902e65e9fdd3b062bd1c9c13d505ea4 48376 09-Sep-2013 vboxsync

lwip-nat: warnings [-Wshadow]

58639fcc55c6ee93b9410e6aff8e0d2701f0ad82 48374 08-Sep-2013 vboxsync

lwip-nat: warning [-Wshadow].

1a54d69e735ad5a219b09a52cf9e1d4e57cf9f29 48373 08-Sep-2013 vboxsync

lwip-nat: fetching local bindings. (disabled).

c9bcd154b77e076025e8a28db151ccb0d1dd0805 48372 07-Sep-2013 vboxsync

VBoxNetNAT: binding to specific interface (IPv4). Address to interface is taken from extradata: NAT/<network-name>/SourceIp4 e.g. # VBoxManage setextradata global "NAT/win-nat-test-0/SourceIp4" 192.168.1.185

a24a5c1de771bb93e5b0fe0adb3e16dc6d835838 48365 06-Sep-2013 vboxsync

lwip-nat: move IPv6 to _DEFS

2a6b3a00583ecec15fdbfd7dc4de339e45ca8b5d 48337 06-Sep-2013 vboxsync

VBoxNetNAT: (tabs).

1ef819fe629b7216ef47132e54df32f02b5eea90 48336 06-Sep-2013 vboxsync

VBoxNetNAT: typo: adding ipv4 rules to ip6 list.

228add3b90f66328c7aa78ae1c4895c5062e9c12 48289 05-Sep-2013 vboxsync

Move code to set up IPv6 addresses to VBoxNetLwipNAT::netifInit. While there, clean up netifInit a bit.

a0e683ef94a751f4069bfa3aba9191ebd681faed 48288 05-Sep-2013 vboxsync

VBoxNetLwipNAT::netifInit: it's Ethernet, so create ipv6 link-local address using EUI-64 mapping.

974b630a61af7f76052e864a2e9da5074813185d 48242 03-Sep-2013 vboxsync

Oops, use sin_len/sin6_len instead of sa_len.

95237badc67e576976a291e480ba425c1f983ac3 48241 03-Sep-2013 vboxsync

Provide ability to bind proxy socket to a local address - to be used to implement equivalent of --natbindip<N>.

c3258cd3934b73068c515dbcbf6f6cd387861f31 47950 21-Aug-2013 vboxsync

lwip-nat: give just allocated copy of PF descriptor.

3060385551683abef20d0c2bf614d63defb47df4 47948 21-Aug-2013 vboxsync

lwip-nat: Don't apply port-forward rules immediatly (pollmgr isn't ready yet).

0ec8dc8574a145351547ba918d0f7aad963b7dd5 47877 20-Aug-2013 vboxsync

fix OSE