OSDN Git Service

Fix MSS clamping.
authorLorenzo Colitti <lorenzo@google.com>
Thu, 2 Oct 2014 11:46:23 +0000 (20:46 +0900)
committerLorenzo Colitti <lorenzo@google.com>
Thu, 2 Oct 2014 12:05:58 +0000 (21:05 +0900)
commite8164ddc8204b626c1144a0a504754bf6622c6fd
treed5fe6e47a14166be6d2d8d169c59649a43b11069
parent6b6f22fac4c33fcd349aaf6970bbdc191db752a3
Fix MSS clamping.

http://ag/553410 added an iptables chain and rule to do MSS
clamping for tethered clients, but did not add the chain to any
other chains, so the rule had no effect.

Fix this by adding the chain to the proper forwarding chains.
Also rename some of the new variables and constants so they are
more consistent with the previous code.

Bug: 17552732
Bug: 17727533
Change-Id: I9fcae31de5c0283d7d9f1dac989de84f77c5e53c
server/CommandListener.cpp
server/NatController.cpp
server/NatController.h