Searched refs:ncp (Results 1 - 25 of 73) sorted by relevance

123

/freebsd-9.3-release/usr.sbin/ppp/
H A Dncp.h35 struct ncp { struct
57 extern void ncp_Init(struct ncp *, struct bundle *);
58 extern void ncp_Destroy(struct ncp *);
59 extern int ncp_fsmStart(struct ncp *, struct bundle *);
60 extern void ncp_IfaceAddrAdded(struct ncp *, const struct iface_addr *);
61 extern void ncp_IfaceAddrDeleted(struct ncp *, const struct iface_addr *);
62 extern void ncp_SetLink(struct ncp *, struct link *);
63 extern void ncp_Enqueue(struct ncp *, int, unsigned, char *, int);
64 extern void ncp_DeleteQueues(struct ncp *);
65 extern size_t ncp_QueueLen(struct ncp *);
[all...]
H A Dncp.c70 #include "ncp.h"
96 ncp_Init(struct ncp *ncp, struct bundle *bundle) argument
98 ncp->afq = AF_INET;
99 ncp->route = NULL;
101 ncp->cfg.urgent.tcp.port = (u_short *)malloc(NDEFTCPPORTS * sizeof(u_short));
102 if (ncp->cfg.urgent.tcp.port == NULL) {
104 ncp->cfg.urgent.tcp.nports = ncp->cfg.urgent.tcp.maxports = 0;
106 ncp
127 ncp_Destroy(struct ncp *ncp) argument
147 ncp_fsmStart(struct ncp *ncp, struct bundle *bundle __unused ) argument
177 ncp_IfaceAddrAdded(struct ncp *ncp, const struct iface_addr *addr) argument
192 ncp_IfaceAddrDeleted(struct ncp *ncp, const struct iface_addr *addr) argument
199 ncp_SetLink(struct ncp *ncp, struct link *l) argument
212 ncp_Enqueue(struct ncp *ncp, int af, unsigned pri, char *ptr, int count) argument
265 ncp_QueueLen(struct ncp *ncp) argument
284 ncp_DeleteQueues(struct ncp *ncp) argument
313 ncp_FillPhysicalQueues(struct ncp *ncp, struct bundle *bundle) argument
444 struct ncp *ncp = &arg->bundle->ncp; local
496 ncp_LayersOpen(struct ncp *ncp) argument
509 ncp_LayersUnfinished(struct ncp *ncp) argument
527 ncp_Close(struct ncp *ncp) argument
541 ncp2initial(struct ncp *ncp) argument
[all...]
H A Diface.h58 extern void iface_Clear(struct iface *, struct ncp *, int, int);
61 extern int iface_Add(struct iface *, struct ncp *, const struct ncprange *,
63 extern int iface_Delete(struct iface *, struct ncp *, const struct ncpaddr *);
H A Dncpaddr.h59 struct ncp;
77 extern int ncpaddr_aton(struct ncpaddr *, struct ncp *, const char *);
106 extern int ncprange_aton(struct ncprange *, struct ncp *, const char *);
H A Dcommand.c94 #include "ncp.h"
538 oin = bundle->ncp.ipcp.throughput.OctetsIn;
539 oout = bundle->ncp.ipcp.throughput.OctetsOut;
540 pin = bundle->ncp.ipcp.throughput.PacketsIn;
541 pout = bundle->ncp.ipcp.throughput.PacketsOut;
543 oin += bundle->ncp.ipv6cp.throughput.OctetsIn;
544 oout += bundle->ncp.ipv6cp.throughput.OctetsOut;
545 pin += bundle->ncp.ipv6cp.throughput.PacketsIn;
546 pout += bundle->ncp.ipv6cp.throughput.PacketsOut;
552 nargv[arg] = substip(nargv[arg], "DNS0", bundle->ncp
1562 struct ncp *ncp = &arg->bundle->ncp; local
[all...]
H A Dvjcomp.c66 #include "ncp.h"
78 u_short cproto = bundle->ncp.ipcp.peer_compproto >> 16;
84 type = sl_compress_tcp(bp, pip, &bundle->ncp.ipcp.vj.cslc,
85 &bundle->ncp.ipcp.vj.slstat,
86 bundle->ncp.ipcp.peer_compproto & 0xff);
184 return VjUncompressTcp(&bundle->ncp.ipcp, bp, type);
H A Dipcp.c90 #include "ncp.h"
222 char *cp, *cp_nons, *ncp, ch; local
232 while ((ncp = strstr(cp, "nameserver")) != NULL) {
233 if (ncp != cp) {
234 memcpy(cp_nons, cp, ncp - cp);
235 cp_nons += ncp - cp;
237 if ((ncp != cp && ncp[-1] != '\n') || !issep(ncp[10])) {
238 memcpy(cp_nons, ncp,
1375 struct ncp *ncp = &bundle->ncp; local
[all...]
H A Dbundle.c83 #include "ncp.h"
149 if (ncp_fsmStart(&bundle->ncp, bundle)) {
160 mp_Down(&bundle->ncp.mp);
219 ncp_DeleteQueues(&bundle->ncp);
254 mp_CheckAutoloadTimer(&bundle->ncp.mp);
285 mp_CheckAutoloadTimer(&bundle->ncp.mp);
287 if (ncp_LayersOpen(&fp->bundle->ncp) == 1) {
295 mp_CheckAutoloadTimer(&fp->bundle->ncp.mp);
319 if (ncp_LayersOpen(&fp->bundle->ncp) == 0) {
326 mp_StopAutoloadTimer(&bundle->ncp
[all...]
H A Dslcompress.c80 #include "ncp.h"
593 arg->bundle->ncp.ipcp.vj.slstat.sls_compressed,
594 arg->bundle->ncp.ipcp.vj.slstat.sls_packets);
596 arg->bundle->ncp.ipcp.vj.slstat.sls_misses,
597 arg->bundle->ncp.ipcp.vj.slstat.sls_searches);
599 arg->bundle->ncp.ipcp.vj.slstat.sls_compressedin,
600 arg->bundle->ncp.ipcp.vj.slstat.sls_uncompressedin);
602 arg->bundle->ncp.ipcp.vj.slstat.sls_errorin,
603 arg->bundle->ncp.ipcp.vj.slstat.sls_tossed);
H A Dncpaddr.c66 #include "ncp.h"
411 ncpaddr_aton(struct ncpaddr *addr, struct ncp *ncp, const char *data) argument
415 if (!ncprange_aton(&range, ncp, data))
905 ncprange_aton(struct ncprange *range, struct ncp *ncp, const char *data) argument
914 if (ncp && strncasecmp(data, "HISADDR", len) == 0) {
916 range->ncprange_ip4addr = ncp->ipcp.peer_ip;
921 } else if (ncp && strncasecmp(data, "HISADDR6", len) == 0) {
923 range->ncprange_ip6addr = ncp
[all...]
H A Dbundle.h122 struct ncp ncp; member in struct:bundle
/freebsd-9.3-release/sys/netncp/
H A Dncp_conn.c41 #include <netncp/ncp.h>
196 ncp_conn_invalidate(struct ncp_conn *ncp) argument
198 ncp->flags &= ~(NCPFL_ATTACHED | NCPFL_LOGGED | NCPFL_INVALID);
202 ncp_conn_invalid(struct ncp_conn *ncp) argument
204 return ncp->flags & NCPFL_INVALID;
214 struct ncp_conn *ncp; local
235 ncp = malloc(sizeof(struct ncp_conn),
238 lockinit(&ncp->nc_lock, PZERO, "ncplck", 0, 0);
240 ncp->nc_id = ncp_next_ref++;
241 ncp
264 ncp_conn_free(struct ncp_conn *ncp) argument
319 ncp_conn_reconnect(struct ncp_conn *ncp) argument
384 struct ncp_conn *ncp; local
406 struct ncp_conn *ncp, *ncp2 = NULL; local
448 struct ncp_conn *ncp, *ncp2 = NULL; local
500 struct ncp_conn *ncp=NULL; local
622 ncp_conn_getinfo(struct ncp_conn *ncp, struct ncp_conn_stat *ncs) argument
644 struct ncp_conn *ncp; local
[all...]
H A Dncp_subr.c41 #include <netncp/ncp.h>
79 struct ncp_conn *ncp, *nncp; local
88 for (ncp = SLIST_FIRST(&conn_list); ncp; ncp = nncp) {
89 nncp = SLIST_NEXT(ncp, nc_next);
90 if (ncp_conn_lock(ncp, td, td->td_ucred,
93 if (ncp_conn_free(ncp) != 0)
94 ncp_conn_unlock(ncp, td);
H A Dncp_sock.h38 int ncp_sock_connect(struct ncp_conn *ncp);
H A Dncp_rq.c44 #include <netncp/ncp.h>
57 ncp_rq_alloc_any(u_int32_t ptype, u_int8_t fn, struct ncp_conn *ncp, argument
65 error = ncp_rq_init_any(rqp, ptype, fn, ncp, td, cred);
76 ncp_rq_alloc(u_int8_t fn, struct ncp_conn *ncp, argument
79 return ncp_rq_alloc_any(NCP_REQUEST, fn, ncp, td, cred, rqpp);
83 ncp_rq_alloc_subfn(u_int8_t fn, u_int8_t subfn, struct ncp_conn *ncp, argument
89 error = ncp_rq_alloc_any(NCP_REQUEST, fn, ncp, td, cred, &rqp);
100 struct ncp_conn *ncp,
109 error = ncp_conn_access(ncp, cred, NCPM_EXECUTE);
114 rqp->nr_conn = ncp;
99 ncp_rq_init_any(struct ncp_rq *rqp, u_int32_t ptype, u_int8_t fn, struct ncp_conn *ncp, struct thread *td, struct ucred *cred) argument
447 struct ncp_conn *ncp = rqp->nr_conn; local
[all...]
H A Dncp_login.c37 #include <netncp/ncp.h>
H A Dncp_conn.h49 #define NCPFL_ATTACHED 0x0002 /* ncp layer is up */
90 int timeout; /* ncp rq timeout */
101 /* user side structure to issue ncp calls */
103 int rqsize; /* request size without ncp header */
104 int rpsize; /* reply size minus ncp header */
173 /* Fields used to process ncp requests */
199 void ncp_conn_invalidate(struct ncp_conn *ncp);
200 int ncp_conn_invalid(struct ncp_conn *ncp);
216 int ncp_conn_getinfo(struct ncp_conn *ncp, struct ncp_conn_stat *ncs);
218 int ncp_conn_reconnect(struct ncp_conn *ncp);
[all...]
H A Dncp_rq.h59 * Structure to prepare ncp request and receive reply
66 int nr_rpsize; /* reply size minus ncp header */
75 int ncp_rq_alloc(u_int8_t fn, struct ncp_conn *ncp, struct thread *td,
77 int ncp_rq_alloc_any(u_int32_t ptype, u_int8_t fn, struct ncp_conn *ncp,
79 int ncp_rq_alloc_subfn(u_int8_t fn, u_int8_t subfn, struct ncp_conn *ncp,
82 struct ncp_conn *ncp,
/freebsd-9.3-release/lib/libc/rpc/
H A Dgetnetconfig.c110 struct netconfig *ncp; member in struct:netconfig_list
246 struct netconfig_vars *ncp = (struct netconfig_vars *)handlep; local
256 if (ncp == NULL || nc_file == NULL) {
263 switch (ncp->valid) {
273 if (ncp->flag == 0) { /* first time */
274 ncp->flag = 1;
276 ncp->nc_configs = ni.head;
278 if (ncp->nc_configs != NULL) /* entry already exist */
279 return(ncp->nc_configs->ncp);
453 struct netconfig *ncp = NULL; /* returned value */ local
[all...]
H A Dgetnetpath.c54 struct netconfig *ncp; /* an nconf entry */ member in struct:netpath_chain
149 struct netconfig *ncp = NULL; /* temp. holds a netconfig session */ local
150 struct netpath_chain *chainp; /* holds chain of ncp's we alloc */
164 if ((ncp = getnetconfig(np_sessionp->nc_handlep)) == NULL) {
167 } while ((ncp->nc_flag & NC_VISIBLE) == 0);
168 return (ncp);
178 if ((ncp = getnetconfigent(npp)) != NULL) {
181 chainp->ncp = ncp;
188 return (ncp);
[all...]
/freebsd-9.3-release/sys/kern/
H A Dvfs_cache.c220 cache_free(struct namecache *ncp) argument
224 if (ncp == NULL)
226 ts = ncp->nc_flag & NCF_TS;
227 if (ncp->nc_nlen <= CACHE_PATH_CUTOFF) {
229 uma_zfree(cache_zone_small_ts, ncp);
231 uma_zfree(cache_zone_small, ncp);
233 uma_zfree(cache_zone_large_ts, ncp);
235 uma_zfree(cache_zone_large, ncp);
239 nc_get_name(struct namecache *ncp) argument
243 if ((ncp
250 cache_out_ts(struct namecache *ncp, struct timespec *tsp, int *ticksp) argument
329 struct namecache *ncp; local
360 struct namecache *ncp; local
479 struct namecache *ncp; local
713 struct namecache *ncp, *n2; local
970 struct namecache *cp, *ncp; local
990 struct namecache *ncp, *nnp; local
1216 struct namecache *ncp; local
1399 struct namecache *ncp; local
1421 struct namecache *ncp; local
[all...]
/freebsd-9.3-release/lib/libncp/
H A DMakefile3 LIB= ncp
/freebsd-9.3-release/sys/modules/ncp/
H A DMakefile5 KMOD= ncp
/freebsd-9.3-release/sys/fs/msdosfs/
H A Dfat.h100 int extendfile(struct denode *dep, u_long count, struct buf **bpp, u_long *ncp, int flags);
/freebsd-9.3-release/sys/fs/nwfs/
H A Dnwfs.h32 #include <netncp/ncp.h>

Completed in 142 milliseconds

123