[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] How to explicitly set IP6 header version = 6 in outgoin
From: |
Simon Goldschmidt |
Subject: |
Re: [lwip-users] How to explicitly set IP6 header version = 6 in outgoing packets |
Date: |
Mon, 1 Dec 2014 12:35:14 +0100 |
mfkexpress wrote:
> [..]
> I think the highlighted field of above packet should be "60".
>
> How can I explicitly set it's first nibble to "6" without calling
> IP6H_VTCFL_SET() just before writing it to Tx FIFO?
As Ivan already said, you can't do that yourself. The byte should be correctly
set by lwIP. If it's not, there's a bug either in your port or in lwIP. And
you'd be *much* better off finding that bug and fixing it instead of re-setting
some bits to some value at some point...
Simon