mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 00:22:00 +02:00
nf-next pull request 2023-08-08
-----BEGIN PGP SIGNATURE----- iQJBBAABCAArFiEEgKkgxbID4Gn1hq6fcJGo2a1f9gAFAmTSNyYNHGZ3QHN0cmxl bi5kZQAKCRBwkajZrV/2AOpyD/4pRjBvLgU0O+33x3l/X8z80QW6VMwq6PDUDmNA t0AFnhIx0v6yky0abLzGGV9q2N9SLdNltTsqb0pem00f1TncKR1BlHNttfU+yjS+ qmkuUTJ8HixxkbBRKB9E7kA3IPM2aj1gxd3sji/QHKMT8XtcE5ufoad8/jcM9px2 FHNHJ8Onwl8ohjV4qNeuPe8XWm47pN/FeaxK7jRrKJaCal0P96sT8AGf/Rvx5VNY jCysb2+fIKMzHssbLcRr1UDMJJFqtcQx0alnzwxh4sEPsmgYYR7UGmcDku4pSbtB uJBrjMnLpORpw1l2syuYiiyEy+VRAAIjWAUxb6oTOvDhj1Yj2ki/915b/Hl/jnqa q8EUm6i+B4CuiE8LCj0WLG2gKO7vRjFnDH/Li/qiFMUHzW/HmnLRituxTVTXwopC 1CxFkekNIklxLr+n21dP6f+NJU9hIs1nw+iy0JhLffTV8u6TosZ3Ve5ZInUQ4Bna hZUyksy1s42fi0oGHN1Gi3AWPhUIlH69lKXTOher/9PvC+rL5/l8LFVywqtYxT4t HWJwBtpm58IrsDttgPm6fnJqIgrm5mcW+FJYqP9Td6NjUvyfafhJsdhXJ9Bs1lJV SfJp4iEUkOx4bfUi0rDFb/8NR2fwrCpbbgYx2xdS+tHQ2BkRlAOxYJC9Q8YP2vxH Mjgc9w== =XfrS -----END PGP SIGNATURE----- Merge tag 'nf-next-2023-08-08' of https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next Florian Westphal says: ==================== netfilter updates for net-next First 4 Patches, from Yue Haibing, remove unused prototypes in various netfilter headers. Last patch makes nfnetlink_log to always include a packet timestamp, up to now it was only included if the skb had assigned previously. From Maciej Żenczykowski. * tag 'nf-next-2023-08-08' of https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next: netfilter: nfnetlink_log: always add a timestamp netfilter: h323: Remove unused function declarations netfilter: conntrack: Remove unused function declarations netfilter: helper: Remove unused function declarations netfilter: gre: Remove unused function declaration nf_ct_gre_keymap_flush() ==================== Link: https://lore.kernel.org/r/20230808124159.19046-1-fw@strlen.de Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
commit
052059b663
|
|
@ -34,10 +34,6 @@ struct nf_ct_h323_master {
|
|||
int get_h225_addr(struct nf_conn *ct, unsigned char *data,
|
||||
TransportAddress *taddr, union nf_inet_addr *addr,
|
||||
__be16 *port);
|
||||
void nf_conntrack_h245_expect(struct nf_conn *new,
|
||||
struct nf_conntrack_expect *this);
|
||||
void nf_conntrack_q931_expect(struct nf_conn *new,
|
||||
struct nf_conntrack_expect *this);
|
||||
|
||||
struct nfct_h323_nat_hooks {
|
||||
int (*set_h245_addr)(struct sk_buff *skb, unsigned int protoff,
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ struct nf_ct_gre_keymap {
|
|||
int nf_ct_gre_keymap_add(struct nf_conn *ct, enum ip_conntrack_dir dir,
|
||||
struct nf_conntrack_tuple *t);
|
||||
|
||||
void nf_ct_gre_keymap_flush(struct net *net);
|
||||
/* delete keymap entries */
|
||||
void nf_ct_gre_keymap_destroy(struct nf_conn *ct);
|
||||
|
||||
|
|
|
|||
|
|
@ -190,10 +190,6 @@ static inline void nf_ct_put(struct nf_conn *ct)
|
|||
nf_ct_destroy(&ct->ct_general);
|
||||
}
|
||||
|
||||
/* Protocol module loading */
|
||||
int nf_ct_l3proto_try_module_get(unsigned short l3proto);
|
||||
void nf_ct_l3proto_module_put(unsigned short l3proto);
|
||||
|
||||
/* load module; enable/disable conntrack in this namespace */
|
||||
int nf_ct_netns_get(struct net *net, u8 nfproto);
|
||||
void nf_ct_netns_put(struct net *net, u8 nfproto);
|
||||
|
|
|
|||
|
|
@ -78,6 +78,4 @@ static inline void nf_ct_acct_update(struct nf_conn *ct, u32 dir,
|
|||
|
||||
void nf_conntrack_acct_pernet_init(struct net *net);
|
||||
|
||||
void nf_conntrack_acct_fini(void);
|
||||
|
||||
#endif /* _NF_CONNTRACK_ACCT_H */
|
||||
|
|
|
|||
|
|
@ -136,8 +136,6 @@ static inline void *nfct_help_data(const struct nf_conn *ct)
|
|||
return (void *)help->data;
|
||||
}
|
||||
|
||||
void nf_conntrack_helper_pernet_init(struct net *net);
|
||||
|
||||
int nf_conntrack_helper_init(void);
|
||||
void nf_conntrack_helper_fini(void);
|
||||
|
||||
|
|
@ -182,5 +180,4 @@ void nf_nat_helper_unregister(struct nf_conntrack_nat_helper *nat);
|
|||
int nf_nat_helper_try_module_get(const char *name, u16 l3num,
|
||||
u8 protonum);
|
||||
void nf_nat_helper_put(struct nf_conntrack_helper *helper);
|
||||
void nf_ct_set_auto_assign_helper_warned(struct net *net);
|
||||
#endif /*_NF_CONNTRACK_HELPER_H*/
|
||||
|
|
|
|||
|
|
@ -52,7 +52,6 @@ int nf_connlabels_replace(struct nf_conn *ct,
|
|||
const u32 *data, const u32 *mask, unsigned int words);
|
||||
|
||||
#ifdef CONFIG_NF_CONNTRACK_LABELS
|
||||
int nf_conntrack_labels_init(void);
|
||||
int nf_connlabels_get(struct net *net, unsigned int bit);
|
||||
void nf_connlabels_put(struct net *net);
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -470,7 +470,6 @@ __build_packet_message(struct nfnl_log_net *log,
|
|||
sk_buff_data_t old_tail = inst->skb->tail;
|
||||
struct sock *sk;
|
||||
const unsigned char *hwhdrp;
|
||||
ktime_t tstamp;
|
||||
|
||||
nlh = nfnl_msg_put(inst->skb, 0, 0,
|
||||
nfnl_msg_type(NFNL_SUBSYS_ULOG, NFULNL_MSG_PACKET),
|
||||
|
|
@ -599,10 +598,9 @@ __build_packet_message(struct nfnl_log_net *log,
|
|||
goto nla_put_failure;
|
||||
}
|
||||
|
||||
tstamp = skb_tstamp_cond(skb, false);
|
||||
if (hooknum <= NF_INET_FORWARD && tstamp) {
|
||||
if (hooknum <= NF_INET_FORWARD) {
|
||||
struct timespec64 kts = ktime_to_timespec64(skb_tstamp_cond(skb, true));
|
||||
struct nfulnl_msg_packet_timestamp ts;
|
||||
struct timespec64 kts = ktime_to_timespec64(tstamp);
|
||||
ts.sec = cpu_to_be64(kts.tv_sec);
|
||||
ts.usec = cpu_to_be64(kts.tv_nsec / NSEC_PER_USEC);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user