2 Replies
      Latest reply on Aug 10, 2018 2:01 AM by eskimo
      vereddy Level 1 Level 1 (0 points)

        Hi,

         

        I'm writting a sample network Kext (mainly to exchange IP packets)

        created Network interface using IONetworkController::attachInterface(),  -> I'll get IONetworkInterface

         

        Is there any way to discard the ethernet header by configuring the interface or get only IP packets in Tx end IONetworkController::outputPacket()

        after thet with the flags like

        IONetworkInterface::setInterfaceType(IFT_ETHER)   -> How to select IP only packects

        IONetworkInterface::setMediaAddressLength(0)

        IONetworkInterface::setMediaHeaderLength(0)

        IONetworkInterface::setFlags(IFF_NOARP)

         

        Thanks

        Venkat