Searched refs:dlci (Results 1 - 10 of 10) sorted by relevance

/freebsd-10.0-release/sys/netgraph/
H A Dng_frame_relay.c73 int dlci; /* the dlci assigned to this context */ member in struct:ctxinfo
77 #define MAX_CT 16 /* # of dlci's active at a time (POWER OF 2!) */
100 #define LASTBYTE_D_C 0x02 /* last byte is dl_core or dlci info */
114 #define SHIFTIN(segment, byte, dlci) \
116 (dlci) <<= (segment)->width; \
117 (dlci) |= \
121 #define SHIFTOUT(segment, byte, dlci) \
123 (byte) |= (((dlci) << (segment)->shift) & (segment)->mask); \
124 (dlci) >>
156 ngfrm_allocate_CTX(sc_p sc, int dlci) argument
237 int dlci = 0; local
332 int dlci; local
419 u_int dlci = 0; local
498 int dlci; local
[all...]
H A Dng_sample.c124 int dlci; /* The DLCI it represents, -1 == downstream */ member in struct:XXX_hookinfo
159 privdata->channel[i].dlci = -2;
179 * (a dlci is a frame relay channel)
186 int dlci = 0; local
197 * hooks start with 'dlci' and have a decimal trailing channel
207 dlci = (int)strtoul(cp, &eptr, 10);
208 if (*eptr != '\0' || dlci < 0 || dlci > 1023)
211 /* We have a dlci, now either find it, or allocate it */
213 if (xxxp->channel[chan].dlci
329 int dlci = -2; local
[all...]
H A Dng_lmi.c138 int invalidx; /* next dlci's to invalidate */
469 pos += sprintf(arg + pos, "auto on dlci %d\n",
483 "dlci %d %s\n", count,
557 unsigned short dlci; local
688 dlci = ((u_short) data[2] & 0xff) << 8;
689 dlci |= (data[3] & 0xff);
690 if ((dlci < 1024) && (dlci > 0)) {
695 dlci = ((u_short) data[2] & 0x3f) << 4;
696 dlci |
740 unsigned short dlci; local
[all...]
/freebsd-10.0-release/share/examples/netgraph/
H A Dframe_relay3 # The dlci used is selected below. The default is 16
12 # Attach the dlci output of the (de)multiplexor to a new
16 # Also attach dlci 1023, as it needs both to try auto-configuring.
23 ngctl mkpeer ${CARD}:rawdata rfc1490 dlci${DLCI} downstream
29 ngctl mkpeer ${CARD}:rawdata.dlci${DLCI} iface inet inet
32 # ngctl connect ${CARD}:rawdata.dlci${DLCI} ng0: inet inet
44 # ngctl mkpeer mux: rfc1490 dlci${DLCI} downstream
45 # ngctl mux:dlci${DLCI} protomux
/freebsd-10.0-release/contrib/tcpdump/
H A Dprint-fr.c105 static int parse_q922_addr(const u_char *p, u_int *dlci, argument
112 *dlci = ((p[0] & 0xFC) << 2) | ((p[1] & 0xF0) >> 4);
125 *dlci = (*dlci << 7) | (p[0] >> 1);
135 *dlci = (*dlci << 6) | (p[0] >> 2);
142 static u_int dlci, addr_len; local
147 if (parse_q922_addr(p, &dlci, &addr_len, flags) == 0){
148 snprintf(buffer, sizeof(buffer), "DLCI %u", dlci);
191 fr_hdr_print(int length, u_int addr_len, u_int dlci, u_int8_ argument
238 u_int dlci; local
831 u_int dlci; local
[all...]
/freebsd-10.0-release/sys/netgraph/bluetooth/include/
H A Dng_btsocket_rfcomm.h153 u_int8_t dlci; member in struct:rfcomm_mcc_rpn
172 u_int8_t dlci; member in struct:rfcomm_mcc_pn
191 #define RFCOMM_SRVCHANNEL(dlci) ((dlci) >> 1)
193 #define RFCOMM_MKADDRESS(cr, dlci) \
194 ((((dlci) & 0x3f) << 2) | ((cr) << 1) | 0x01)
289 u_int8_t dlci; /* RFCOMM DLCI */ member in struct:ng_btsocket_rfcomm_pcb
/freebsd-10.0-release/sys/netgraph/bluetooth/socket/
H A Dng_btsocket_rfcomm.c134 (ng_btsocket_rfcomm_session_p s, int dlci);
136 (ng_btsocket_rfcomm_session_p s, int dlci);
138 (ng_btsocket_rfcomm_session_p s, int dlci);
140 (ng_btsocket_rfcomm_session_p s, int dlci);
142 (ng_btsocket_rfcomm_session_p s, int dlci, int pf, struct mbuf *m0);
162 (ng_btsocket_rfcomm_session_p s, u_int8_t type, u_int8_t dlci);
178 (ng_btsocket_rfcomm_session_p s, int dlci);
505 int dlci, error = 0; local
569 dlci = RFCOMM_MKDLCI(!INITIATOR(s), sa->rfcomm_channel);
571 if (ng_btsocket_rfcomm_pcb_by_dlci(s, dlci) !
1843 u_int8_t dlci, type; local
1975 ng_btsocket_rfcomm_receive_sabm(ng_btsocket_rfcomm_session_p s, int dlci) argument
2091 ng_btsocket_rfcomm_receive_disc(ng_btsocket_rfcomm_session_p s, int dlci) argument
2154 ng_btsocket_rfcomm_receive_ua(ng_btsocket_rfcomm_session_p s, int dlci) argument
2238 ng_btsocket_rfcomm_receive_dm(ng_btsocket_rfcomm_session_p s, int dlci) argument
2284 ng_btsocket_rfcomm_receive_uih(ng_btsocket_rfcomm_session_p s, int dlci, int pf, struct mbuf *m0) argument
2978 ng_btsocket_rfcomm_send_command(ng_btsocket_rfcomm_session_p s, u_int8_t type, u_int8_t dlci) argument
3390 ng_btsocket_rfcomm_pcb_by_dlci(ng_btsocket_rfcomm_session_p s, int dlci) argument
[all...]
/freebsd-10.0-release/sys/net/
H A Dif_spppfr.c173 int dlci, hlen, proto; local
180 dlci = (h[0] << 2 & 0x3f0) | (h[1] >> 4 & 0x0f);
183 if (dlci == 0) {
189 if (dlci != sp->fr_dlci) {
192 SPP_ARGS(ifp), dlci);
547 int dlci; local
613 dlci = (p[2] << 4 & 0x3f0) | (p[3] >> 3 & 0x0f);
615 sp->fr_dlci = dlci;
618 SPP_ARGS(ifp), dlci,
/freebsd-10.0-release/sbin/sconfig/
H A Dsconfig.c78 "\t dlci<number>\t -- Add new DLCI\n"
734 int higain, clk, keepalive, debug, port, dlci, invrclk, invtclk; local
891 } else if (strncasecmp ("dlci", argv[i], 4) == 0) {
892 dlci = strtol (argv[i]+4, 0, 10);
893 ioctl (fd, SERIAL_ADDDLCI, &dlci);
/freebsd-10.0-release/usr.bin/bluetooth/btsockstat/
H A Dbtsockstat.c475 pcb.dlci,

Completed in 161 milliseconds