> How can I pass raw Wifi Headers to pcap. In mac, the wifi headers are
 > converted into ethernet headers and passed on to upper layers. How can
 > I bypass that?

The DLIOCNATIVE ioctl will switch the DLPI data stream into native mode.
>From dlpi(7P):

     Native Mode

         Some DLPI providers are able  to  represent  their  link
         layer  using  more  than one link-layer  format. In this
         case, the  default link-layer format can minimize impact
         to  applications, but might not allow truly native link-
         layer headers to be sent or received. DLPI consumers who
         wish to use the native  link-layer format can use DLIOC-
         NATIVE to transition the stream.  DLIOCNATIVE  takes  no
         arguments  and returns the DLPI mac type associated with
         the  new link-layer format   upon         success.  Once
         enabled,  the  stream remains in this mode until closed.
         Note  that   DLIOCNATIVE  does  not  enable   transition
         between  dissimilar  DLPI  mac types and (aside from the
         link-layer  format),  the  new  DLPI    mac    type   is
         guaranteed  to be semantically identical. In particular,
         the SAP space and addressing format are not affected and
         the  effect  of  DLIOCNATIVE is only visible when in raw
         mode, though any subsequent DL_INFO_REQ   requests  gen-
         erate  responses with dl_mac_type set to the native DLPI
         type.

--
meem
_______________________________________________
networking-discuss mailing list
networking-discuss@opensolaris.org

Reply via email to