Home
last modified time | relevance | path

Searched refs:gwaddr (Results 1 – 4 of 4) sorted by relevance

/OK3568_Linux_fs/app/forlinx/quectelCM/libmnl/
H A Difutils.h38 int if_set_route_gw_v4(const char *ifname, in_addr_t gwaddr);
39 int if_del_route_gw_v4(const char *ifname, in_addr_t gwaddr);
43 int if_set_route_gw_v6(const char *ifname, uint8_t *gwaddr);
44 int if_del_route_gw_v6(const char *ifname, uint8_t *gwaddr);
49 in_addr_t gwaddr, in_addr_t dns1, in_addr_t dns2);
51 uint8_t *gwaddr, uint8_t *dns1, uint8_t *dns2);
H A Difutils.c547 …oute(bool operate, int proto, const char *ifname, addr_t *dstaddr, uint32_t prefix, addr_t *gwaddr) in if_act_on_route() argument
581 rtm->rtm_scope = gwaddr ? RT_SCOPE_UNIVERSE : RT_SCOPE_LINK; in if_act_on_route()
590 if (gwaddr) in if_act_on_route()
593 mnl_attr_put_u32(nlh, RTA_GATEWAY, gwaddr->ip); in if_act_on_route()
596 mnl_attr_put(nlh, RTA_GATEWAY, sizeof(struct in6_addr), gwaddr); in if_act_on_route()
668 int if_set_route_gw_v4(const char *ifname, in_addr_t gwaddr) in if_set_route_gw_v4() argument
672 addr.ip = gwaddr; in if_set_route_gw_v4()
676 int if_del_route_gw_v4(const char *ifname, in_addr_t gwaddr) in if_del_route_gw_v4() argument
680 addr.ip = gwaddr; in if_del_route_gw_v4()
684 int if_set_route_gw_v6(const char *ifname, uint8_t *gwaddr) in if_set_route_gw_v6() argument
[all …]
/OK3568_Linux_fs/kernel/include/net/
H A Dip6_route.h176 const struct in6_addr *gwaddr,
182 const struct in6_addr *gwaddr);
/OK3568_Linux_fs/kernel/net/ipv6/
H A Droute.c119 const struct in6_addr *gwaddr,
124 const struct in6_addr *gwaddr,
923 const struct in6_addr *gwaddr) in rt6_route_rcv() argument
968 rt = rt6_get_dflt_router(net, gwaddr, dev); in rt6_route_rcv()
971 gwaddr, dev); in rt6_route_rcv()
979 rt = rt6_add_route_info(net, prefix, rinfo->prefix_len, gwaddr, in rt6_route_rcv()
4146 const struct in6_addr *gwaddr, in rt6_get_route_info() argument
4173 if (!ipv6_addr_equal(&rt->fib6_nh->fib_nh_gw6, gwaddr)) in rt6_get_route_info()
4186 const struct in6_addr *gwaddr, in rt6_add_route_info() argument
4205 cfg.fc_gateway = *gwaddr; in rt6_add_route_info()
[all …]