Home
last modified time | relevance | path

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

/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()
127 frame->cr = LAPB_COMMAND; in lapb_decode()
129 frame->cr = LAPB_RESPONSE; in lapb_decode()
132 frame->cr = LAPB_COMMAND; in lapb_decode()
134 frame->cr = LAPB_RESPONSE; in lapb_decode()
139 frame->cr = LAPB_COMMAND; in lapb_decode()
141 frame->cr = LAPB_RESPONSE; in lapb_decode()
144 frame->cr = LAPB_COMMAND; in lapb_decode()
146 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/hsr/
Dhsr_forward.c94 struct hsr_frame_info *frame) in create_stripped_skb() argument
112 if (frame->is_vlan) in create_stripped_skb()
122 static struct sk_buff *frame_get_stripped_skb(struct hsr_frame_info *frame, in frame_get_stripped_skb() argument
125 if (!frame->skb_std) in frame_get_stripped_skb()
126 frame->skb_std = create_stripped_skb(frame->skb_hsr, frame); in frame_get_stripped_skb()
127 return skb_clone(frame->skb_std, GFP_ATOMIC); in frame_get_stripped_skb()
131 static void hsr_fill_tag(struct sk_buff *skb, struct hsr_frame_info *frame, in hsr_fill_tag() argument
144 if (frame->is_vlan) in hsr_fill_tag()
151 hsr_ethhdr->hsr_tag.sequence_nr = htons(frame->sequence_nr); in hsr_fill_tag()
158 struct hsr_frame_info *frame, in create_tagged_skb() argument
[all …]
/net/x25/
Dx25_subr.c269 unsigned char *frame; in x25_decode() local
273 frame = skb->data; in x25_decode()
277 switch (frame[2]) { in x25_decode()
291 return frame[2]; in x25_decode()
295 if (frame[2] == X25_RR || in x25_decode()
296 frame[2] == X25_RNR || in x25_decode()
297 frame[2] == X25_REJ) { in x25_decode()
300 frame = skb->data; in x25_decode()
302 *nr = (frame[3] >> 1) & 0x7F; in x25_decode()
303 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.c216 unsigned char *frame; in ax25_send_iframe() local
224 frame = skb_push(skb, 1); in ax25_send_iframe()
226 *frame = AX25_I; in ax25_send_iframe()
227 *frame |= (poll_bit) ? AX25_PF : 0; in ax25_send_iframe()
228 *frame |= (ax25->vr << 5); in ax25_send_iframe()
229 *frame |= (ax25->vs << 1); in ax25_send_iframe()
231 frame = skb_push(skb, 2); in ax25_send_iframe()
233 frame[0] = AX25_I; in ax25_send_iframe()
234 frame[0] |= (ax25->vs << 1); in ax25_send_iframe()
235 frame[1] = (poll_bit) ? AX25_EPF : 0; in ax25_send_iframe()
[all …]
/net/rose/
Drose_subr.c206 unsigned char *frame; in rose_decode() local
208 frame = skb->data; in rose_decode()
212 switch (frame[2]) { in rose_decode()
219 return frame[2]; in rose_decode()
224 if ((frame[2] & 0x1F) == ROSE_RR || in rose_decode()
225 (frame[2] & 0x1F) == ROSE_RNR) { in rose_decode()
226 *nr = (frame[2] >> 5) & 0x07; in rose_decode()
227 return frame[2] & 0x1F; in rose_decode()
230 if ((frame[2] & 0x01) == ROSE_DATA) { in rose_decode()
231 *q = (frame[0] & ROSE_Q_BIT) == ROSE_Q_BIT; in rose_decode()
[all …]
/net/wireless/
Dutil.c661 __ieee80211_amsdu_copy_frag(struct sk_buff *skb, struct sk_buff *frame, in __ieee80211_amsdu_copy_frag() argument
689 __frame_add_frag(frame, frag_page, frag_ptr, cur_len, frag_size); in __ieee80211_amsdu_copy_frag()
695 __frame_add_frag(frame, skb_frag_page(frag), in __ieee80211_amsdu_copy_frag()
706 struct sk_buff *frame; in __ieee80211_amsdu_copy() local
724 frame = dev_alloc_skb(hlen + sizeof(struct ethhdr) + 2 + cur_len); in __ieee80211_amsdu_copy()
725 if (!frame) in __ieee80211_amsdu_copy()
728 skb_reserve(frame, hlen + sizeof(struct ethhdr) + 2); in __ieee80211_amsdu_copy()
729 skb_copy_bits(skb, offset, skb_put(frame, cur_len), cur_len); in __ieee80211_amsdu_copy()
733 return frame; in __ieee80211_amsdu_copy()
736 __ieee80211_amsdu_copy_frag(skb, frame, offset, len); in __ieee80211_amsdu_copy()
[all …]
Dtrace.h2402 __dynamic_array(u8, frame, len)
2406 memcpy(__get_dynamic_array(frame), buf, len);
2410 le16_to_cpup((__le16 *)__get_dynamic_array(frame)))
2428 __dynamic_array(u8, frame, len)
2432 memcpy(__get_dynamic_array(frame), buf, len);
2436 le16_to_cpup((__le16 *)__get_dynamic_array(frame)))
2809 TP_PROTO(struct wiphy *wiphy, const u8 *frame, size_t len,
2811 TP_ARGS(wiphy, frame, len, freq, sig_dbm),
Dnl80211.c14877 const u8 *frame, size_t len, in cfg80211_report_obss_beacon() argument
14885 trace_cfg80211_report_obss_beacon(wiphy, frame, len, freq, sig_dbm); in cfg80211_report_obss_beacon()
14904 nla_put(msg, NL80211_ATTR_FRAME, len, frame)) in cfg80211_report_obss_beacon()
/net/mac80211/
Dfils_aead.c271 u8 *frame, size_t *frame_len, in fils_decrypt_assoc_resp() argument
274 struct ieee80211_mgmt *mgmt = (void *)frame; in fils_decrypt_assoc_resp()
287 ies, frame + *frame_len - ies); in fils_decrypt_assoc_resp()
317 crypt_len = frame + *frame_len - encr; in fils_decrypt_assoc_resp()
Doffchannel.c194 if (roc->frame) { in ieee80211_roc_notify_destroy()
196 roc->frame->data, roc->frame->len, in ieee80211_roc_notify_destroy()
198 ieee80211_free_txskb(&roc->sdata->local->hw, roc->frame); in ieee80211_roc_notify_destroy()
263 if (!WARN_ON(!roc->frame)) { in ieee80211_handle_roc_started()
264 ieee80211_tx_skb_tid_band(roc->sdata, roc->frame, 7, in ieee80211_handle_roc_started()
266 roc->frame = NULL; in ieee80211_handle_roc_started()
580 roc->frame = txskb; in ieee80211_start_roc_work()
Dfils_aead.h16 u8 *frame, size_t *frame_len,
Dtx.c4538 const void *frame, size_t frame_len, in ieee80211_rts_get() argument
4542 const struct ieee80211_hdr *hdr = frame; in ieee80211_rts_get()
4554 const void *frame, size_t frame_len, in ieee80211_ctstoself_get() argument
4558 const struct ieee80211_hdr *hdr = frame; in ieee80211_ctstoself_get()
Dieee80211_i.h346 struct sk_buff *frame; member
/net/bridge/netfilter/
DKconfig33 ebtables is a general, extensible frame/packet identification
55 The ebtables filter table is used to define frame filtering rules at
127 the 'nfmark' value in the frame. This can be set by the mark target.
182 setting the 'nfmark' value in the frame.
192 destination address of a frame to that of the device it arrived on.
210 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/packet/
Daf_packet.c402 static void __packet_set_status(struct packet_sock *po, void *frame, int status) in __packet_set_status() argument
406 h.raw = frame; in __packet_set_status()
428 static int __packet_get_status(struct packet_sock *po, void *frame) in __packet_get_status() argument
434 h.raw = frame; in __packet_get_status()
468 static __u32 __packet_set_timestamp(struct packet_sock *po, void *frame, in __packet_set_timestamp() argument
478 h.raw = frame; in __packet_set_timestamp()
2507 void *frame, struct net_device *dev, void *data, int tp_len, in tpacket_fill_skb() argument
2517 ph.raw = frame; in tpacket_fill_skb()
2587 static int tpacket_parse_header(struct packet_sock *po, void *frame, in tpacket_parse_header() argument
2593 ph.raw = frame; in tpacket_parse_header()
[all …]
/net/ipx/
Daf_ipx.c1242 const char *ipx_frame_name(__be16 frame) in ipx_frame_name() argument
1246 switch (ntohs(frame)) { in ipx_frame_name()