Bug #120 asks us to use the true MAC addresses of LAN local remote hosts, since some programs need this information. These commits introduces this for ARP, NDP, UDP, TCP and ICMP. Jon Maloy (8): netlink: Add function to extract mac addresses from arp table arp: respond with true mac address of LAN local remote hosts flow: add mac address of LAN local remote hosts to flow udp: forward external source mac address through tap interface tcp: forward external source mac address through tap interface tap: change signature of function tap_push_l2h() tcp: make tcp_rst_no_conn() respond with correct mac address icmp: let icmp use mac address from flowside structure arp.c | 9 ++++++++ flow.c | 13 ++++++++++- flow.h | 2 ++ fwd.c | 2 +- fwd.h | 3 ++- icmp.c | 4 ++-- ndp.c | 13 ++++++++++- netlink.c | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++ netlink.h | 1 + tap.c | 24 +++++++++++++-------- tap.h | 7 +++--- tcp.c | 20 ++++++++++++++--- tcp_buf.c | 27 +++++++++++------------ tcp_internal.h | 2 +- tcp_vu.c | 5 ++--- udp.c | 33 +++++++++++++--------------- 16 files changed, 166 insertions(+), 57 deletions(-) -- 2.48.1