Lines Matching refs:tunsrc

465 		struct in_addr tunsrc, struct in_addr tundst)  in tunnel_set_route()  argument
468 tunsrc, PREFIX_LEN)) { in tunnel_set_route()
473 if (ip4_route_set(route_sock, (*route_seq)++, veth, tunsrc, tundst)) { in tunnel_set_route()
484 struct in_addr tunsrc = inet_makeaddr(INADDR_A, src); in init_child() local
507 if (tunnel_set_route(route_sock, &route_seq, veth, tunsrc, tundst)) { in init_child()
1068 struct in_addr tunsrc, struct in_addr tundst, in xfrm_set() argument
1098 struct in_addr tunsrc, struct in_addr tundst, uint8_t proto) in xfrm_policy_add() argument
1116 memcpy(&req.info.sel.saddr, &src, sizeof(tunsrc)); in xfrm_policy_add()
1154 struct in_addr tunsrc, struct in_addr tundst, uint8_t proto) in xfrm_prepare() argument
1157 XFRM_POLICY_OUT, tunsrc, tundst, proto)) { in xfrm_prepare()
1163 XFRM_POLICY_IN, tunsrc, tundst, proto)) { in xfrm_prepare()
1173 struct in_addr tunsrc, struct in_addr tundst) in xfrm_policy_del() argument
1189 memcpy(&req.id.sel.saddr, &src, sizeof(tunsrc)); in xfrm_policy_del()
1205 struct in_addr tunsrc, struct in_addr tundst) in xfrm_cleanup() argument
1208 XFRM_POLICY_OUT, tunsrc, tundst)) { in xfrm_cleanup()
1214 XFRM_POLICY_IN, tunsrc, tundst)) { in xfrm_cleanup()
1258 struct in_addr tunsrc, struct in_addr tundst, uint8_t proto) in xfrm_delete() argument
1516 struct in_addr src, dst, tunsrc, tundst; in xfrm_expire_policy() local
1522 tunsrc = inet_makeaddr(INADDR_A, child_ip(nr)); in xfrm_expire_policy()
1526 XFRM_POLICY_OUT, tunsrc, tundst, desc->proto)) { in xfrm_expire_policy()
1542 memcpy(&req.expire.pol.sel.saddr, &src, sizeof(tunsrc)); in xfrm_expire_policy()
1736 struct in_addr src, dst, tunsrc, tundst; in child_serv() local
1742 tunsrc = inet_makeaddr(INADDR_A, child_ip(nr)); in child_serv()
1756 if (xfrm_prepare(xfrm_sock, seq, src, dst, tunsrc, tundst, desc->proto)) { in child_serv()
1765 if (xfrm_set(xfrm_sock, seq, src, dst, tunsrc, tundst, desc)) { in child_serv()
1771 if (do_ping(cmd_fd, buf, page_size, tunsrc, in child_serv()
1785 if (xfrm_delete(xfrm_sock, seq, src, dst, tunsrc, tundst, desc->proto)) { in child_serv()
1795 if (xfrm_cleanup(xfrm_sock, seq, src, dst, tunsrc, tundst)) { in child_serv()
1877 struct in_addr src, dst, tunsrc, tundst; in grand_child_serv() local
1883 tunsrc = inet_makeaddr(INADDR_A, grchild_ip(nr)); in grand_child_serv()
1895 if (do_ping(cmd_fd, buf, page_size, tun_reply ? tunsrc : src, in grand_child_serv()
1902 if (xfrm_prepare(xfrm_sock, seq, src, dst, tunsrc, tundst, in grand_child_serv()
1904 xfrm_cleanup(xfrm_sock, seq, src, dst, tunsrc, tundst); in grand_child_serv()
1909 if (xfrm_set(xfrm_sock, seq, src, dst, tunsrc, tundst, desc)) { in grand_child_serv()
1910 xfrm_cleanup(xfrm_sock, seq, src, dst, tunsrc, tundst); in grand_child_serv()
1915 if (xfrm_delete(xfrm_sock, seq, src, dst, tunsrc, tundst, in grand_child_serv()
1917 xfrm_cleanup(xfrm_sock, seq, src, dst, tunsrc, tundst); in grand_child_serv()
1922 if (xfrm_cleanup(xfrm_sock, seq, src, dst, tunsrc, tundst)) { in grand_child_serv()