make new accessor functions consistent with existing style
This commit is contained in:
@@ -1299,11 +1299,13 @@ inp_ip_tos_set(struct inpcb *inp, int val)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
inp_4tuple_get(const struct inpcb *inp, uint32_t *laddr, uint16_t *lp, uint32_t *faddr, uint16_t *fp)
|
inp_4tuple_get(const struct inpcb *inp, uint32_t *laddr, uint16_t *lp,
|
||||||
|
uint32_t *faddr, uint16_t *fp)
|
||||||
{
|
{
|
||||||
memcpy(laddr, &inp->inp_laddr, 4);
|
|
||||||
memcpy(faddr, &inp->inp_faddr, 4);
|
|
||||||
|
|
||||||
|
INP_LOCK_ASSERT(inp);
|
||||||
|
*laddr = inp->inp_laddr;
|
||||||
|
*faddr = inp->inp_faddr;
|
||||||
*lp = inp->inp_lport;
|
*lp = inp->inp_lport;
|
||||||
*fp = inp->inp_fport;
|
*fp = inp->inp_fport;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -351,12 +351,15 @@ inp_unlock_assert(struct inpcb *inp __unused)
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void inp_apply_all(void (*func)(struct inpcb *, void *), void *arg);
|
void inp_apply_all(void (*func)(struct inpcb *, void *), void *arg);
|
||||||
int inp_ip_tos_get(const struct inpcb *inp);
|
int inp_ip_tos_get(const struct inpcb *inp);
|
||||||
void inp_ip_tos_set(struct inpcb *inp, int val);
|
void inp_ip_tos_set(struct inpcb *inp, int val);
|
||||||
struct socket *inp_inpcbtosocket(struct inpcb *inp);
|
struct socket *
|
||||||
struct tcpcb *inp_inpcbtotcpcb(struct inpcb *inp);
|
inp_inpcbtosocket(struct inpcb *inp);
|
||||||
void inp_4tuple_get(const struct inpcb *inp, uint32_t *laddr, uint16_t *lp, uint32_t *faddr, uint16_t *fp);
|
struct tcpcb *
|
||||||
|
inp_inpcbtotcpcb(struct inpcb *inp);
|
||||||
|
void inp_4tuple_get(const struct inpcb *inp, uint32_t *laddr, uint16_t *lp,
|
||||||
|
uint32_t *faddr, uint16_t *fp);
|
||||||
|
|
||||||
#endif /* _KERNEL */
|
#endif /* _KERNEL */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user