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