Skip to content

Commit

Permalink
iptfs: impl: add new iptfs xfrm mode impl
Browse files Browse the repository at this point in the history
  • Loading branch information
choppsv1 committed Aug 3, 2023
1 parent 186aad1 commit fb00dde
Show file tree
Hide file tree
Showing 2 changed files with 2,329 additions and 0 deletions.
18 changes: 18 additions & 0 deletions include/net/iptfs.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _NET_IPTFS_H
#define _NET_IPTFS_H

#include <linux/types.h>
#include <linux/ip.h>

#define IPTFS_SUBTYPE_BASIC 0
#define IPTFS_SUBTYPE_CC 1
#define IPTFS_SUBTYPE_LAST IPTFS_SUBTYPE_CC

#define IPTFS_CC_FLAGS_ECN_CE 0x1
#define IPTFS_CC_FLAGS_PLMTUD 0x2

extern void xfrm_iptfs_get_rtt_and_delays(struct ip_iptfs_cc_hdr *cch, u32 *rtt,
u32 *actual_delay, u32 *xmit_delay);

#endif /* _NET_IPTFS_H */
Loading

0 comments on commit fb00dde

Please sign in to comment.