]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/network/netdev/macsec.h
license: LGPL-2.1+ -> LGPL-2.1-or-later
[thirdparty/systemd.git] / src / network / netdev / macsec.h
index 36c90d47ab4502dce31e3bf4dc5b5325f7f35bb0..4d88e49514657f9573e37158552d7a533031802e 100644 (file)
@@ -1,8 +1,10 @@
-/* SPDX-License-Identifier: LGPL-2.1+ */
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
+#include <netinet/in.h>
 #include <linux/if_macsec.h>
 
+#include "ether-addr-util.h"
 #include "in-addr-util.h"
 #include "netdev.h"
 #include "networkd-util.h"
@@ -31,6 +33,8 @@ typedef struct SecurityAssociation {
         uint8_t *key;
         uint32_t key_len;
         char *key_file;
+        int activate;
+        int use_for_encoding;
 } SecurityAssociation;
 
 typedef struct TransmitAssociation {
@@ -62,6 +66,7 @@ struct MACsec {
 
         uint16_t port;
         int encrypt;
+        uint8_t encoding_an;
 
         OrderedHashmap *receive_channels;
         OrderedHashmap *receive_channels_by_section;
@@ -78,3 +83,5 @@ CONFIG_PARSER_PROTOTYPE(config_parse_macsec_packet_number);
 CONFIG_PARSER_PROTOTYPE(config_parse_macsec_key_id);
 CONFIG_PARSER_PROTOTYPE(config_parse_macsec_key);
 CONFIG_PARSER_PROTOTYPE(config_parse_macsec_key_file);
+CONFIG_PARSER_PROTOTYPE(config_parse_macsec_sa_activate);
+CONFIG_PARSER_PROTOTYPE(config_parse_macsec_use_for_encoding);