| #ifndef __PIPED_NW__ |
| #define __PIPED_NW_ |
| |
| int pd_nw_add(struct pd_context *pdc, struct pd_iface *pdi); |
| int pd_nw_change(struct pd_context *pdc, struct pd_iface *oldi, |
| struct pd_iface *newi); |
| int pd_nw_del(struct pd_context *pdc, struct pd_iface *pdi); |
| void pd_nw_clean(struct pd_context *pdc); |
| |
| #ifdef CONFIG_NETWORK_WAN_IN_PIPE |
| int pd_nw_wan_add_del_addr(struct uci_context *c, struct pd_iface *pdi, |
| bool add); |
| int pd_nw_wan_add_del_dns(struct uci_context *c, struct pd_iface *pdi, |
| bool add); |
| int pd_nw_wan_add_del_mask(struct uci_context *c, struct pd_iface *pdi, |
| bool add); |
| int pd_nw_wan_add_del_gw(struct uci_context *c, struct pd_iface *pdi, |
| bool add); |
| int pd_nw_wan_uci_init(struct uci_context **c); |
| void pd_nw_wan_uci_done(struct uci_context *c, bool commit); |
| int pd_nw_wan_config(struct pd_iface *pdi, bool add); |
| #endif |
| |
| #endif |