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:
bms 2004-02-12 20:16:09 +00:00
parent 7c4d7ecee0
commit afe7ed20e4
3 changed files with 5 additions and 5 deletions

View File

@ -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 */

View File

@ -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 */

View File

@ -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 */