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
[] = {
19 /* Function which parses command options; returns true if it
22 parse(int c
, char **argv
, int invert
, unsigned int *flags
,
23 const struct ipt_entry
*entry
,
24 unsigned int *nfcache
,
25 struct ipt_entry_match
**match
)
30 /* Final check; must have specified --mac. */
31 static void final_check(unsigned int flags
)
35 /* Prints out the union ipt_matchinfo. */
37 print(const struct ipt_ip
*ip
,
38 const struct ipt_entry_match
*match
,
43 static void save(const struct ipt_ip
*ip
, const struct ipt_entry_match
*match
)
48 struct iptables_match record_rpc
= {
51 .version
= IPTABLES_VERSION
,
53 .userspacesize
= IPT_ALIGN(0),
56 .final_check
= &final_check
,
64 register_match(&record_rpc
);