| /linux/net/lapb/ |
| H A D | lapb_in.c | 3 * LAPB release 002 8 * LAPB 001 Jonathan Naulor Started Coding 9 * LAPB 002 Jonathan Naylor New timer architecture. 33 #include <net/lapb.h> 39 static void lapb_state0_machine(struct lapb_cb *lapb, struct sk_buff *skb, in lapb_state0_machine() argument 44 lapb_dbg(1, "(%p) S0 RX SABM(%d)\n", lapb->dev, frame->pf); in lapb_state0_machine() 45 if (lapb->mode & LAPB_EXTENDED) { in lapb_state0_machine() 47 lapb->dev, frame->pf); in lapb_state0_machine() 48 lapb_send_control(lapb, LAPB_DM, frame->pf, in lapb_state0_machine() 52 lapb->dev, frame->pf); in lapb_state0_machine() [all …]
|
| H A D | lapb_iface.c | 3 * LAPB release 002 8 * LAPB 001 Jonathan Naylor Started Coding 9 * LAPB 002 Jonathan Naylor New timer architecture. 37 #include <net/lapb.h> 43 * Free an allocated lapb control block. 45 static void lapb_free_cb(struct lapb_cb *lapb) in lapb_free_cb() argument 47 kfree(lapb); in lapb_free_cb() 50 static __inline__ void lapb_hold(struct lapb_cb *lapb) in lapb_hold() argument 52 refcount_inc(&lapb->refcnt); in lapb_hold() 55 static __inline__ void lapb_put(struct lapb_cb *lapb) in lapb_put() argument [all …]
|
| H A D | lapb_timer.c | 3 * LAPB release 002 8 * LAPB 001 Jonathan Naylor Started Coding 9 * LAPB 002 Jonathan Naylor New timer architecture. 31 #include <net/lapb.h> 36 void lapb_start_t1timer(struct lapb_cb *lapb) in lapb_start_t1timer() argument 38 timer_delete(&lapb->t1timer); in lapb_start_t1timer() 40 lapb->t1timer.function = lapb_t1timer_expiry; in lapb_start_t1timer() 41 lapb->t1timer.expires = jiffies + lapb->t1; in lapb_start_t1timer() 43 lapb->t1timer_running = true; in lapb_start_t1timer() 44 add_timer(&lapb->t1timer); in lapb_start_t1timer() [all …]
|
| H A D | lapb_out.c | 3 * LAPB release 002 8 * LAPB 001 Jonathan Naylor Started Coding 9 * LAPB 002 Jonathan Naylor New timer architecture. 31 #include <net/lapb.h> 37 static void lapb_send_iframe(struct lapb_cb *lapb, struct sk_buff *skb, int poll_bit) in lapb_send_iframe() argument 44 if (lapb->mode & LAPB_EXTENDED) { in lapb_send_iframe() 48 frame[0] |= lapb->vs << 1; in lapb_send_iframe() 50 frame[1] |= lapb->vr << 1; in lapb_send_iframe() 56 *frame |= lapb->vr << 5; in lapb_send_iframe() 57 *frame |= lapb->vs << 1; in lapb_send_iframe() [all …]
|
| H A D | lapb_subr.c | 3 * LAPB release 002 8 * LAPB 001 Jonathan Naylor Started Coding 30 #include <net/lapb.h> 35 void lapb_clear_queues(struct lapb_cb *lapb) in lapb_clear_queues() argument 37 skb_queue_purge(&lapb->write_queue); in lapb_clear_queues() 38 skb_queue_purge(&lapb->ack_queue); in lapb_clear_queues() 46 void lapb_frames_acked(struct lapb_cb *lapb, unsigned short nr) in lapb_frames_acked() argument 51 modulus = (lapb->mode & LAPB_EXTENDED) ? LAPB_EMODULUS : LAPB_SMODULUS; in lapb_frames_acked() 56 if (lapb->va != nr) in lapb_frames_acked() 57 while (skb_peek(&lapb->ack_queue) && lapb->va != nr) { in lapb_frames_acked() [all …]
|
| H A D | Kconfig | 3 # LAPB Data Link Drive 6 config LAPB config 7 tristate "LAPB Data Link Driver" 9 Link Access Procedure, Balanced (LAPB) is the data link layer (i.e. 14 Usually, LAPB is used with specialized X.21 network cards, but Linux 15 currently supports LAPB only over Ethernet connections. If you want 16 to use LAPB connections over Ethernet, say Y here and to "LAPB over 18 <file:Documentation/networking/lapb-module.rst> for technical 22 module will be called lapb. If unsure, say N.
|
| H A D | Makefile | 3 # Makefile for the Linux LAPB layer. 6 obj-$(CONFIG_LAPB) += lapb.o 8 lapb-y := lapb_in.o lapb_out.o lapb_subr.o lapb_timer.o lapb_iface.o
|
| /linux/Documentation/networking/ |
| H A D | lapb-module.rst | 4 The Linux LAPB Module Interface 13 The LAPB module will be a separately compiled module for use by any parts of 14 the Linux operating system that require a LAPB service. This document 16 term module in this context does not imply that the LAPB module is a 20 The interface to the LAPB module consists of functions to the module, 31 The two LAPB specific structures are the LAPB initialisation structure and 32 the LAPB parameter structure. These will be defined in a standard header 33 file, <linux/lapb.h>. The header file <net/lapb.h> is internal to the LAPB 36 LAPB Initialisation Structure 41 of the LAPB module:: [all …]
|
| H A D | x25-iface.rst | 12 setting of the LAPB mode from within the Packet Layer. 21 over the LAPB link. The first byte of the skbuff indicates the meaning of 31 over the LAPB link. The LAPB link should already exist before any data is 36 Establish the LAPB link. If the link is already established then the connect 41 Terminate the LAPB link. If it is already disconnected then the disconnect 46 LAPB parameters. To be defined. 55 received over the LAPB link. 59 LAPB link has been established. The same message is used for both a LAPB 64 LAPB link has been terminated. This same message is used for both a LAPB 69 LAPB parameters. To be defined.
|
| H A D | x25.rst | 9 Packet Layer and a LAPB module to allow for "normal" X.25 to be run using 11 implement LAPB on the card itself, and unintelligent ones that simply do 18 implementation of LAPB. Therefore the LAPB modules would be called by 26 being served by the LLC would be completely separate from LAPB.
|
| H A D | index.rst | 71 lapb-module
|
| /linux/include/net/ |
| H A D | lapb.h | 4 #include <linux/lapb.h> 7 #define LAPB_HEADER_LEN MAX_HEADER /* LAPB over Ethernet + a bit more */ 31 #define LAPB_SPF 0x10 /* Poll/final bit for standard LAPB */ 32 #define LAPB_EPF 0x01 /* Poll/final bit for extended LAPB */ 42 /* LAPB C-bit */ 81 * The per LAPB connection control structure. 112 void lapb_connect_confirmation(struct lapb_cb *lapb, int); 113 void lapb_connect_indication(struct lapb_cb *lapb, int); 114 void lapb_disconnect_confirmation(struct lapb_cb *lapb, int); 115 void lapb_disconnect_indication(struct lapb_cb *lapb, int); [all …]
|
| /linux/drivers/net/wan/ |
| H A D | lapbether.c | 3 * "LAPB via ethernet" driver release 001 7 * This is a "pseudo" network driver to allow LAPB over Ethernet. 39 #include <linux/lapb.h> 55 struct net_device *axdev; /* lapbeth device (lapb#) */ 69 /* Get the LAPB device for the ethernet device 109 /* Receive a LAPB frame via an ethernet interface. 183 /* Send a LAPB frame via an ethernet interface 392 ndev = alloc_netdev(sizeof(*lapbeth), "lapb%d", NET_NAME_UNKNOWN, in lapbeth_new_device() 399 * then the lapb module prepends an LAPB header of at most 3 bytes, in lapbeth_new_device() 433 /* Free a lapb network device. [all …]
|
| H A D | Kconfig | 89 depends on HDLC && (LAPB=m && HDLC=m || LAPB=y) 95 comment "X.25/LAPB support is disabled" 96 depends on HDLC && (LAPB!=m || HDLC!=m) && LAPB!=y 190 Frame Relay or X.25/LAPB. 246 tristate "LAPB over Ethernet driver" 247 depends on LAPB && X25 250 you to open an LAPB point-to-point connection to some other computer 254 Ethernet card as well as to "LAPB Data Link Driver".
|
| H A D | hdlc_x25.c | 16 #include <linux/lapb.h> 50 /* These functions are callbacks called by LAPB layer */ 153 netdev_err(dev, "LAPB connect request failed, error code = %i\n", in x25_xmit() 165 netdev_err(dev, "LAPB disconnect request failed, error code = %i\n", in x25_xmit() 355 * then we'll prepend an LAPB header of at most 3 bytes. in x25_ioctl()
|
| /linux/net/x25/ |
| H A D | Kconfig | 17 if you want that) and the lower level data link layer protocol LAPB 18 (say Y to "LAPB Data Link Driver" below if you want that). 28 Ethernet card and the LAPB over Ethernet (say Y to "LAPB Data Link 29 Driver" and "LAPB over Ethernet driver" below).
|
| H A D | x25_in.c | 417 /* Higher level upcall for a LAPB frame */
|
| /linux/include/linux/ |
| H A D | lapb.h | 3 * These are the public elements of the Linux LAPB module.
|
| /linux/Documentation/translations/zh_CN/networking/ |
| H A D | index.rst | 95 * lapb-module
|
| /linux/net/ |
| H A D | Makefile | 29 obj-$(CONFIG_LAPB) += lapb/
|
| H A D | Kconfig | 265 source "net/lapb/Kconfig"
|
| /linux/include/uapi/linux/ |
| H A D | atmsap.h | 28 #define ATM_L2_LAPB 0x08 /* Extended LAPB, half-duplex (Rec. T.71) */
|
| H A D | if_arp.h | 61 #define ARPHRD_LAPB 516 /* LAPB */
|
| /linux/ |
| H A D | CREDITS | 3000 D: CCITT X.25 PLP and LAPB.
|
| H A D | MAINTAINERS | 29180 F: Documentation/networking/lapb-module.rst 29184 F: include/*/lapb.h 29187 F: net/lapb/
|