Update the prototype for tcpsignature_apply() to reflect the spelling of
the types used by m_apply()'s callback function, f, as documented in mbuf(9). Noticed by: njl
This commit is contained in:
parent
7c4d7ecee0
commit
afe7ed20e4
@ -2029,10 +2029,10 @@ tcpsignature_compute(struct mbuf *m, int off0, int len, int optlen,
|
||||
}
|
||||
|
||||
int
|
||||
tcpsignature_apply(void *fstate, void *data, unsigned int len)
|
||||
tcpsignature_apply(void *fstate, void *data, u_int len)
|
||||
{
|
||||
|
||||
MD5Update((MD5_CTX *)fstate, (unsigned char *)data, len);
|
||||
MD5Update((MD5_CTX *)fstate, (unsigned char *)data, (unsigned int)len);
|
||||
return (0);
|
||||
}
|
||||
#endif /* TCP_SIGNATURE */
|
||||
|
@ -2029,10 +2029,10 @@ tcpsignature_compute(struct mbuf *m, int off0, int len, int optlen,
|
||||
}
|
||||
|
||||
int
|
||||
tcpsignature_apply(void *fstate, void *data, unsigned int len)
|
||||
tcpsignature_apply(void *fstate, void *data, u_int len)
|
||||
{
|
||||
|
||||
MD5Update((MD5_CTX *)fstate, (unsigned char *)data, len);
|
||||
MD5Update((MD5_CTX *)fstate, (unsigned char *)data, (unsigned int)len);
|
||||
return (0);
|
||||
}
|
||||
#endif /* TCP_SIGNATURE */
|
||||
|
@ -569,7 +569,7 @@ void tcp_hc_updatetao(struct in_conninfo *, int, tcp_cc, u_short);
|
||||
#define TCP_HC_TAO_MSSOPT 0x3
|
||||
|
||||
#ifdef TCP_SIGNATURE
|
||||
int tcpsignature_apply(void *fstate, void *data, unsigned int len);
|
||||
int tcpsignature_apply(void *fstate, void *data, u_int len);
|
||||
int tcpsignature_compute(struct mbuf *m, int off0, int len, int tcpoptlen,
|
||||
u_char *buf, u_int direction);
|
||||
#endif /* TCP_SIGNATURE */
|
||||
|
Loading…
Reference in New Issue
Block a user