Skip to content

GoBGP and issues with match field for fragmentation flags #1361

Description

@pavel-odintsov

Hello, guys!

Some time ago I slightly changed my flow spec announces for BGP fragmentation and TCP flags. I decided to set match bit for them because Huawei requires it.

As you know, I craft flow spec NLRI messages from my own code.

Then I found that GoBGP displays TCP flags correct (it print it as "(match)") but forgot to show "match" for fragmentation flags:

/opt/fastnetmon/libraries/gobgp_1_4_0_git/gobgp global rib -a ipv4-flow
    Network                                                                                                                                                                                             Next Hop             AS_PATH              Age        Attrs
*>  [destination:127.0.0.0/24][source:4.0.0.0/24][protocol: tcp][destination-port: =80][source-port: =53 =5353][tcp-flags: (match)syn][packet-length: =777 =1122][fragment: =is-fragment =dont-fragment]fictitious                                00:00:04   [{Origin: ?} {Extcomms: [rate: 1024.000000]}]

According to BGP Flow Spec RFC 5575 they suggest using "bitmask operand format" for fragmentation flags and TCP flags.

But looks like GoBGP supports them only for TCP Flags and forgot about fragmentation flags.

Thank you!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions