libiptc entry_match
Never mind worked it out
----- Original Message ----- From: "VeNoMouS" <[email protected]>
To: <[email protected]>
Sent: Tuesday, March 08, 2005 11:41 AM
Subject: libiptc entry_match
Quoted 20 lines
Is there any other way of getting the CORRECT data from match structures apart from
match->print(...)ie
char *list_label(const struct ipt_entry_match *m,const struct ipt_ip *ip){
structiptables_match*match =find_match(m->u.user.name, TRY_LOAD, NULL); structipt_label_info*info=(structipt_label_info*)m->data;match->print(ip, m, 1)
}i only require the
m->datadata but if i do a rule likeiptables -I INPUT -m label --label "smtp" -p tcp --dport 25
i can read label fine, if i do
iptables -I INPUT -p tcp --dport 25 -m label --label "smtp"
label becomes blank unless i call
match->print(...), which i dont want because the data i want is not intended for stdout... any ideas??