mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
VSOCK: Add vsockmon tap functions
Add tap functions that can be used by the vsock transports to deliver packets to vsockmon virtual network devices. Signed-off-by: Gerard Garcia <[email protected]> Signed-off-by: Stefan Hajnoczi <[email protected]> Reviewed-by: Jorgen Hansen <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
ac2291ce1f
commit
531b374834
5 changed files with 130 additions and 1 deletions
|
|
@ -188,4 +188,17 @@ struct sock *vsock_find_connected_socket(struct sockaddr_vm *src,
|
|||
void vsock_remove_sock(struct vsock_sock *vsk);
|
||||
void vsock_for_each_connected_socket(void (*fn)(struct sock *sk));
|
||||
|
||||
/**** TAP ****/
|
||||
|
||||
struct vsock_tap {
|
||||
struct net_device *dev;
|
||||
struct module *module;
|
||||
struct list_head list;
|
||||
};
|
||||
|
||||
int vsock_init_tap(void);
|
||||
int vsock_add_tap(struct vsock_tap *vt);
|
||||
int vsock_remove_tap(struct vsock_tap *vt);
|
||||
void vsock_deliver_tap(struct sk_buff *build_skb(void *opaque), void *opaque);
|
||||
|
||||
#endif /* __AF_VSOCK_H__ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue