GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — mptcp: pm: nl: announce deny-join-id0 flag · liom/BPI-Router-Linux@c839be6

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Documentation/netlink/specs
    • mptcp_pm.yaml
  • include/uapi/linux
    • mptcp.h
    • mptcp_pm.h
  • net/mptcp
    • pm_netlink.c
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Documentation/netlink/specs/mptcp_pm.yaml‎

Copy file name to clipboardExpand all lines: Documentation/netlink/specs/mptcp_pm.yaml
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ definitions:
2828
traffic-patterns it can take a long time until the
2929
MPTCP_EVENT_ESTABLISHED is sent.
3030
Attributes: token, family, saddr4 | saddr6, daddr4 | daddr6, sport,
31-
dport, server-side.
31+
dport, server-side, [flags].
3232
-
3333
name: established
3434
doc: >-
3535
A MPTCP connection is established (can start new subflows).
3636
Attributes: token, family, saddr4 | saddr6, daddr4 | daddr6, sport,
37-
dport, server-side.
37+
dport, server-side, [flags].
3838
-
3939
name: closed
4040
doc: >-
Collapse file

‎include/uapi/linux/mptcp.h‎

Copy file name to clipboardExpand all lines: include/uapi/linux/mptcp.h
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
#define MPTCP_INFO_FLAG_FALLBACK _BITUL(0)
3232
#define MPTCP_INFO_FLAG_REMOTE_KEY_RECEIVED _BITUL(1)
3333

34+
#define MPTCP_PM_EV_FLAG_DENY_JOIN_ID0 _BITUL(0)
35+
3436
#define MPTCP_PM_ADDR_FLAG_SIGNAL (1 << 0)
3537
#define MPTCP_PM_ADDR_FLAG_SUBFLOW (1 << 1)
3638
#define MPTCP_PM_ADDR_FLAG_BACKUP (1 << 2)
Collapse file

‎include/uapi/linux/mptcp_pm.h‎

Copy file name to clipboardExpand all lines: include/uapi/linux/mptcp_pm.h
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
* good time to allocate memory and send ADD_ADDR if needed. Depending on the
1717
* traffic-patterns it can take a long time until the MPTCP_EVENT_ESTABLISHED
1818
* is sent. Attributes: token, family, saddr4 | saddr6, daddr4 | daddr6,
19-
* sport, dport, server-side.
19+
* sport, dport, server-side, [flags].
2020
* @MPTCP_EVENT_ESTABLISHED: A MPTCP connection is established (can start new
2121
* subflows). Attributes: token, family, saddr4 | saddr6, daddr4 | daddr6,
22-
* sport, dport, server-side.
22+
* sport, dport, server-side, [flags].
2323
* @MPTCP_EVENT_CLOSED: A MPTCP connection has stopped. Attribute: token.
2424
* @MPTCP_EVENT_ANNOUNCED: A new address has been announced by the peer.
2525
* Attributes: token, rem_id, family, daddr4 | daddr6 [, dport].
Collapse file

‎net/mptcp/pm_netlink.c‎

Copy file name to clipboardExpand all lines: net/mptcp/pm_netlink.c
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2211,13 +2211,20 @@ static int mptcp_event_created(struct sk_buff *skb,
22112211
const struct sock *ssk)
22122212
{
22132213
int err = nla_put_u32(skb, MPTCP_ATTR_TOKEN, READ_ONCE(msk->token));
2214+
u16 flags = 0;
22142215

22152216
if (err)
22162217
return err;
22172218

22182219
if (nla_put_u8(skb, MPTCP_ATTR_SERVER_SIDE, READ_ONCE(msk->pm.server_side)))
22192220
return -EMSGSIZE;
22202221

2222+
if (READ_ONCE(msk->pm.remote_deny_join_id0))
2223+
flags |= MPTCP_PM_EV_FLAG_DENY_JOIN_ID0;
2224+
2225+
if (flags && nla_put_u16(skb, MPTCP_ATTR_FLAGS, flags))
2226+
return -EMSGSIZE;
2227+
22212228
return mptcp_event_add_subflow(skb, ssk);
22222229
}
22232230

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.