In j1939 we need our own struct sock::sk_destruct callback. Export the generic af_can can_sock_destruct() that allows us to chain-call it.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -65,5 +65,6 @@ extern void can_rx_unregister(struct net *net, struct net_device *dev, · 64 unmodified lines | |||
| 65 | void *data); | 65 | void *data); |
| 66 | 66 | ||
| 67 | extern int can_send(struct sk_buff *skb, int loop); | 67 | extern int can_send(struct sk_buff *skb, int loop); |
| 68 | void can_sock_destruct(struct sock *sk); | ||
| 68 | 69 | ||
| 69 | #endif /* !_CAN_CORE_H */ | 70 | #endif /* !_CAN_CORE_H */ |