Home
last modified time | relevance | path

Searched refs:li (Results 1 – 6 of 6) sorted by relevance

/net/netfilter/
Dnft_log.c136 struct nf_loginfo *li = &priv->loginfo; in nft_log_init() local
140 li->type = NF_LOG_TYPE_LOG; in nft_log_init()
145 li->type = NF_LOG_TYPE_ULOG; in nft_log_init()
160 switch (li->type) { in nft_log_init()
163 li->u.log.level = in nft_log_init()
166 li->u.log.level = NFT_LOGLEVEL_WARNING; in nft_log_init()
168 if (li->u.log.level > NFT_LOGLEVEL_AUDIT) { in nft_log_init()
174 li->u.log.logflags = in nft_log_init()
176 if (li->u.log.logflags & ~NF_LOG_MASK) { in nft_log_init()
183 li->u.ulog.group = ntohs(nla_get_be16(tb[NFTA_LOG_GROUP])); in nft_log_init()
[all …]
Dxt_NFLOG.c25 struct nf_loginfo li; in nflog_tg() local
27 li.type = NF_LOG_TYPE_ULOG; in nflog_tg()
28 li.u.ulog.copy_len = info->len; in nflog_tg()
29 li.u.ulog.group = info->group; in nflog_tg()
30 li.u.ulog.qthreshold = info->threshold; in nflog_tg()
31 li.u.ulog.flags = 0; in nflog_tg()
34 li.u.ulog.flags |= NF_LOG_F_COPY_LEN; in nflog_tg()
37 xt_out(par), &li, "%s", info->prefix); in nflog_tg()
Dxt_LOG.c33 struct nf_loginfo li; in log_tg() local
35 li.type = NF_LOG_TYPE_LOG; in log_tg()
36 li.u.log.level = loginfo->level; in log_tg()
37 li.u.log.logflags = loginfo->logflags; in log_tg()
40 xt_out(par), &li, "%s", loginfo->prefix); in log_tg()
Dnfnetlink_log.c681 const struct nf_loginfo *li; in nfulnl_log_packet() local
690 li = li_user; in nfulnl_log_packet()
692 li = &default_loginfo; in nfulnl_log_packet()
694 inst = instance_lookup_get(log, li->u.ulog.group); in nfulnl_log_packet()
745 if (li->u.ulog.qthreshold) in nfulnl_log_packet()
746 if (qthreshold > li->u.ulog.qthreshold) in nfulnl_log_packet()
747 qthreshold = li->u.ulog.qthreshold; in nfulnl_log_packet()
758 if ((li->u.ulog.flags & NF_LOG_F_COPY_LEN) && in nfulnl_log_packet()
759 (li->u.ulog.copy_len < data_len)) in nfulnl_log_packet()
760 data_len = li->u.ulog.copy_len; in nfulnl_log_packet()
/net/bridge/netfilter/
Debt_nflog.c28 struct nf_loginfo li; in ebt_nflog_tg() local
30 li.type = NF_LOG_TYPE_ULOG; in ebt_nflog_tg()
31 li.u.ulog.copy_len = info->len; in ebt_nflog_tg()
32 li.u.ulog.group = info->group; in ebt_nflog_tg()
33 li.u.ulog.qthreshold = info->threshold; in ebt_nflog_tg()
34 li.u.ulog.flags = 0; in ebt_nflog_tg()
37 xt_out(par), &li, "%s", info->prefix); in ebt_nflog_tg()
Debt_log.c182 struct nf_loginfo li; in ebt_log_tg() local
185 li.type = NF_LOG_TYPE_LOG; in ebt_log_tg()
186 li.u.log.level = info->loglevel; in ebt_log_tg()
187 li.u.log.logflags = info->bitmask; in ebt_log_tg()
195 xt_in(par), xt_out(par), &li, "%s", in ebt_log_tg()
199 xt_in(par), xt_out(par), &li, info->prefix); in ebt_log_tg()