core/lib.lua: add endian conversion helpers written in Lua

avoid C function call overhead while using C.xxxx counterparts
keyed_ipv6_tunnel: add missed conversion to network order for session id

use endian conversion helpers
packet_filter: use endian conversion helpers
keyed_ipv6_tunnel: add optional default_gateway_MAC config parameter
lib/macaddress: add error handling
do not hardcode pci devices
fix vlan filters

Each VF app can be declared on a single VLAN, the NIC will add 802.1q tags on every outgoing packet, and strip tags on incoming packets.
Merge pull request #163 from justincormack/pcidevs

intel_app: do not hardcode pci devices
packet_filter bug workaround: Disable JIT on generated code.

Theory is that JIT of packet filter rules is triggering a LuaJIT bug,
possibly related to:

  http://www.freelists.org/post/luajit/0LL-nil
Updated LuaJIT to latest v2.1 branch.
Merge pull request #166 from lukego/luajit_update

Updated LuaJIT to latest v2.1 branch.
Merge pull request #164 from javierguerragiraldez/master

Fix vlan filters
Merge pull request #162 from logiceditor-com/aa/4147/test_tunnel_setup

L2TPv3/keyed_ipv6_tunnel: Test tunnel setup
packet_filter: Fixed minor typo bug introduced in last commit.
Merge pull request #167 from lukego/packet_filter_fix

packet_filter: Fixed minor typo bug introduced in last commit.
Merge pull request #165 from lukego/packet_filter_nojit

packet_filter bug workaround: Disable JIT on generated code.
[intel_app] fix missing freelist

Signed-off-by: Nikolay Nikolaev <n.nikolaev@virtualopensystems.com>
intel10g: Fix to avoid multicast traffic looping back to sender.

If multicast traffic is returned to sender it triggers IPv6 Duplicate
Address Detection (in Linux) and prevents traffic from being sent.

Fixed by clearing the LLE (Local Loopback Enable) bit of register
PFVMTXSW (PF VM Tx Switch Loopback Enable).

Relevant note in the 82599 datasheet on page 161:

    A VM might be set to receive it’s own traffic in case the source and
    the destination are in the same pool via the PFVMTXSW.LLE.
Merge pull request #168 from lukego/intel_no_loopback

intel10g: Fix to avoid multicast traffic looping back to sender.
add external flags