Lines Matching refs:inject
31 static struct nfct_handle *inject;
44 /* handler to directly inject conntracks into kernel-space */
45 inject = nfct_open(CONFIG(netlink).subsys_id, 0);
46 if (inject == NULL) {
53 origin_register(inject, CTD_ORIGIN_INJECT);
59 origin_unregister(inject);
60 nfct_close(inject);
68 if (nl_create_conntrack(inject, ct, 0) == -1) {
71 ret = nl_destroy_conntrack(inject, ct);
79 dlog(LOG_ERR, "inject-add1: %s", strerror(errno));
84 dlog(LOG_ERR, "inject-add2: %s", strerror(errno));
96 if (nl_update_conntrack(inject, ct, 0) != -1) {
103 if (nl_create_conntrack(inject, ct, 0) == -1) {
105 dlog(LOG_ERR, "inject-upd1: %s", strerror(errno));
116 ret = nl_destroy_conntrack(inject, ct);
118 if (nl_create_conntrack(inject, ct, 0) == -1) {
120 dlog(LOG_ERR, "inject-upd2: %s", strerror(errno));
128 dlog(LOG_ERR, "inject-upd3: %s", strerror(errno));
134 if (nl_destroy_conntrack(inject, ct) == -1) {
137 dlog(LOG_ERR, "inject-del: %s", strerror(errno));
164 size = sprintf(buf, "external inject:\n"
192 if (nl_create_expect(inject, exp, 0) == -1) {
195 ret = nl_destroy_expect(inject, exp);
203 dlog(LOG_ERR, "inject-add1: %s", strerror(errno));
208 dlog(LOG_ERR, "inject-add2: %s", strerror(errno));
217 if (nl_destroy_expect(inject, exp) == -1) {
220 dlog(LOG_ERR, "inject-del: %s", strerror(errno));
247 size = sprintf(buf, "external inject:\n"