static void print(const struct ipt_ip *ip, const struct xt_entry_target *target,
		  int numeric)
{
	const struct xt_nflog_info *info = (struct xt_nflog_info *)target->data;

	nflog_print(info, "");
}
Example #2
0
u_int
nflog_if_print(struct netdissect_options *ndo,
			   const struct pcap_pkthdr *h, const u_char *p)
{

	nflog_print(ndo, p, h->len, h->caplen);
	return (sizeof(nflog_hdr_t));
}
Example #3
0
u_int
nflog_if_print(struct netdissect_options *ndo,
	       const struct pcap_pkthdr *h, const u_char *p)
{
	if (h->len < 104 || h->caplen < 104) {
		ND_PRINT((ndo, "[!nflog]"));
		return h->caplen;
	}

	nflog_print(ndo, p + 104, h->len - 104, h->caplen - 104);

	return 104;
}
u_int
nflog_if_print(struct netdissect_options *ndo,
               const struct pcap_pkthdr *h, const u_char *p)
{
    int j = 0;

    /* Discard NFLOG header */
    for (j = 0; j < 104; j++) {
        *p++;
    }

	nflog_print(ndo, p, h->len - 104, h->caplen - 104);

	return 0;
}
static void save(const struct ipt_ip *ip, const struct xt_entry_target *target)
{
	const struct xt_nflog_info *info = (struct xt_nflog_info *)target->data;

	nflog_print(info, "--");
}