Commit cb26fe7d authored by Christophe Massiot's avatar Christophe Massiot
Browse files

Set ip length

    This is required to be set and be equal to write size on FreeBSD.
    Note that despite documentation says it should be in host order,
    it only works if specified in network order

commit b551ed495bcc508e614fd14a25912301b1122a17
Author: Dmitry Marakasov <>
Date:   Fri Oct 7 17:32:44 2016 +0300
parent cdcfbb22
......@@ -288,6 +288,10 @@ static ssize_t raw_Write( const void *p_buf, size_t i_len )
= htons(sizeof(struct udphdr) + i_len);
#if defined(__FreeBSD__)
pktheader.iph.ip_len = htons(sizeof(struct udprawpkt) + i_len);
iov[0].iov_base = &pktheader;
iov[0].iov_len = sizeof(struct udprawpkt);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment