Trying to fix compilation bustage:
- removing 'const' qualifier from an input parameter to conform to the type required by rw_assert(); - using in_addr->s_addr to retrive 32 bits address value. Observed by: tinderbox
This commit is contained in:
parent
09400d5abe
commit
df9cf830d1
@ -1299,13 +1299,13 @@ inp_ip_tos_set(struct inpcb *inp, int val)
|
||||
}
|
||||
|
||||
void
|
||||
inp_4tuple_get(const struct inpcb *inp, uint32_t *laddr, uint16_t *lp,
|
||||
inp_4tuple_get(struct inpcb *inp, uint32_t *laddr, uint16_t *lp,
|
||||
uint32_t *faddr, uint16_t *fp)
|
||||
{
|
||||
|
||||
INP_LOCK_ASSERT(inp);
|
||||
*laddr = inp->inp_laddr;
|
||||
*faddr = inp->inp_faddr;
|
||||
*laddr = inp->inp_laddr.s_addr;
|
||||
*faddr = inp->inp_faddr.s_addr;
|
||||
*lp = inp->inp_lport;
|
||||
*fp = inp->inp_fport;
|
||||
}
|
||||
|
@ -358,7 +358,7 @@ struct socket *
|
||||
inp_inpcbtosocket(struct inpcb *inp);
|
||||
struct tcpcb *
|
||||
inp_inpcbtotcpcb(struct inpcb *inp);
|
||||
void inp_4tuple_get(const struct inpcb *inp, uint32_t *laddr, uint16_t *lp,
|
||||
void inp_4tuple_get(struct inpcb *inp, uint32_t *laddr, uint16_t *lp,
|
||||
uint32_t *faddr, uint16_t *fp);
|
||||
|
||||
#endif /* _KERNEL */
|
||||
|
Loading…
Reference in New Issue
Block a user