mtpd: l2tp: Fix endianness issues in log prints

Tunnel and session variables are obtained from network, thus are stored
in network endianness. Although this fact is mentioned in this comment:

    // To avoid unnecessary endianness conversions, tunnels, sessions,
    // attributes, and values are all accessed in network order

those variables are not being converted to host endianness when printing.

So convert them to host endianness when printing. Also change the type of
those variables to __be16 so we can distinguish them easier.

Change-Id: If4a147929fbc79ada51ce5c4f6a1e929d76267aa
Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
1 file changed
tree: a6491bed64e0e40a11a834c0474a867c5a242ad5
  1. Android.bp
  2. l2tp.c
  3. MODULE_LICENSE_APACHE2
  4. mtpd.c
  5. mtpd.h
  6. mtpd.rc
  7. NOTICE
  8. pptp.c