Home
last modified time | relevance | path

Searched refs:frame (Results 1 – 25 of 29) sorted by relevance

12

/net/lapb/
Dlapb_in.c45 struct lapb_frame *frame) in lapb_state0_machine() argument
47 switch (frame->type) { in lapb_state0_machine()
49 lapb_dbg(1, "(%p) S0 RX SABM(%d)\n", lapb->dev, frame->pf); in lapb_state0_machine()
52 lapb->dev, frame->pf); in lapb_state0_machine()
53 lapb_send_control(lapb, LAPB_DM, frame->pf, in lapb_state0_machine()
57 lapb->dev, frame->pf); in lapb_state0_machine()
59 lapb_send_control(lapb, LAPB_UA, frame->pf, in lapb_state0_machine()
74 lapb_dbg(1, "(%p) S0 RX SABME(%d)\n", lapb->dev, frame->pf); in lapb_state0_machine()
77 lapb->dev, frame->pf); in lapb_state0_machine()
79 lapb_send_control(lapb, LAPB_UA, frame->pf, in lapb_state0_machine()
[all …]
Dlapb_subr.c112 struct lapb_frame *frame) in lapb_decode() argument
114 frame->type = LAPB_ILLEGAL; in lapb_decode()
129 frame->cr = LAPB_COMMAND; in lapb_decode()
131 frame->cr = LAPB_RESPONSE; in lapb_decode()
134 frame->cr = LAPB_COMMAND; in lapb_decode()
136 frame->cr = LAPB_RESPONSE; in lapb_decode()
141 frame->cr = LAPB_COMMAND; in lapb_decode()
143 frame->cr = LAPB_RESPONSE; in lapb_decode()
146 frame->cr = LAPB_COMMAND; in lapb_decode()
148 frame->cr = LAPB_RESPONSE; in lapb_decode()
[all …]
Dlapb_out.c44 unsigned char *frame; in lapb_send_iframe() local
50 frame = skb_push(skb, 2); in lapb_send_iframe()
52 frame[0] = LAPB_I; in lapb_send_iframe()
53 frame[0] |= lapb->vs << 1; in lapb_send_iframe()
54 frame[1] = poll_bit ? LAPB_EPF : 0; in lapb_send_iframe()
55 frame[1] |= lapb->vr << 1; in lapb_send_iframe()
57 frame = skb_push(skb, 1); in lapb_send_iframe()
59 *frame = LAPB_I; in lapb_send_iframe()
60 *frame |= poll_bit ? LAPB_SPF : 0; in lapb_send_iframe()
61 *frame |= lapb->vr << 5; in lapb_send_iframe()
[all …]
/net/x25/
Dx25_subr.c272 unsigned char *frame; in x25_decode() local
276 frame = skb->data; in x25_decode()
280 switch (frame[2]) { in x25_decode()
294 return frame[2]; in x25_decode()
298 if (frame[2] == X25_RR || in x25_decode()
299 frame[2] == X25_RNR || in x25_decode()
300 frame[2] == X25_REJ) { in x25_decode()
303 frame = skb->data; in x25_decode()
305 *nr = (frame[3] >> 1) & 0x7F; in x25_decode()
306 return frame[2]; in x25_decode()
[all …]
DKconfig9 frame relay; the one physical line from your box to the X.25 network
/net/ax25/
Dax25_subr.c102 unsigned char *frame; in ax25_decode() local
105 frame = skb->data; in ax25_decode()
109 if ((frame[0] & AX25_S) == 0) { in ax25_decode()
111 *ns = (frame[0] >> 1) & 0x07; in ax25_decode()
112 *nr = (frame[0] >> 5) & 0x07; in ax25_decode()
113 *pf = frame[0] & AX25_PF; in ax25_decode()
114 } else if ((frame[0] & AX25_U) == 1) { /* S frame - take out PF/NR */ in ax25_decode()
115 frametype = frame[0] & 0x0F; in ax25_decode()
116 *nr = (frame[0] >> 5) & 0x07; in ax25_decode()
117 *pf = frame[0] & AX25_PF; in ax25_decode()
[all …]
Dax25_out.c217 unsigned char *frame; in ax25_send_iframe() local
225 frame = skb_push(skb, 1); in ax25_send_iframe()
227 *frame = AX25_I; in ax25_send_iframe()
228 *frame |= (poll_bit) ? AX25_PF : 0; in ax25_send_iframe()
229 *frame |= (ax25->vr << 5); in ax25_send_iframe()
230 *frame |= (ax25->vs << 1); in ax25_send_iframe()
232 frame = skb_push(skb, 2); in ax25_send_iframe()
234 frame[0] = AX25_I; in ax25_send_iframe()
235 frame[0] |= (ax25->vs << 1); in ax25_send_iframe()
236 frame[1] = (poll_bit) ? AX25_EPF : 0; in ax25_send_iframe()
[all …]
/net/irda/
Dirlap_frame.c123 struct snrm_frame *frame; in irlap_send_snrm_frame() local
136 frame = (struct snrm_frame *) skb_put(tx_skb, 2); in irlap_send_snrm_frame()
140 frame->caddr = CMD_FRAME | CBROADCAST; in irlap_send_snrm_frame()
142 frame->caddr = CMD_FRAME | self->caddr; in irlap_send_snrm_frame()
145 frame->control = SNRM_CMD | PF_BIT; in irlap_send_snrm_frame()
152 frame->saddr = cpu_to_le32(self->saddr); in irlap_send_snrm_frame()
153 frame->daddr = cpu_to_le32(self->daddr); in irlap_send_snrm_frame()
155 frame->ncaddr = self->caddr; in irlap_send_snrm_frame()
175 struct snrm_frame *frame; in irlap_recv_snrm_cmd() local
178 frame = (struct snrm_frame *) skb->data; in irlap_recv_snrm_cmd()
[all …]
Dirttp.c296 __u8 *frame; in irttp_fragment_skb() local
323 frame = skb_push(frag, TTP_HEADER); in irttp_fragment_skb()
324 frame[0] = TTP_MORE; in irttp_fragment_skb()
335 frame = skb_push(skb, TTP_HEADER); in irttp_fragment_skb()
336 frame[0] = 0x00; /* Clear more bit */ in irttp_fragment_skb()
602 __u8 *frame; in irttp_data_request() local
668 frame = skb_push(skb, TTP_HEADER); in irttp_data_request()
669 frame[0] = 0x00; /* Clear more bit */ in irttp_data_request()
1110 __u8 *frame; in irttp_connect_request() local
1172 frame = skb_push(tx_skb, TTP_HEADER+TTP_SAR_HEADER); in irttp_connect_request()
[all …]
Dirlmp_frame.c61 __u8 *frame; in irlmp_send_lcf_pdu() local
69 frame = skb->data; in irlmp_send_lcf_pdu()
71 frame[0] = dlsap | CONTROL_BIT; in irlmp_send_lcf_pdu()
72 frame[1] = slsap; in irlmp_send_lcf_pdu()
74 frame[2] = opcode; in irlmp_send_lcf_pdu()
77 frame[3] = 0x01; /* Service user request */ in irlmp_send_lcf_pdu()
79 frame[3] = 0x00; /* rsvd */ in irlmp_send_lcf_pdu()
Diriap.c383 __u8 *frame; in iriap_getvaluebyclass_request() local
414 frame = tx_skb->data; in iriap_getvaluebyclass_request()
417 frame[0] = IAP_LST | GET_VALUE_BY_CLASS; in iriap_getvaluebyclass_request()
418 frame[1] = name_len; /* Insert length of name */ in iriap_getvaluebyclass_request()
419 memcpy(frame+2, name, name_len); /* Insert name */ in iriap_getvaluebyclass_request()
420 frame[2+name_len] = attr_len; /* Insert length of attr */ in iriap_getvaluebyclass_request()
421 memcpy(frame+3+name_len, attr, attr_len); /* Insert attr */ in iriap_getvaluebyclass_request()
715 __u8 *frame; in iriap_send_ack() local
729 frame = tx_skb->data; in iriap_send_ack()
732 frame[0] = IAP_LST | IAP_ACK | self->operation; in iriap_send_ack()
[all …]
DKconfig55 connection. Enabling this option will save a hash-lookup per frame.
69 Fast RR will make IrLAP send out a RR frame immediately when
70 receiving a frame if its own transmit queue is currently empty. This
75 start backing-off before sending another RR frame, waiting longer
/net/irda/irlan/
Dirlan_common.c638 __u8 *frame; in irlan_get_provider_info() local
654 frame = skb->data; in irlan_get_provider_info()
656 frame[0] = CMD_GET_PROVIDER_INFO; in irlan_get_provider_info()
657 frame[1] = 0x00; /* Zero parameters */ in irlan_get_provider_info()
671 __u8 *frame; in irlan_open_data_channel() local
688 frame = skb->data; in irlan_open_data_channel()
691 frame[0] = CMD_OPEN_DATA_CHANNEL; in irlan_open_data_channel()
692 frame[1] = 0x02; /* Two parameters */ in irlan_open_data_channel()
706 __u8 *frame; in irlan_close_data_channel() local
726 frame = skb->data; in irlan_close_data_channel()
[all …]
Dirlan_client.c366 __u8 *frame; in irlan_client_parse_response() local
386 frame = skb->data; in irlan_client_parse_response()
391 if (frame[0]) { in irlan_client_parse_response()
392 print_ret_code(frame[0]); in irlan_client_parse_response()
406 count = frame[1]; in irlan_client_parse_response()
410 ptr = frame+2; in irlan_client_parse_response()
Dirlan_provider.c225 __u8 *frame; in irlan_provider_parse_command() local
244 frame = skb->data; in irlan_provider_parse_command()
256 count = frame[1]; in irlan_provider_parse_command()
260 ptr = frame+2; in irlan_provider_parse_command()
/net/ieee802154/
D6lowpan.c679 struct lowpan_fragment *frame; in lowpan_alloc_new_frame() local
681 frame = kzalloc(sizeof(struct lowpan_fragment), in lowpan_alloc_new_frame()
683 if (!frame) in lowpan_alloc_new_frame()
686 INIT_LIST_HEAD(&frame->list); in lowpan_alloc_new_frame()
688 frame->length = len; in lowpan_alloc_new_frame()
689 frame->tag = tag; in lowpan_alloc_new_frame()
692 frame->skb = netdev_alloc_skb_ip_align(skb->dev, frame->length + in lowpan_alloc_new_frame()
695 if (!frame->skb) in lowpan_alloc_new_frame()
698 frame->skb->priority = skb->priority; in lowpan_alloc_new_frame()
699 frame->skb->dev = skb->dev; in lowpan_alloc_new_frame()
[all …]
/net/rose/
Drose_subr.c203 unsigned char *frame; in rose_decode() local
205 frame = skb->data; in rose_decode()
209 switch (frame[2]) { in rose_decode()
216 return frame[2]; in rose_decode()
221 if ((frame[2] & 0x1F) == ROSE_RR || in rose_decode()
222 (frame[2] & 0x1F) == ROSE_RNR) { in rose_decode()
223 *nr = (frame[2] >> 5) & 0x07; in rose_decode()
224 return frame[2] & 0x1F; in rose_decode()
227 if ((frame[2] & 0x01) == ROSE_DATA) { in rose_decode()
228 *q = (frame[0] & ROSE_Q_BIT) == ROSE_Q_BIT; in rose_decode()
[all …]
/net/wireless/
Dutil.c568 struct sk_buff *frame = NULL; in ieee80211_amsdu_to_8023s() local
588 while (skb != frame) { in ieee80211_amsdu_to_8023s()
605 frame = skb; in ieee80211_amsdu_to_8023s()
612 frame = dev_alloc_skb(hlen + subframe_len + 2); in ieee80211_amsdu_to_8023s()
613 if (!frame) in ieee80211_amsdu_to_8023s()
616 skb_reserve(frame, hlen + sizeof(struct ethhdr) + 2); in ieee80211_amsdu_to_8023s()
617 memcpy(skb_put(frame, ntohs(len)), skb->data, in ieee80211_amsdu_to_8023s()
623 dev_kfree_skb(frame); in ieee80211_amsdu_to_8023s()
628 skb_reset_network_header(frame); in ieee80211_amsdu_to_8023s()
629 frame->dev = skb->dev; in ieee80211_amsdu_to_8023s()
[all …]
/net/mac80211/
Doffchannel.c194 if (!WARN_ON(!roc->frame)) { in ieee80211_handle_roc_started()
195 ieee80211_tx_skb_tid_band(roc->sdata, roc->frame, 7, in ieee80211_handle_roc_started()
197 roc->frame = NULL; in ieee80211_handle_roc_started()
308 if (roc->frame) { in ieee80211_roc_notify_destroy()
310 (unsigned long)roc->frame, in ieee80211_roc_notify_destroy()
311 roc->frame->data, roc->frame->len, in ieee80211_roc_notify_destroy()
313 kfree_skb(roc->frame); in ieee80211_roc_notify_destroy()
Dtx.c2612 const void *frame, size_t frame_len, in ieee80211_rts_get() argument
2616 const struct ieee80211_hdr *hdr = frame; in ieee80211_rts_get()
2628 const void *frame, size_t frame_len, in ieee80211_ctstoself_get() argument
2632 const struct ieee80211_hdr *hdr = frame; in ieee80211_ctstoself_get()
/net/bridge/netfilter/
DKconfig10 ebtables is a general, extensible frame/packet identification
32 The ebtables filter table is used to define frame filtering rules at
104 the 'nfmark' value in the frame. This can be set by the mark target.
159 setting the 'nfmark' value in the frame.
169 destination address of a frame to that of the device it arrived on.
187 in any ebtables table. It records info about the frame header
/net/dcb/
DKconfig18 Priority-based Flow Control (PFC) - a MAC control pause frame which
/net/irda/ircomm/
Dircomm_tty_ioctl.c413 put_user(cnow.frame, &p_cuser->frame) || in ircomm_tty_ioctl()
/net/packet/
Daf_packet.c297 static void __packet_set_status(struct packet_sock *po, void *frame, int status) in __packet_set_status() argument
301 h.raw = frame; in __packet_set_status()
320 static int __packet_get_status(struct packet_sock *po, void *frame) in __packet_get_status() argument
326 h.raw = frame; in __packet_get_status()
362 static __u32 __packet_set_timestamp(struct packet_sock *po, void *frame, in __packet_set_timestamp() argument
372 h.raw = frame; in __packet_set_timestamp()
1937 void *frame, struct net_device *dev, int size_max, in tpacket_fill_skb() argument
1947 ph.raw = frame; in tpacket_fill_skb()
/net/ipx/
Daf_ipx.c1257 const char *ipx_frame_name(__be16 frame) in ipx_frame_name() argument
1261 switch (ntohs(frame)) { in ipx_frame_name()

12