1 /* Shared library add-on to iptables for rpc match */
6 /* Function which prints out usage message. */
11 "record_rpc v%s takes no options\n"
12 "\n", IPTABLES_VERSION);
15 static struct option opts[] = {
20 init(struct ipt_entry_match *m, unsigned int *nfcache)
22 /* Can't cache this. */
23 *nfcache |= NFC_UNKNOWN;
27 /* Function which parses command options; returns true if it
30 parse(int c, char **argv, int invert, unsigned int *flags,
31 const struct ipt_entry *entry,
32 unsigned int *nfcache,
33 struct ipt_entry_match **match)
38 /* Final check; must have specified --mac. */
39 static void final_check(unsigned int flags)
43 /* Prints out the union ipt_matchinfo. */
45 print(const struct ipt_ip *ip,
46 const struct ipt_entry_match *match,
51 static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
56 struct iptables_match record_rpc
73 register_match(&record_rpc);