b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | #ifndef __PIPED_NW__ |
| 2 | #define __PIPED_NW_ |
| 3 | |
| 4 | int pd_nw_add(struct pd_context *pdc, struct pd_iface *pdi); |
| 5 | int pd_nw_change(struct pd_context *pdc, struct pd_iface *oldi, |
| 6 | struct pd_iface *newi); |
| 7 | int pd_nw_del(struct pd_context *pdc, struct pd_iface *pdi); |
| 8 | void pd_nw_clean(struct pd_context *pdc); |
| 9 | |
| 10 | #ifdef CONFIG_NETWORK_WAN_IN_PIPE |
| 11 | int pd_nw_wan_add_del_addr(struct uci_context *c, struct pd_iface *pdi, |
| 12 | bool add); |
| 13 | int pd_nw_wan_add_del_dns(struct uci_context *c, struct pd_iface *pdi, |
| 14 | bool add); |
| 15 | int pd_nw_wan_add_del_mask(struct uci_context *c, struct pd_iface *pdi, |
| 16 | bool add); |
| 17 | int pd_nw_wan_add_del_gw(struct uci_context *c, struct pd_iface *pdi, |
| 18 | bool add); |
| 19 | int pd_nw_wan_uci_init(struct uci_context **c); |
| 20 | void pd_nw_wan_uci_done(struct uci_context *c, bool commit); |
| 21 | int pd_nw_wan_config(struct pd_iface *pdi, bool add); |
| 22 | #endif |
| 23 | |
| 24 | #endif |