return j ? j + i : 0;
}
-static int append_vlan_info_data(Link *const link, sd_netlink_message *req, uint16_t pvid, const uint32_t *br_vid_bitmap, const uint32_t *br_untagged_bitmap) {
+int bridge_vlan_append_info(
+ const Link *link,
+ sd_netlink_message *req,
+ uint16_t pvid,
+ const uint32_t *br_vid_bitmap,
+ const uint32_t *br_untagged_bitmap) {
+
struct bridge_vlan_info br_vlan;
bool done, untagged = false;
uint16_t begin, end;
}
/* add vlan info */
- r = append_vlan_info_data(link, req, link->network->pvid, link->network->br_vid_bitmap, link->network->br_untagged_bitmap);
+ r = bridge_vlan_append_info(link, req, link->network->pvid, link->network->br_vid_bitmap, link->network->br_untagged_bitmap);
if (r < 0)
return log_link_error_errno(link, r, "Could not append VLANs: %m");
Copyright © 2016 BISDN GmbH. All rights reserved.
***/
+#include <inttypes.h>
+
+#include "sd-netlink.h"
+
#include "conf-parser.h"
#define BRIDGE_VLAN_BITMAP_MAX 4096
void network_adjust_bridge_vlan(Network *network);
+int bridge_vlan_append_info(
+ const Link * link,
+ sd_netlink_message *req,
+ uint16_t pvid,
+ const uint32_t *br_vid_bitmap,
+ const uint32_t *br_untagged_bitmap);
+
int link_set_bridge_vlan(Link *link);
CONFIG_PARSER_PROTOTYPE(config_parse_brvlan_pvid);