u_int8_t satype;
u_int8_t state;
int cnt;
- struct sadb_msg *newmsg;
struct mbuf *n;
/* sanity check */
return key_senderror(so, m, ENOENT);
/* send this to the userland, one at a time. */
- newmsg = NULL;
LIST_FOREACH(sah, &sahtree, chain) {
if (mhp->msg->sadb_msg_satype != SADB_SATYPE_UNSPEC
&& proto != sah->saidx.proto)
static int
ipcomp_input_cb(struct cryptop *crp)
{
- struct cryptodesc *crd;
struct tdb_crypto *tc;
int skip, protoff;
- struct mtag *mtag;
struct mbuf *m;
struct secasvar *sav;
struct secasindex *saidx;
u_int8_t nproto;
caddr_t addr;
- crd = crp->crp_desc;
-
tc = (struct tdb_crypto *) crp->crp_opaque;
KASSERT(tc != NULL, ("ipcomp_input_cb: null opaque crypto data area!"));
skip = tc->tc_skip;
protoff = tc->tc_protoff;
- mtag = (struct mtag *) tc->tc_ptr;
m = (struct mbuf *) crp->crp_buf;
crit_enter();
int cmd = msg->ctlinput.nm_cmd;
struct sockaddr *arg_as_sa = msg->ctlinput.nm_arg;
caddr_t arg = (/* XXX */ caddr_t)arg_as_sa;
- struct ipx_addr *ipx;
struct sockaddr_ipx *sipx;
if (cmd < 0 || cmd > PRC_NCMDS)
sipx = (struct sockaddr_ipx *)arg;
if (sipx->sipx_family != AF_IPX)
break;
- ipx = &sipx->sipx_addr;
break;
default:
int cmd = msg->ctlinput.nm_cmd;
struct sockaddr *arg_as_sa = msg->ctlinput.nm_arg;
caddr_t arg = (/* XXX */ caddr_t)arg_as_sa;
- struct ipx_addr *na;
struct sockaddr_ipx *sipx;
if (cmd < 0 || cmd > PRC_NCMDS)
sipx = (struct sockaddr_ipx *)arg;
if (sipx->sipx_family != AF_IPX)
break;
- na = &sipx->sipx_addr;
break;
default:
break;
u_int8_t satype;
u_int8_t state;
int cnt;
- struct sadb_msg *newmsg;
struct mbuf *n;
/* sanity check */
return key_senderror(so, m, ENOENT);
/* send this to the userland, one at a time. */
- newmsg = NULL;
LIST_FOREACH(sah, &sahtree, chain) {
if (mhp->msg->sadb_msg_satype != SADB_SATYPE_UNSPEC
&& proto != sah->saidx.proto)
{
struct sadb_msg *msg;
struct sadb_msghdr mh;
- u_int orglen;
int error;
int target;
return ENOBUFS;
}
msg = mtod(m, struct sadb_msg *);
- orglen = PFKEY_UNUNIT64(msg->sadb_msg_len);
target = KEY_SENDUP_ONE;
if ((m->m_flags & M_PKTHDR) == 0 ||
* SUCH DAMAGE.
*
* $FreeBSD: src/sys/netncp/ncp_ncp.c,v 1.3 1999/10/29 10:21:07 bp Exp $
- * $DragonFly: src/sys/netproto/ncp/ncp_ncp.c,v 1.15 2007/04/22 01:13:16 dillon Exp $
*
* Core of NCP protocol
*/
int
ncp_ncp_disconnect(struct ncp_conn *conn) {
int error;
- struct ncp_rqhdr *ncprq;
DECLARE_RQ;
NCPSDEBUG("for connid=%d\n",conn->nc_id);
ncp_burst_disconnect(conn);
#endif
error=ncp_rq_head(rqp,NCP_FREE_SLOT,0,conn->td,conn->ucred);
- ncprq = mtod(rqp->rq,struct ncp_rqhdr*);
error=ncp_do_request(conn,rqp);
ncp_rq_done(rqp);
ncp_conn_invalidate(conn);
* SUCH DAMAGE.
*
* $FreeBSD: src/sys/netsmb/smb_iod.c,v 1.1.2.2 2002/04/23 03:45:01 bp Exp $
- * $DragonFly: src/sys/netproto/smb/smb_iod.c,v 1.15 2007/02/03 17:05:58 corecode Exp $
*/
#include <sys/param.h>
{
/* struct smb_vc *vcp = iod->iod_vc;*/
struct smbiod_event *evp;
-/* struct timespec tsnow;*/
- int error;
+#if 0
+ struct timespec tsnow;
+#endif
SMBIODEBUG("\n");
- error = 0;
/*
* Check all interesting events
u_int16_t tw, tw1;*/
smb_uniptr unipp, ntencpass = NULL;
char *pp, *up, *pbuf, *encpass;
- int error, plen, uniplen, ulen;
+ int error, plen, uniplen;
vcp->vc_smbuid = SMB_UID_UNKNOWN;
smb_rq_wstart(rqp);
mbp = &rqp->sr_rq;
up = vcp->vc_username;
- ulen = strlen(up) + 1;
mb_put_uint8(mbp, 0xff);
mb_put_uint8(mbp, 0);
mb_put_uint16le(mbp, 0);
smb_smb_treedisconnect(struct smb_share *ssp, struct smb_cred *scred)
{
struct smb_rq *rqp;
- struct mbchain *mbp;
int error;
if (ssp->ss_tid == SMB_TID_UNKNOWN)
error = smb_rq_alloc(SSTOCP(ssp), SMB_COM_TREE_DISCONNECT, scred, &rqp);
if (error)
return error;
- mbp = &rqp->sr_rq;
smb_rq_wstart(rqp);
smb_rq_wend(rqp);
smb_rq_bstart(rqp);