Lines Matching refs:mangle
46 struct arpt_mangle *mangle = (struct arpt_mangle *)target->data; in arpmangle_init() local
48 mangle->target = NF_ACCEPT; in arpmangle_init()
55 struct arpt_mangle *mangle = (struct arpt_mangle *)(*target)->data; in arpmangle_parse() local
67 mangle->u_s.src_ip.s_addr = ipaddr->s_addr; in arpmangle_parse()
69 mangle->flags |= ARPT_MANGLE_SIP; in arpmangle_parse()
73 mangle->u_t.tgt_ip.s_addr = ipaddr->s_addr; in arpmangle_parse()
75 mangle->flags |= ARPT_MANGLE_TIP; in arpmangle_parse()
92 memcpy(mangle->src_devaddr, macaddr, e->arp.arhln); in arpmangle_parse()
93 mangle->flags |= ARPT_MANGLE_SDEV; in arpmangle_parse()
108 memcpy(mangle->tgt_devaddr, macaddr, e->arp.arhln); in arpmangle_parse()
109 mangle->flags |= ARPT_MANGLE_TDEV; in arpmangle_parse()
113 mangle->target = NF_DROP; in arpmangle_parse()
115 mangle->target = NF_ACCEPT; in arpmangle_parse()
117 mangle->target = XT_CONTINUE; in arpmangle_parse()