函数名称:p_route_connect() and ip_route_newports() work in tandem whilst* binding a socket for a new outgoing connection.* In order to use IPSEC properly, we must, in the end, have a* route that was looked up using all available keys including source
函数原型:static inline void ip_route_connect_init(struct flowi4 *fl4, __be32 dst, __be32 src, u32 tos, int oif, u8 protocol, __be16 sport, __be16 dport, struct sock *sk)
返回类型:void
参数:
| 
类型 | 参数 | 名称 | 
|---|
| struct flowi4 * | fl4 |  | 
| __be32 | dst |  | 
| __be32 | src |  | 
| u32 | tos |  | 
| int | oif |  | 
| u8 | protocol |  | 
| __be16 | sport |  | 
| __be16 | dport |  | 
| struct sock * | sk |  |