/freebsd-13-stable/sys/netgraph/ |
H A D | ng_frame_relay.c | 73 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) >> 158 ngfrm_allocate_CTX(sc_p sc, int dlci) argument 239 int dlci = 0; local 333 int dlci; local 414 u_int dlci = 0; local 488 int dlci; local [all...] |
H A D | ng_sample.c | 124 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 D | ng_lmi.c | 138 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-13-stable/share/examples/netgraph/ |
H A D | frame_relay | 3 # 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-13-stable/contrib/tcpdump/ |
H A D | print-fr.c | 102 const u_char *p, u_int *dlci, 113 *dlci = ((p[0] & 0xFC) << 2) | ((p[1] & 0xF0) >> 4); 129 *dlci = (*dlci << 7) | (p[0] >> 1); 142 *dlci = (*dlci << 6) | (p[0] >> 2); 151 static u_int dlci, addr_len; local 156 if (parse_q922_addr(ndo, p, &dlci, &addr_len, flags, length) == 1){ 157 snprintf(buffer, sizeof(buffer), "DLCI %u", dlci); 192 int length, u_int addr_len, u_int dlci, uint8_ 101 parse_q922_addr(netdissect_options *ndo, const u_char *p, u_int *dlci, u_int *addr_len, uint8_t *flags, u_int length) argument 191 fr_hdr_print(netdissect_options *ndo, int length, u_int addr_len, u_int dlci, uint8_t *flags, uint16_t nlpid) argument 242 u_int dlci; local 1079 u_int dlci; local [all...] |
/freebsd-13-stable/sys/netgraph/bluetooth/include/ |
H A D | ng_btsocket_rfcomm.h | 155 u_int8_t dlci; member in struct:rfcomm_mcc_rpn 174 u_int8_t dlci; member in struct:rfcomm_mcc_pn 193 #define RFCOMM_SRVCHANNEL(dlci) ((dlci) >> 1) 195 #define RFCOMM_MKADDRESS(cr, dlci) \ 196 ((((dlci) & 0x3f) << 2) | ((cr) << 1) | 0x01) 291 u_int8_t dlci; /* RFCOMM DLCI */ member in struct:ng_btsocket_rfcomm_pcb
|
/freebsd-13-stable/sys/netgraph/bluetooth/socket/ |
H A D | ng_btsocket_rfcomm.c | 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); 144 (ng_btsocket_rfcomm_session_p s, int dlci, int pf, struct mbuf *m0); 164 (ng_btsocket_rfcomm_session_p s, u_int8_t type, u_int8_t dlci); 180 (ng_btsocket_rfcomm_session_p s, int dlci); 513 int dlci, error = 0; local 577 dlci = RFCOMM_MKDLCI(!INITIATOR(s), sa->rfcomm_channel); 579 if (ng_btsocket_rfcomm_pcb_by_dlci(s, dlci) ! 1830 u_int8_t dlci, type; local 1962 ng_btsocket_rfcomm_receive_sabm(ng_btsocket_rfcomm_session_p s, int dlci) argument 2078 ng_btsocket_rfcomm_receive_disc(ng_btsocket_rfcomm_session_p s, int dlci) argument 2141 ng_btsocket_rfcomm_receive_ua(ng_btsocket_rfcomm_session_p s, int dlci) argument 2225 ng_btsocket_rfcomm_receive_dm(ng_btsocket_rfcomm_session_p s, int dlci) argument 2271 ng_btsocket_rfcomm_receive_uih(ng_btsocket_rfcomm_session_p s, int dlci, int pf, struct mbuf *m0) argument 2964 ng_btsocket_rfcomm_send_command(ng_btsocket_rfcomm_session_p s, u_int8_t type, u_int8_t dlci) argument 3376 ng_btsocket_rfcomm_pcb_by_dlci(ng_btsocket_rfcomm_session_p s, int dlci) argument [all...] |
/freebsd-13-stable/sys/net/ |
H A D | if_spppfr.c | 168 int dlci, hlen, proto; local 175 dlci = (h[0] << 2 & 0x3f0) | (h[1] >> 4 & 0x0f); 178 if (dlci == 0) { 184 if (dlci != sp->fr_dlci) { 187 SPP_ARGS(ifp), dlci); 522 int dlci; local 588 dlci = (p[2] << 4 & 0x3f0) | (p[3] >> 3 & 0x0f); 590 sp->fr_dlci = dlci; 593 SPP_ARGS(ifp), dlci,
|
/freebsd-13-stable/sbin/sconfig/ |
H A D | sconfig.c | 78 "\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-13-stable/usr.bin/bluetooth/btsockstat/ |
H A D | btsockstat.c | 478 pcb.dlci,
|