• source navigation  • diff markup  • identifier search  • freetext search  • 

Sources/ustp/config.h

  1 /*
  2  * ustp - OpenWrt STP/RSTP/MSTP daemon
  3  * Copyright (C) 2021 Felix Fietkau <nbd@nbd.name>
  4  *
  5  * This program is free software; you can redistribute it and/or modify
  6  * it under the terms of the GNU General Public License version 2
  7  * as published by the Free Software Foundation
  8  *
  9  * This program is distributed in the hope that it will be useful,
 10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 12  * GNU General Public License for more details.
 13  */
 14 #ifndef __CONFIG_H
 15 #define __CONFIG_H
 16 
 17 #include <libubox/avl.h>
 18 #include <stdint.h>
 19 #include "mstp.h"
 20 
 21 extern struct avl_tree bridge_config;
 22 
 23 struct bridge_config {
 24         struct avl_node node;
 25         uint32_t timestamp;
 26         CIST_BridgeConfig config;
 27 };
 28 
 29 struct bridge_config *bridge_config_get(const char *name, bool create);
 30 void bridge_config_expire(void);
 31 
 32 #endif
 33 

This page was automatically generated by LXR 0.3.1.  •  OpenWrt