mbox series

[net,0/1] Fix big endian definition of ipv6_rpl_sr_hdr

Message ID 20210121220044.22361-1-justin.iurman@uliege.be
Headers show
Series Fix big endian definition of ipv6_rpl_sr_hdr | expand

Message

Justin Iurman Jan. 21, 2021, 10 p.m. UTC
Following RFC 6554 [1], the current order of fields is wrong for big
endian definition. Indeed, here is how the header looks like:

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|  Next Header  |  Hdr Ext Len  | Routing Type  | Segments Left |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| CmprI | CmprE |  Pad  |               Reserved                |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

This patch reorders fields so that big endian definition is now correct.

  [1] https://tools.ietf.org/html/rfc6554#section-3


Justin Iurman (1):
  uapi: fix big endian definition of ipv6_rpl_sr_hdr

 include/uapi/linux/rpl.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org Jan. 25, 2021, 11:30 p.m. UTC | #1
Hello:

This patch was applied to netdev/net.git (refs/heads/master):

On Thu, 21 Jan 2021 23:00:43 +0100 you wrote:
> Following RFC 6554 [1], the current order of fields is wrong for big

> endian definition. Indeed, here is how the header looks like:

> 

> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

> |  Next Header  |  Hdr Ext Len  | Routing Type  | Segments Left |

> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

> | CmprI | CmprE |  Pad  |               Reserved                |

> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

> 

> [...]


Here is the summary with links:
  - [net,1/1] uapi: fix big endian definition of ipv6_rpl_sr_hdr
    https://git.kernel.org/netdev/net/c/07d46d93c9ac

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html