Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
0002 /*
0003  * Copyright (c) 2021 Taehee Yoo <ap420073@gmail.com>
0004  */
0005 #ifndef _UAPI_AMT_H_
0006 #define _UAPI_AMT_H_
0007 
0008 enum ifla_amt_mode {
0009     /* AMT interface works as Gateway mode.
0010      * The Gateway mode encapsulates IGMP/MLD traffic and decapsulates
0011      * multicast traffic.
0012      */
0013     AMT_MODE_GATEWAY = 0,
0014     /* AMT interface works as Relay mode.
0015      * The Relay mode encapsulates multicast traffic and decapsulates
0016      * IGMP/MLD traffic.
0017      */
0018     AMT_MODE_RELAY,
0019     __AMT_MODE_MAX,
0020 };
0021 
0022 #define AMT_MODE_MAX (__AMT_MODE_MAX - 1)
0023 
0024 enum {
0025     IFLA_AMT_UNSPEC,
0026     /* This attribute specify mode etier Gateway or Relay. */
0027     IFLA_AMT_MODE,
0028     /* This attribute specify Relay port.
0029      * AMT interface is created as Gateway mode, this attribute is used
0030      * to specify relay(remote) port.
0031      * AMT interface is created as Relay mode, this attribute is used
0032      * as local port.
0033      */
0034     IFLA_AMT_RELAY_PORT,
0035     /* This attribute specify Gateway port.
0036      * AMT interface is created as Gateway mode, this attribute is used
0037      * as local port.
0038      * AMT interface is created as Relay mode, this attribute is not used.
0039      */
0040     IFLA_AMT_GATEWAY_PORT,
0041     /* This attribute specify physical device */
0042     IFLA_AMT_LINK,
0043     /* This attribute specify local ip address */
0044     IFLA_AMT_LOCAL_IP,
0045     /* This attribute specify Relay ip address.
0046      * So, this is not used by Relay.
0047      */
0048     IFLA_AMT_REMOTE_IP,
0049     /* This attribute specify Discovery ip address.
0050      * When Gateway get started, it send discovery message to find the
0051      * Relay's ip address.
0052      * So, this is not used by Relay.
0053      */
0054     IFLA_AMT_DISCOVERY_IP,
0055     /* This attribute specify number of maximum tunnel. */
0056     IFLA_AMT_MAX_TUNNELS,
0057     __IFLA_AMT_MAX,
0058 };
0059 
0060 #define IFLA_AMT_MAX (__IFLA_AMT_MAX - 1)
0061 
0062 #endif /* _UAPI_AMT_H_ */