site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Hi, ifnet_output_raw( msg->interface, PF_INET, pkt_buf ); ============================================ Thank you, Matteo Merli _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... I'm having problems when re-injecting packet from my interface filter. The strange fact is the re-injection is working _fine_ through Airport network card but it fails when using ethernet card (en0). The mbuf I'm re-injecting is the mbuf I receive from a control socket callback and the code is this: ============================================ mbuf_settype( pkt_buf, MBUF_TYPE_HEADER ); mbuf_adj( pkt_buf, sizeof(SocketMessage) ); // To delete my custom header struct size_t hdr_len = ifnet_hdrlen( msg->interface ); mbuf_pkthdr_setheader( pkt_buf, msg->packet ); mbuf_pkthdr_setrcvif( pkt_buf, msg->interface ); setTag( &pkt_buf, Outbound ); mbuf_outbound_finalize( pkt_buf, PF_INET, hdr_len ); mbuf_inbound_modified( pkt_buf ); mbuf_clear_csum_requested( pkt_buf ); I guess the problems rely on some mbuf flag or checksum calculation issue I'm using badly... What are the steps needed to inject a "self-builded" mbuf packet? This email sent to site_archiver@lists.apple.com