Lines Matching defs:dir
126 static int snmp_translate(struct nf_conn *ct, int dir, struct sk_buff *skb)
135 if (dir == IP_CT_DIR_ORIGINAL) {
136 ctx.from = ct->tuplehash[dir].tuple.src.u3.ip;
137 ctx.to = ct->tuplehash[!dir].tuple.dst.u3.ip;
139 ctx.from = ct->tuplehash[!dir].tuple.src.u3.ip;
140 ctx.to = ct->tuplehash[dir].tuple.dst.u3.ip;
164 int dir = CTINFO2DIR(ctinfo);
170 if (udph->source == htons(SNMP_PORT) && dir != IP_CT_DIR_REPLY)
172 if (udph->dest == htons(SNMP_TRAP_PORT) && dir != IP_CT_DIR_ORIGINAL)
195 ret = snmp_translate(ct, dir, skb);