public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* Why we need add :: at the last when encap seg6 with inline mode?
@ 2023-06-27  7:28 Hangbin Liu
       [not found] ` <AM6PR07MB56691CDB704895F0E13689AA9125A@AM6PR07MB5669.eurprd07.prod.outlook.com>
  0 siblings, 1 reply; 2+ messages in thread
From: Hangbin Liu @ 2023-06-27  7:28 UTC (permalink / raw)
  To: David Lebrun; +Cc: Andrea Mayer, netdev

Hi David,

When I tried encap seg6 inline mode via iproute, I saw it added a :: address
at the last.

# ip -6 route add 1234::1234 encap seg6 mode inline segs 1::1 dev dum1
# ip -6 route show dev dum1
1234::1234  encap seg6 mode inline segs 2 [ 1::1 :: ] metric 1024 pref medium

In the iproute2 code

```
static struct ipv6_sr_hdr *parse_srh(char *segbuf, int hmac, bool encap)
{
        ...
        if (!encap)
                nsegs++;
        ...
```

So is there any reason we add this?

Thanks
Hangbin

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-04  2:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-27  7:28 Why we need add :: at the last when encap seg6 with inline mode? Hangbin Liu
     [not found] ` <AM6PR07MB56691CDB704895F0E13689AA9125A@AM6PR07MB5669.eurprd07.prod.outlook.com>
2023-07-04  2:48   ` R: " Hangbin Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox