Steven Stallion wrote:
> All,
>
> What is the expected contents of an mblk_t which is passed to mac_rx ? I
> would have assumed it would be the destination address, source address,
> and payload - however snoop does not seem to be showing these packets.
>
> For example:
>
> mblk_t *bp = allocb(len, 0);
>
> /* src contains a 6 byte dest addr,
>    a 6 byte source addr, and the payload */
> bcopy(src, bp->b_rptr, len);
>
> mac_rx(mac_handle, NULL, bp);
>
> ...
>
> snoop -d re0 shows no packets received (I have verified that promisc is
> working correctly; the packets are being accepted by the rx filters, and
> is being passed down to mac_rx).
>
> Any ideas?
>
>   
The above code is missing an important step, which is to advance the 
b_wptr by len bytes.

    -- Garrett
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to