Lines Matching +full:full +full:- +full:bridge

32 #include "netdissect-stdinc.h"
43 * The NFLOG header is big-endian.
46 * big-endian or is an array of bytes in some externally-specified byte
47 * order (text string, link-layer address, link-layer header, packet
74 nd_byte pad[2]; /* padding to 32-bit boundary */
89 #define NFULA_IFINDEX_INDEV 4 /* ifindex of device on which packet received (possibly bridge group…
90 #define NFULA_IFINDEX_OUTDEV 5 /* ifindex of device on which packet transmitted (possibly bridge g…
91 …A_IFINDEX_PHYSINDEV 6 /* ifindex of physical device on which packet received (not bridge group) */
92 …FINDEX_PHYSOUTDEV 7 /* ifindex of physical device on which packet transmitted (not bridge group) */
95 #define NFULA_PREFIX 10 /* text string - null-terminated, count includes NUL */
101 #define NFULA_HWHEADER 16 /* skbuff's MAC-layer header */
102 #define NFULA_HWLEN 17 /* length of skbuff's MAC-layer header */
124 GET_U_1(hdr->nflog_version), GET_BE_U_2(hdr->nflog_rid)); in nflog_hdr_print()
126 if (!ndo->ndo_qflag) { in nflog_hdr_print()
129 GET_U_1(hdr->nflog_family)), in nflog_hdr_print()
130 GET_U_1(hdr->nflog_family)); in nflog_hdr_print()
135 GET_U_1(hdr->nflog_family))); in nflog_hdr_print()
148 u_int caplen = h->caplen; in nflog_if_print()
149 u_int length = h->len; in nflog_if_print()
151 ndo->ndo_protocol = "nflog"; in nflog_if_print()
154 ndo->ndo_ll_hdr_len += caplen; in nflog_if_print()
157 ndo->ndo_ll_hdr_len += NFLOG_HDR_LEN; in nflog_if_print()
160 if (GET_U_1(hdr->nflog_version) != 0) { in nflog_if_print()
161 ND_PRINT("version %u (unknown)", GET_U_1(hdr->nflog_version)); in nflog_if_print()
165 if (ndo->ndo_eflag) in nflog_if_print()
169 length -= NFLOG_HDR_LEN; in nflog_if_print()
170 caplen -= NFLOG_HDR_LEN; in nflog_if_print()
181 size = GET_HE_U_2(tlv->tlv_length); in nflog_if_print()
183 size += 4 - size % 4; in nflog_if_print()
189 /* Do we have enough data for the full TLV? */ in nflog_if_print()
193 if (GET_HE_U_2(tlv->tlv_type) == NFULA_PAYLOAD) { in nflog_if_print()
201 length -= NFLOG_TLV_LEN; in nflog_if_print()
202 caplen -= NFLOG_TLV_LEN; in nflog_if_print()
208 length -= size; in nflog_if_print()
209 caplen -= size; in nflog_if_print()
212 switch (GET_U_1(hdr->nflog_family)) { in nflog_if_print()
223 if (!ndo->ndo_eflag) in nflog_if_print()
227 if (!ndo->ndo_suppress_default_print) in nflog_if_print()
232 ndo->ndo_ll_hdr_len += h_size - NFLOG_HDR_LEN; in nflog_if_print()
236 ndo->ndo_ll_hdr_len += h_size - NFLOG_HDR_LEN; in nflog_if_print()