Lines Matching refs:ct

24 	struct nfnl_ct *ct;  in nl_cli_ct_alloc()  local
26 ct = nfnl_ct_alloc(); in nl_cli_ct_alloc()
27 if (!ct) in nl_cli_ct_alloc()
30 return ct; in nl_cli_ct_alloc()
38 void nl_cli_ct_parse_family(struct nfnl_ct *ct, char *arg) in nl_cli_ct_parse_family() argument
47 nfnl_ct_set_family(ct, family); in nl_cli_ct_parse_family()
50 void nl_cli_ct_parse_protocol(struct nfnl_ct *ct, char *arg) in nl_cli_ct_parse_protocol() argument
59 nfnl_ct_set_proto(ct, proto); in nl_cli_ct_parse_protocol()
62 void nl_cli_ct_parse_mark(struct nfnl_ct *ct, char *arg) in nl_cli_ct_parse_mark() argument
65 nfnl_ct_set_mark(ct, mark); in nl_cli_ct_parse_mark()
68 void nl_cli_ct_parse_timeout(struct nfnl_ct *ct, char *arg) in nl_cli_ct_parse_timeout() argument
71 nfnl_ct_set_timeout(ct, timeout); in nl_cli_ct_parse_timeout()
74 void nl_cli_ct_parse_id(struct nfnl_ct *ct, char *arg) in nl_cli_ct_parse_id() argument
77 nfnl_ct_set_id(ct, id); in nl_cli_ct_parse_id()
80 void nl_cli_ct_parse_use(struct nfnl_ct *ct, char *arg) in nl_cli_ct_parse_use() argument
83 nfnl_ct_set_use(ct, use); in nl_cli_ct_parse_use()
86 void nl_cli_ct_parse_src(struct nfnl_ct *ct, int reply, char *arg) in nl_cli_ct_parse_src() argument
89 struct nl_addr *a = nl_cli_addr_parse(arg, nfnl_ct_get_family(ct)); in nl_cli_ct_parse_src()
90 if ((err = nfnl_ct_set_src(ct, reply, a)) < 0) in nl_cli_ct_parse_src()
95 void nl_cli_ct_parse_dst(struct nfnl_ct *ct, int reply, char *arg) in nl_cli_ct_parse_dst() argument
98 struct nl_addr *a = nl_cli_addr_parse(arg, nfnl_ct_get_family(ct)); in nl_cli_ct_parse_dst()
99 if ((err = nfnl_ct_set_dst(ct, reply, a)) < 0) in nl_cli_ct_parse_dst()
104 void nl_cli_ct_parse_src_port(struct nfnl_ct *ct, int reply, char *arg) in nl_cli_ct_parse_src_port() argument
107 nfnl_ct_set_src_port(ct, reply, port); in nl_cli_ct_parse_src_port()
110 void nl_cli_ct_parse_dst_port(struct nfnl_ct *ct, int reply, char *arg) in nl_cli_ct_parse_dst_port() argument
113 nfnl_ct_set_dst_port(ct, reply, port); in nl_cli_ct_parse_dst_port()
116 void nl_cli_ct_parse_tcp_state(struct nfnl_ct *ct, char *arg) in nl_cli_ct_parse_tcp_state() argument
125 nfnl_ct_set_tcp_state(ct, state); in nl_cli_ct_parse_tcp_state()
128 void nl_cli_ct_parse_status(struct nfnl_ct *ct, char *arg) in nl_cli_ct_parse_status() argument
137 nfnl_ct_set_status(ct, status); in nl_cli_ct_parse_status()
143 nfnl_ct_set_icmp_id(ct, 0, strtoul(argv[idx++], NULL, 0));
146 nfnl_ct_set_icmp_type(ct, 0, strtoul(argv[idx++], NULL, 0));
149 nfnl_ct_set_icmp_code(ct, 0, strtoul(argv[idx++], NULL, 0));
152 nfnl_ct_set_icmp_id(ct, 1, strtoul(argv[idx++], NULL, 0));
155 nfnl_ct_set_icmp_type(ct, 1, strtoul(argv[idx++], NULL, 0));
158 nfnl_ct_set_icmp_code(ct, 1, strtoul(argv[idx++], NULL, 0));