-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tom Herbert says: ==================== udp: UDP tunnel enhancements - Add udp_sock_create in new helper module udp_tunnel. Tunnel implementations call this function to create listener UDP ports. - Make vxlan and l2tp call udp_sock_create. - Move udp_tunnel_segment into udp_offload.c. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Showing
10 changed files
with
266 additions
and
226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#ifndef __NET_UDP_TUNNEL_H | ||
#define __NET_UDP_TUNNEL_H | ||
|
||
struct udp_port_cfg { | ||
u8 family; | ||
|
||
/* Used only for kernel-created sockets */ | ||
union { | ||
struct in_addr local_ip; | ||
#if IS_ENABLED(CONFIG_IPV6) | ||
struct in6_addr local_ip6; | ||
#endif | ||
}; | ||
|
||
union { | ||
struct in_addr peer_ip; | ||
#if IS_ENABLED(CONFIG_IPV6) | ||
struct in6_addr peer_ip6; | ||
#endif | ||
}; | ||
|
||
__be16 local_udp_port; | ||
__be16 peer_udp_port; | ||
unsigned int use_udp_checksums:1, | ||
use_udp6_tx_checksums:1, | ||
use_udp6_rx_checksums:1; | ||
}; | ||
|
||
int udp_sock_create(struct net *net, struct udp_port_cfg *cfg, | ||
struct socket **sockp); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.