/// <summary> /// Get required header space for sdu frames to be sent /// </summary> /// <param name="tail">maximum transmission unit in bytes</param> /// <param name="head">required space for header</param> /// <param name="tail">required space for tail</param> public void GetMtuSize(out int mtu, out int head, out int tail) { #if USE_FRAG _frag.GetMtuSize(out mtu, out head, out tail); #else _route.GetMtuSize(out mtu, out head, out tail); #endif }
public NetworkLayer(IMac mac) { _mac = mac; _mgmt = new NetworkMgmt(this); _route = new Routing(this, mac, this); #if USE_FRAG int mtu, head, tail; _route.GetMtuSize(out mtu, out head, out tail); _frag = new Fragmentation.Fragmentation(10, _route.DataRequest, mtu, head, tail); #endif _mac.BeaconNotifyIndication = MacBeaconNotifyIndication; _mac.ResetRequest(true, null); }