| /linux/include/linux/ |
| H A D | skbuff.h | 44 * DOC: skb checksums 105 * not in skb->csum. Thus, skb->csum is undefined in this case. 133 * checksum is bad, skb->csum_level would be set to zero (TCP checksum is 145 * skb->csum, it MUST use CHECKSUM_COMPLETE, not CHECKSUM_UNNECESSARY. 155 * referred to by skb->csum_start + skb->csum_offset and any preceding 194 * The skb was already checksummed by the protocol, or a checksum is not 253 /* Maximum value in skb->csum_level */ 260 /* For X bytes available in skb 1139 skb_pfmemalloc(const struct sk_buff * skb) skb_pfmemalloc() argument 1157 skb_dst(const struct sk_buff * skb) skb_dst() argument 1168 skb_dst_check_unset(struct sk_buff * skb) skb_dst_check_unset() argument 1188 skb_dstref_steal(struct sk_buff * skb) skb_dstref_steal() argument 1201 skb_dstref_restore(struct sk_buff * skb,unsigned long refdst) skb_dstref_restore() argument 1215 skb_dst_set(struct sk_buff * skb,struct dst_entry * dst) skb_dst_set() argument 1232 skb_dst_set_noref(struct sk_buff * skb,struct dst_entry * dst) skb_dst_set_noref() argument 1244 skb_dst_is_noref(const struct sk_buff * skb) skb_dst_is_noref() argument 1262 skb_napi_id(const struct sk_buff * skb) skb_napi_id() argument 1271 skb_wifi_acked_valid(const struct sk_buff * skb) skb_wifi_acked_valid() argument 1286 skb_unref(struct sk_buff * skb) skb_unref() argument 1298 skb_data_unref(const struct sk_buff * skb,struct skb_shared_info * shinfo) skb_data_unref() argument 1320 kfree_skb_reason(struct sk_buff * skb,enum skb_drop_reason reason) kfree_skb_reason() argument 1329 kfree_skb(struct sk_buff * skb) kfree_skb() argument 1348 consume_skb(struct sk_buff * skb) consume_skb() argument 1412 skb_fclone_busy(const struct sock * sk,const struct sk_buff * skb) skb_fclone_busy() argument 1444 __pskb_copy(struct sk_buff * skb,int headroom,gfp_t gfp_mask) __pskb_copy() argument 1474 skb_pad(struct sk_buff * skb,int pad) skb_pad() argument 1537 skb_clear_hash(struct sk_buff * skb) skb_clear_hash() argument 1544 skb_clear_hash_if_not_l4(struct sk_buff * skb) skb_clear_hash_if_not_l4() argument 1551 __skb_set_hash(struct sk_buff * skb,__u32 hash,bool is_sw,bool is_l4) __skb_set_hash() argument 1559 skb_set_hash(struct sk_buff * skb,__u32 hash,enum pkt_hash_types type) skb_set_hash() argument 1566 __skb_set_sw_hash(struct sk_buff * skb,__u32 hash,bool is_l4) __skb_set_sw_hash() argument 1573 __skb_get_hash_symmetric(const struct sk_buff * skb) __skb_get_hash_symmetric() argument 1599 skb_flow_dissect(const struct sk_buff * skb,struct flow_dissector * flow_dissector,void * target_container,unsigned int flags) skb_flow_dissect() argument 1607 skb_flow_dissect_flow_keys(const struct sk_buff * skb,struct flow_keys * flow,unsigned int flags) skb_flow_dissect_flow_keys() argument 1618 skb_flow_dissect_flow_keys_basic(const struct net * net,const struct sk_buff * skb,struct flow_keys_basic * flow,const void * data,__be16 proto,int nhoff,int hlen,unsigned int flags) skb_flow_dissect_flow_keys_basic() argument 1651 skb_get_hash_net(const struct net * net,struct sk_buff * skb) skb_get_hash_net() argument 1659 skb_get_hash(struct sk_buff * skb) skb_get_hash() argument 1667 skb_get_hash_flowi6(struct sk_buff * skb,const struct flowi6 * fl6) skb_get_hash_flowi6() argument 1682 skb_get_hash_raw(const struct sk_buff * skb) skb_get_hash_raw() argument 1704 skb_is_decrypted(const struct sk_buff * skb) skb_is_decrypted() argument 1722 skb_end_pointer(const struct sk_buff * skb) skb_end_pointer() argument 1727 skb_end_offset(const struct sk_buff * skb) skb_end_offset() argument 1732 skb_set_end_offset(struct sk_buff * skb,unsigned int offset) skb_set_end_offset() argument 1737 skb_end_pointer(const struct sk_buff * skb) skb_end_pointer() argument 1742 skb_end_offset(const struct sk_buff * skb) skb_end_offset() argument 1747 skb_set_end_offset(struct sk_buff * skb,unsigned int offset) skb_set_end_offset() argument 1770 skb_zerocopy_iter_dgram(struct sk_buff * skb,struct msghdr * msg,int len) skb_zerocopy_iter_dgram() argument 1785 skb_hwtstamps(struct sk_buff * skb) skb_hwtstamps() argument 1790 skb_zcopy(struct sk_buff * skb) skb_zcopy() argument 1797 skb_zcopy_pure(const struct sk_buff * skb) skb_zcopy_pure() argument 1802 skb_zcopy_managed(const struct sk_buff * skb) skb_zcopy_managed() argument 1818 skb_zcopy_init(struct sk_buff * skb,struct ubuf_info * uarg) skb_zcopy_init() argument 1824 skb_zcopy_set(struct sk_buff * skb,struct ubuf_info * uarg,bool * have_ref) skb_zcopy_set() argument 1836 skb_zcopy_set_nouarg(struct sk_buff * skb,void * val) skb_zcopy_set_nouarg() argument 1842 skb_zcopy_is_nouarg(struct sk_buff * skb) skb_zcopy_is_nouarg() argument 1847 skb_zcopy_get_nouarg(struct sk_buff * skb) skb_zcopy_get_nouarg() argument 1869 skb_zcopy_clear(struct sk_buff * skb,bool zerocopy_success) skb_zcopy_clear() argument 1883 skb_zcopy_downgrade_managed(struct sk_buff * skb) skb_zcopy_downgrade_managed() argument 1890 skb_frags_readable(const struct sk_buff * skb) skb_frags_readable() argument 1895 skb_mark_not_on_list(struct sk_buff * skb) skb_mark_not_on_list() argument 1900 skb_poison_list(struct sk_buff * skb) skb_poison_list() argument 1908 skb_list_walk_safe(first,skb,next_skb) global() argument 1912 skb_list_del_init(struct sk_buff * skb) skb_list_del_init() argument 1950 skb_queue_is_last(const struct sk_buff_head * list,const struct sk_buff * skb) skb_queue_is_last() argument 1963 skb_queue_is_first(const struct sk_buff_head * list,const struct sk_buff * skb) skb_queue_is_first() argument 1977 skb_queue_next(const struct sk_buff_head * list,const struct sk_buff * skb) skb_queue_next() argument 1995 skb_queue_prev(const struct sk_buff_head * list,const struct sk_buff * skb) skb_queue_prev() argument 2011 skb_get(struct sk_buff * skb) skb_get() argument 2029 skb_cloned(const struct sk_buff * skb) skb_cloned() argument 2035 skb_unclone(struct sk_buff * skb,gfp_t pri) skb_unclone() argument 2052 skb_unclone_keeptruesize(struct sk_buff * skb,gfp_t pri) skb_unclone_keeptruesize() argument 2068 skb_header_cloned(const struct sk_buff * skb) skb_header_cloned() argument 2080 skb_header_unclone(struct sk_buff * skb,gfp_t pri) skb_header_unclone() argument 2096 __skb_header_release(struct sk_buff * skb) __skb_header_release() argument 2110 skb_shared(const struct sk_buff * skb) skb_shared() argument 2128 skb_share_check(struct sk_buff * skb,gfp_t pri) skb_share_check() argument 2163 skb_unshare(struct sk_buff * skb,gfp_t pri) skb_unshare() argument 2195 struct sk_buff *skb = list_->next; skb_peek() local 2222 skb_peek_next(struct sk_buff * skb,const struct sk_buff_head * list_) skb_peek_next() argument 2247 struct sk_buff *skb = READ_ONCE(list_->prev); skb_peek_tail() local 2479 __skb_unlink(struct sk_buff * skb,struct sk_buff_head * list) __skb_unlink() argument 2501 struct sk_buff *skb = skb_peek(list); __skb_dequeue() local 2518 struct sk_buff *skb = skb_peek_tail(list); __skb_dequeue_tail() local 2526 skb_is_nonlinear(const struct sk_buff * skb) skb_is_nonlinear() argument 2531 skb_headlen(const struct sk_buff * skb) skb_headlen() argument 2536 __skb_pagelen(const struct sk_buff * skb) __skb_pagelen() argument 2545 skb_pagelen(const struct sk_buff * skb) skb_pagelen() argument 2588 skb_len_add(struct sk_buff * skb,int delta) skb_len_add() argument 2608 __skb_fill_netmem_desc(struct sk_buff * skb,int i,netmem_ref netmem,int off,int size) __skb_fill_netmem_desc() argument 2631 __skb_fill_page_desc(struct sk_buff * skb,int i,struct page * page,int off,int size) __skb_fill_page_desc() argument 2637 skb_fill_netmem_desc(struct sk_buff * skb,int i,netmem_ref netmem,int off,int size) skb_fill_netmem_desc() argument 2658 skb_fill_page_desc(struct sk_buff * skb,int i,struct page * page,int off,int size) skb_fill_page_desc() argument 2675 skb_fill_page_desc_noacc(struct sk_buff * skb,int i,struct page * page,int off,int size) skb_fill_page_desc_noacc() argument 2688 skb_add_rx_frag(struct sk_buff * skb,int i,struct page * page,int off,int size,unsigned int truesize) skb_add_rx_frag() argument 2699 SKB_LINEAR_ASSERT(skb) global() argument 2702 skb_tail_pointer(const struct sk_buff * skb) skb_tail_pointer() argument 2707 skb_reset_tail_pointer(struct sk_buff * skb) skb_reset_tail_pointer() argument 2712 skb_set_tail_pointer(struct sk_buff * skb,const int offset) skb_set_tail_pointer() argument 2719 skb_tail_pointer(const struct sk_buff * skb) skb_tail_pointer() argument 2724 skb_reset_tail_pointer(struct sk_buff * skb) skb_reset_tail_pointer() argument 2729 skb_set_tail_pointer(struct sk_buff * skb,const int offset) skb_set_tail_pointer() argument 2736 skb_assert_len(struct sk_buff * skb) skb_assert_len() argument 2747 skb_might_realloc(struct sk_buff * skb) skb_might_realloc() argument 2755 __skb_put(struct sk_buff * skb,unsigned int len) __skb_put() argument 2764 __skb_put_zero(struct sk_buff * skb,unsigned int len) __skb_put_zero() argument 2772 __skb_put_data(struct sk_buff * skb,const void * data,unsigned int len) __skb_put_data() argument 2781 __skb_put_u8(struct sk_buff * skb,u8 val) __skb_put_u8() argument 2786 skb_put_zero(struct sk_buff * skb,unsigned int len) skb_put_zero() argument 2795 skb_put_data(struct sk_buff * skb,const void * data,unsigned int len) skb_put_data() argument 2805 skb_put_u8(struct sk_buff * skb,u8 val) skb_put_u8() argument 2811 __skb_push(struct sk_buff * skb,unsigned int len) __skb_push() argument 2822 __skb_pull(struct sk_buff * skb,unsigned int len) __skb_pull() argument 2838 skb_pull_inline(struct sk_buff * skb,unsigned int len) skb_pull_inline() argument 2848 pskb_may_pull_reason(struct sk_buff * skb,unsigned int len) pskb_may_pull_reason() argument 2865 pskb_may_pull(struct sk_buff * skb,unsigned int len) pskb_may_pull() argument 2870 pskb_pull(struct sk_buff * skb,unsigned int len) pskb_pull() argument 2887 skb_headroom(const struct sk_buff * skb) skb_headroom() argument 2898 skb_tailroom(const struct sk_buff * skb) skb_tailroom() argument 2910 skb_availroom(const struct sk_buff * skb) skb_availroom() argument 2926 skb_reserve(struct sk_buff * skb,int len) skb_reserve() argument 2944 skb_tailroom_reserve(struct sk_buff * skb,unsigned int mtu,unsigned int needed_tailroom) skb_tailroom_reserve() argument 2959 skb_set_inner_protocol(struct sk_buff * skb,__be16 protocol) skb_set_inner_protocol() argument 2966 skb_set_inner_ipproto(struct sk_buff * skb,__u8 ipproto) skb_set_inner_ipproto() argument 2973 skb_reset_inner_headers(struct sk_buff * skb) skb_reset_inner_headers() argument 2980 skb_mac_header_was_set(const struct sk_buff * skb) skb_mac_header_was_set() argument 2985 skb_reset_mac_len(struct sk_buff * skb) skb_reset_mac_len() argument 2995 skb_inner_transport_header(const struct sk_buff * skb) skb_inner_transport_header() argument 3001 skb_inner_transport_offset(const struct sk_buff * skb) skb_inner_transport_offset() argument 3006 skb_reset_inner_transport_header(struct sk_buff * skb) skb_reset_inner_transport_header() argument 3014 skb_set_inner_transport_header(struct sk_buff * skb,const int offset) skb_set_inner_transport_header() argument 3021 skb_inner_network_header(const struct sk_buff * skb) skb_inner_network_header() argument 3026 skb_reset_inner_network_header(struct sk_buff * skb) skb_reset_inner_network_header() argument 3034 skb_set_inner_network_header(struct sk_buff * skb,const int offset) skb_set_inner_network_header() argument 3041 skb_inner_network_header_was_set(const struct sk_buff * skb) skb_inner_network_header_was_set() argument 3046 skb_inner_mac_header(const struct sk_buff * skb) skb_inner_mac_header() argument 3051 skb_reset_inner_mac_header(struct sk_buff * skb) skb_reset_inner_mac_header() argument 3059 skb_set_inner_mac_header(struct sk_buff * skb,const int offset) skb_set_inner_mac_header() argument 3065 skb_transport_header_was_set(const struct sk_buff * skb) skb_transport_header_was_set() argument 3070 skb_transport_header(const struct sk_buff * skb) skb_transport_header() argument 3076 skb_reset_transport_header(struct sk_buff * skb) skb_reset_transport_header() argument 3093 skb_reset_transport_header_careful(struct sk_buff * skb) skb_reset_transport_header_careful() argument 3107 skb_set_transport_header(struct sk_buff * skb,const int offset) skb_set_transport_header() argument 3114 skb_network_header(const struct sk_buff * skb) skb_network_header() argument 3119 skb_reset_network_header(struct sk_buff * skb) skb_reset_network_header() argument 3127 skb_set_network_header(struct sk_buff * skb,const int offset) skb_set_network_header() argument 3133 skb_mac_header(const struct sk_buff * skb) skb_mac_header() argument 3139 skb_mac_offset(const struct sk_buff * skb) skb_mac_offset() argument 3144 skb_mac_header_len(const struct sk_buff * skb) skb_mac_header_len() argument 3150 skb_unset_mac_header(struct sk_buff * skb) skb_unset_mac_header() argument 3155 skb_reset_mac_header(struct sk_buff * skb) skb_reset_mac_header() argument 3163 skb_set_mac_header(struct sk_buff * skb,const int offset) skb_set_mac_header() argument 3169 skb_pop_mac_header(struct sk_buff * skb) skb_pop_mac_header() argument 3174 skb_probe_transport_header(struct sk_buff * skb) skb_probe_transport_header() argument 3186 skb_mac_header_rebuild(struct sk_buff * skb) skb_mac_header_rebuild() argument 3200 skb_mac_header_rebuild_full(struct sk_buff * skb,u32 full_mac_len) skb_mac_header_rebuild_full() argument 3211 skb_checksum_start_offset(const struct sk_buff * skb) skb_checksum_start_offset() argument 3216 skb_checksum_start(const struct sk_buff * skb) skb_checksum_start() argument 3221 skb_transport_offset(const struct sk_buff * skb) skb_transport_offset() argument 3226 skb_network_header_len(const struct sk_buff * skb) skb_network_header_len() argument 3232 skb_inner_network_header_len(const struct sk_buff * skb) skb_inner_network_header_len() argument 3237 skb_network_offset(const struct sk_buff * skb) skb_network_offset() argument 3242 skb_inner_network_offset(const struct sk_buff * skb) skb_inner_network_offset() argument 3248 pskb_network_may_pull_reason(struct sk_buff * skb,unsigned int len) pskb_network_may_pull_reason() argument 3253 pskb_network_may_pull(struct sk_buff * skb,unsigned int len) pskb_network_may_pull() argument 3308 __skb_set_length(struct sk_buff * skb,unsigned int len) __skb_set_length() argument 3316 __skb_trim(struct sk_buff * skb,unsigned int len) __skb_trim() argument 3323 __pskb_trim(struct sk_buff * skb,unsigned int len) __pskb_trim() argument 3331 pskb_trim(struct sk_buff * skb,unsigned int len) pskb_trim() argument 3346 pskb_trim_unique(struct sk_buff * skb,unsigned int len) pskb_trim_unique() argument 3352 __skb_grow(struct sk_buff * skb,unsigned int len) __skb_grow() argument 3374 skb_orphan(struct sk_buff * skb) skb_orphan() argument 3394 skb_orphan_frags(struct sk_buff * skb,gfp_t gfp_mask) skb_orphan_frags() argument 3404 skb_orphan_frags_rx(struct sk_buff * skb,gfp_t gfp_mask) skb_orphan_frags_rx() argument 3423 struct sk_buff *skb; __skb_queue_purge_reason() local 3505 struct sk_buff *skb = __netdev_alloc_skb(dev, length + NET_IP_ALIGN, gfp); __netdev_alloc_skb_ip_align() local 3617 skb_propagate_pfmemalloc(const struct page * page,struct sk_buff * skb) skb_propagate_pfmemalloc() argument 3810 pskb_copy(struct sk_buff * skb,gfp_t gfp_mask) pskb_copy() argument 3817 pskb_copy_for_clone(struct sk_buff * skb,gfp_t gfp_mask) pskb_copy_for_clone() argument 3832 skb_clone_writable(const struct sk_buff * skb,unsigned int len) skb_clone_writable() argument 3838 skb_try_make_writable(struct sk_buff * skb,unsigned int write_len) skb_try_make_writable() argument 3845 __skb_cow(struct sk_buff * skb,unsigned int headroom,int cloned) __skb_cow() argument 3871 skb_cow(struct sk_buff * skb,unsigned int headroom) skb_cow() argument 3886 skb_cow_head(struct sk_buff * skb,unsigned int headroom) skb_cow_head() argument 3901 skb_padto(struct sk_buff * skb,unsigned int len) skb_padto() argument 3920 __skb_put_padto(struct sk_buff * skb,unsigned int len,bool free_on_error) __skb_put_padto() argument 3945 skb_put_padto(struct sk_buff * skb,unsigned int len) skb_put_padto() argument 3953 skb_can_coalesce_netmem(struct sk_buff * skb,int i,netmem_ref netmem,int off) skb_can_coalesce_netmem() argument 3967 skb_can_coalesce(struct sk_buff * skb,int i,const struct page * page,int off) skb_can_coalesce() argument 3973 __skb_linearize(struct sk_buff * skb) __skb_linearize() argument 3985 skb_linearize(struct sk_buff * skb) skb_linearize() argument 3997 skb_has_shared_frag(const struct sk_buff * skb) skb_has_shared_frag() argument 4010 skb_linearize_cow(struct sk_buff * skb) skb_linearize_cow() argument 4017 __skb_postpull_rcsum(struct sk_buff * skb,const void * start,unsigned int len,unsigned int off) __skb_postpull_rcsum() argument 4038 skb_postpull_rcsum(struct sk_buff * skb,const void * start,unsigned int len) skb_postpull_rcsum() argument 4050 __skb_postpush_rcsum(struct sk_buff * skb,const void * start,unsigned int len,unsigned int off) __skb_postpush_rcsum() argument 4067 skb_postpush_rcsum(struct sk_buff * skb,const void * start,unsigned int len) skb_postpush_rcsum() argument 4086 skb_push_rcsum(struct sk_buff * skb,unsigned int len) skb_push_rcsum() argument 4104 pskb_trim_rcsum(struct sk_buff * skb,unsigned int len) pskb_trim_rcsum() argument 4112 __skb_trim_rcsum(struct sk_buff * skb,unsigned int len) __skb_trim_rcsum() argument 4120 __skb_grow_rcsum(struct sk_buff * skb,unsigned int len) __skb_grow_rcsum() argument 4130 skb_rb_next(skb) global() argument 4131 skb_rb_prev(skb) global() argument 4133 skb_queue_walk(queue,skb) global() argument 4138 skb_queue_walk_safe(queue,skb,tmp) global() argument 4143 skb_queue_walk_from(queue,skb) global() argument 4147 skb_rbtree_walk(skb,root) global() argument 4151 skb_rbtree_walk_from(skb) global() argument 4155 skb_rbtree_walk_from_safe(skb,tmp) global() argument 4159 skb_queue_walk_from_safe(queue,skb,tmp) global() argument 4164 skb_queue_reverse_walk(queue,skb) global() argument 4169 skb_queue_reverse_walk_safe(queue,skb,tmp) global() argument 4174 skb_queue_reverse_walk_from_safe(queue,skb,tmp) global() argument 4179 skb_has_frag_list(const struct sk_buff * skb) skb_has_frag_list() argument 4184 skb_frag_list_init(struct sk_buff * skb) skb_frag_list_init() argument 4189 skb_walk_frags(skb,iter) global() argument 4286 __skb_header_pointer(const struct sk_buff * skb,int offset,int len,const void * data,int hlen,void * buffer) __skb_header_pointer() argument 4299 skb_header_pointer(const struct sk_buff * skb,int offset,int len,void * buffer) skb_header_pointer() argument 4309 skb_header_pointer_careful(const struct sk_buff * skb,int offset,int len,void * buffer) skb_header_pointer_careful() argument 4318 skb_pointer_if_linear(const struct sk_buff * skb,int offset,int len) skb_pointer_if_linear() argument 4335 skb_needs_linearize(struct sk_buff * skb,netdev_features_t features) skb_needs_linearize() argument 4343 skb_copy_from_linear_data(const struct sk_buff * skb,void * to,const unsigned int len) skb_copy_from_linear_data() argument 4350 skb_copy_from_linear_data_offset(const struct sk_buff * skb,const int offset,void * to,const unsigned int len) skb_copy_from_linear_data_offset() argument 4357 skb_copy_to_linear_data(struct sk_buff * skb,const void * from,const unsigned int len) skb_copy_to_linear_data() argument 4364 skb_copy_to_linear_data_offset(struct sk_buff * skb,const int offset,const void * from,const unsigned int len) skb_copy_to_linear_data_offset() argument 4374 skb_get_ktime(const struct sk_buff * skb) skb_get_ktime() argument 4388 skb_get_timestamp(const struct sk_buff * skb,struct __kernel_old_timeval * stamp) skb_get_timestamp() argument 4394 skb_get_new_timestamp(const struct sk_buff * skb,struct __kernel_sock_timeval * stamp) skb_get_new_timestamp() argument 4403 skb_get_timestampns(const struct sk_buff * skb,struct __kernel_old_timespec * stamp) skb_get_timestampns() argument 4412 skb_get_new_timestampns(const struct sk_buff * skb,struct __kernel_timespec * stamp) skb_get_new_timestampns() argument 4421 __net_timestamp(struct sk_buff * skb) __net_timestamp() argument 4432 skb_set_delivery_time(struct sk_buff * skb,ktime_t kt,u8 tstamp_type) skb_set_delivery_time() argument 4443 skb_set_delivery_type_by_clockid(struct sk_buff * skb,ktime_t kt,clockid_t clockid) skb_set_delivery_type_by_clockid() argument 4470 skb_clear_delivery_time(struct sk_buff * skb) skb_clear_delivery_time() argument 4481 skb_clear_tstamp(struct sk_buff * skb) skb_clear_tstamp() argument 4489 skb_tstamp(const struct sk_buff * skb) skb_tstamp() argument 4497 skb_tstamp_cond(const struct sk_buff * skb,bool cond) skb_tstamp_cond() argument 4508 skb_metadata_len(const struct sk_buff * skb) skb_metadata_len() argument 4513 skb_metadata_end(const struct sk_buff * skb) skb_metadata_end() argument 4570 skb_metadata_set(struct sk_buff * skb,u8 meta_len) skb_metadata_set() argument 4575 skb_metadata_clear(struct sk_buff * skb) skb_metadata_clear() argument 4595 skb_data_move(struct sk_buff * skb,const int len,const unsigned int n) skb_data_move() argument 4631 skb_postpull_data_move(struct sk_buff * skb,const unsigned int len,const unsigned int n) skb_postpull_data_move() argument 4647 skb_postpush_data_move(struct sk_buff * skb,const unsigned int len,const unsigned int n) skb_postpush_data_move() argument 4664 skb_clone_tx_timestamp(struct sk_buff * skb) skb_clone_tx_timestamp() argument 4668 skb_defer_rx_timestamp(struct sk_buff * skb) skb_defer_rx_timestamp() argument 4720 skb_tx_timestamp(struct sk_buff * skb) skb_tx_timestamp() argument 4739 skb_csum_unnecessary(const struct sk_buff * skb) skb_csum_unnecessary() argument 4763 skb_checksum_complete(struct sk_buff * skb) skb_checksum_complete() argument 4769 __skb_decr_checksum_unnecessary(struct sk_buff * skb) __skb_decr_checksum_unnecessary() argument 4779 __skb_incr_checksum_unnecessary(struct sk_buff * skb) __skb_incr_checksum_unnecessary() argument 4790 __skb_reset_checksum_unnecessary(struct sk_buff * skb) __skb_reset_checksum_unnecessary() argument 4803 __skb_checksum_validate_needed(struct sk_buff * skb,bool zero_okay,__sum16 check) __skb_checksum_validate_needed() argument 4827 skb_checksum_complete_unset(struct sk_buff * skb) skb_checksum_complete_unset() argument 4842 __skb_checksum_validate_complete(struct sk_buff * skb,bool complete,__wsum psum) __skb_checksum_validate_complete() argument 4866 null_compute_pseudo(struct sk_buff * skb,int proto) null_compute_pseudo() argument 4881 __skb_checksum_validate(skb,proto,complete,zero_okay,check,compute_pseudo) global() argument 4892 skb_checksum_init(skb,proto,compute_pseudo) global() argument 4895 skb_checksum_init_zero_check(skb,proto,check,compute_pseudo) global() argument 4898 skb_checksum_validate(skb,proto,compute_pseudo) global() argument 4901 skb_checksum_validate_zero_check(skb,proto,check,compute_pseudo) global() argument 4905 skb_checksum_simple_validate(skb) global() argument 4908 __skb_checksum_convert_check(struct sk_buff * skb) __skb_checksum_convert_check() argument 4913 __skb_checksum_convert(struct sk_buff * skb,__wsum pseudo) __skb_checksum_convert() argument 4919 skb_checksum_try_convert(skb,proto,compute_pseudo) global() argument 4925 skb_remcsum_adjust_partial(struct sk_buff * skb,void * ptr,u16 start,u16 offset) skb_remcsum_adjust_partial() argument 4938 skb_remcsum_process(struct sk_buff * skb,void * ptr,int start,int offset,bool nopartial) skb_remcsum_process() argument 4959 skb_nfct(const struct sk_buff * skb) skb_nfct() argument 4968 skb_get_nfct(const struct sk_buff * skb) skb_get_nfct() argument 4977 skb_set_nfct(struct sk_buff * skb,unsigned long nfct) skb_set_nfct() argument 5035 skb_ext_put(struct sk_buff * skb) skb_ext_put() argument 5065 skb_ext_exist(const struct sk_buff * skb,enum skb_ext_id id) skb_ext_exist() argument 5070 skb_ext_del(struct sk_buff * skb,enum skb_ext_id id) skb_ext_del() argument 5076 skb_ext_find(const struct sk_buff * skb,enum skb_ext_id id) skb_ext_find() argument 5087 skb_ext_reset(struct sk_buff * skb) skb_ext_reset() argument 5095 skb_has_extensions(struct sk_buff * skb) skb_has_extensions() argument 5101 skb_ext_put(struct sk_buff * skb) skb_ext_put() argument 5102 skb_ext_reset(struct sk_buff * skb) skb_ext_reset() argument 5103 skb_ext_del(struct sk_buff * skb,int unused) skb_ext_del() argument 5106 skb_has_extensions(struct sk_buff * skb) skb_has_extensions() argument 5109 nf_reset_ct(struct sk_buff * skb) nf_reset_ct() argument 5117 nf_reset_trace(struct sk_buff * skb) nf_reset_trace() argument 5124 ipvs_reset(struct sk_buff * skb) ipvs_reset() argument 5160 skb_init_secmark(struct sk_buff * skb) skb_init_secmark() argument 5168 skb_init_secmark(struct sk_buff * skb) skb_init_secmark() argument 5172 secpath_exists(const struct sk_buff * skb) secpath_exists() argument 5181 skb_irq_freeable(const struct sk_buff * skb) skb_irq_freeable() argument 5190 skb_set_queue_mapping(struct sk_buff * skb,u16 queue_mapping) skb_set_queue_mapping() argument 5195 skb_get_queue_mapping(const struct sk_buff * skb) skb_get_queue_mapping() argument 5205 skb_record_rx_queue(struct sk_buff * skb,u16 rx_queue) skb_record_rx_queue() argument 5210 skb_get_rx_queue(const struct sk_buff * skb) skb_get_rx_queue() argument 5215 skb_rx_queue_recorded(const struct sk_buff * skb) skb_rx_queue_recorded() argument 5220 skb_set_dst_pending_confirm(struct sk_buff * skb,u32 val) skb_set_dst_pending_confirm() argument 5225 skb_get_dst_pending_confirm(const struct sk_buff * skb) skb_get_dst_pending_confirm() argument 5230 skb_sec_path(const struct sk_buff * skb) skb_sec_path() argument 5239 skb_is_gso(const struct sk_buff * skb) skb_is_gso() argument 5245 skb_is_gso_v6(const struct sk_buff * skb) skb_is_gso_v6() argument 5251 skb_is_gso_sctp(const struct sk_buff * skb) skb_is_gso_sctp() argument 5257 skb_is_gso_tcp(const struct sk_buff * skb) skb_is_gso_tcp() argument 5262 skb_gso_reset(struct sk_buff * skb) skb_gso_reset() argument 5287 skb_warn_if_lro(const struct sk_buff * skb) skb_warn_if_lro() argument 5301 skb_forward_csum(struct sk_buff * skb) skb_forward_csum() argument 5316 skb_checksum_none_assert(const struct sk_buff * skb) skb_checksum_none_assert() argument 5337 skb_head_is_locked(const struct sk_buff * skb) skb_head_is_locked() argument 5351 lco_csum(struct sk_buff * skb) lco_csum() argument 5367 skb_is_redirected(const struct sk_buff * skb) skb_is_redirected() argument 5372 skb_set_redirected(struct sk_buff * skb,bool from_ingress) skb_set_redirected() argument 5382 skb_reset_redirect(struct sk_buff * skb) skb_reset_redirect() argument 5387 skb_set_redirected_noclear(struct sk_buff * skb,bool from_ingress) skb_set_redirected_noclear() argument 5396 skb_csum_is_sctp(struct sk_buff * skb) skb_csum_is_sctp() argument 5405 skb_reset_csum_not_inet(struct sk_buff * skb) skb_reset_csum_not_inet() argument 5413 skb_set_kcov_handle(struct sk_buff * skb,const u64 kcov_handle) skb_set_kcov_handle() argument 5421 skb_get_kcov_handle(struct sk_buff * skb) skb_get_kcov_handle() argument 5430 skb_mark_for_recycle(struct sk_buff * skb) skb_mark_for_recycle() argument [all...] |
| /linux/net/xfrm/ |
| H A D | xfrm_output.c | 27 static int xfrm_output2(struct net *net, struct sock *sk, struct sk_buff *skb); 28 static int xfrm_inner_extract_output(struct xfrm_state *x, struct sk_buff *skb); 30 static int xfrm_skb_check_space(struct sk_buff *skb) 32 struct dst_entry *dst = skb_dst(skb); in xfrm_skb_check_space() 34 - skb_headroom(skb); in xfrm_skb_check_space() 35 int ntail = dst->dev->needed_tailroom - skb_tailroom(skb); in xfrm_skb_check_space() 44 return pskb_expand_head(skb, nhead, ntail, GFP_ATOMIC); in xfrm_skb_check_space() 51 static struct dst_entry *skb_dst_pop(struct sk_buff *skb) 53 struct dst_entry *child = dst_clone(xfrm_dst_child(skb_dst(skb))); in skb_dst_pop() 55 skb_dst_drop(skb); in skb_dst_pop() 31 xfrm_skb_check_space(struct sk_buff * skb) xfrm_skb_check_space() argument 52 skb_dst_pop(struct sk_buff * skb) skb_dst_pop() argument 65 xfrm4_transport_output(struct xfrm_state * x,struct sk_buff * skb) xfrm4_transport_output() argument 82 mip6_rthdr_offset(struct sk_buff * skb,u8 ** nexthdr,int type) mip6_rthdr_offset() argument 142 xfrm6_hdr_offset(struct xfrm_state * x,struct sk_buff * skb,u8 ** prevhdr) xfrm6_hdr_offset() argument 163 xfrm6_transport_output(struct xfrm_state * x,struct sk_buff * skb) xfrm6_transport_output() argument 194 xfrm6_ro_output(struct xfrm_state * x,struct sk_buff * skb) xfrm6_ro_output() argument 224 xfrm4_beet_encap_add(struct xfrm_state * x,struct sk_buff * skb) xfrm4_beet_encap_add() argument 273 xfrm4_tunnel_encap_add(struct xfrm_state * x,struct sk_buff * skb) xfrm4_tunnel_encap_add() argument 319 xfrm6_tunnel_encap_add(struct xfrm_state * x,struct sk_buff * skb) xfrm6_tunnel_encap_add() argument 354 xfrm6_beet_encap_add(struct xfrm_state * x,struct sk_buff * skb) xfrm6_beet_encap_add() argument 405 xfrm4_prepare_output(struct xfrm_state * x,struct sk_buff * skb) xfrm4_prepare_output() argument 427 xfrm6_prepare_output(struct xfrm_state * x,struct sk_buff * skb) xfrm6_prepare_output() argument 453 xfrm_outer_mode_output(struct xfrm_state * x,struct sk_buff * skb) xfrm_outer_mode_output() argument 485 pktgen_xfrm_outer_mode_output(struct xfrm_state * x,struct sk_buff * skb) pktgen_xfrm_outer_mode_output() argument 492 xfrm_output_one(struct sk_buff * skb,int err) xfrm_output_one() argument 586 xfrm_output_resume(struct sock * sk,struct sk_buff * skb,int err) xfrm_output_resume() argument 616 xfrm_dev_direct_output(struct sock * sk,struct xfrm_state * x,struct sk_buff * skb) xfrm_dev_direct_output() argument 649 xfrm_output2(struct net * net,struct sock * sk,struct sk_buff * skb) xfrm_output2() argument 654 xfrm_output_gso(struct net * net,struct sock * sk,struct sk_buff * skb) xfrm_output_gso() argument 692 xfrm_get_inner_ipproto(struct sk_buff * skb,struct xfrm_state * x) xfrm_get_inner_ipproto() argument 743 xfrm_output(struct sock * sk,struct sk_buff * skb) xfrm_output() argument 834 xfrm4_tunnel_check_size(struct sk_buff * skb) xfrm4_tunnel_check_size() argument 862 xfrm4_extract_output(struct xfrm_state * x,struct sk_buff * skb) xfrm4_extract_output() argument 883 xfrm6_tunnel_check_size(struct sk_buff * skb) xfrm6_tunnel_check_size() argument 916 xfrm6_extract_output(struct xfrm_state * x,struct sk_buff * skb) xfrm6_extract_output() argument 935 xfrm_inner_extract_output(struct xfrm_state * x,struct sk_buff * skb) xfrm_inner_extract_output() argument 947 xfrm_local_error(struct sk_buff * skb,int mtu) xfrm_local_error() argument [all...] |
| H A D | xfrm_input.c | 41 int (*finish)(struct net *net, struct sock *sk, struct sk_buff *skb); 106 static int xfrm_rcv_cb(struct sk_buff *skb, unsigned int family, u8 protocol, in xfrm_rcv_cb() argument 117 ret = afinfo->callback(skb, protocol, err); in xfrm_rcv_cb() 123 struct sec_path *secpath_set(struct sk_buff *skb) in secpath_set() argument 125 struct sec_path *sp, *tmp = skb_ext_find(skb, SKB_EXT_SEC_PATH); in secpath_set() 127 sp = skb_ext_add(skb, SKB_EXT_SEC_PATH); in secpath_set() 146 int xfrm_parse_spi(struct sk_buff *skb, u8 nexthdr, __be32 *spi, __be32 *seq) in xfrm_parse_spi() argument 163 if (!pskb_may_pull(skb, sizeof(struct ip_comp_hdr))) in xfrm_parse_spi() 165 *spi = htonl(ntohs(*(__be16 *)(skb_transport_header(skb) + 2))); in xfrm_parse_spi() 172 if (!pskb_may_pull(skb, hlen)) in xfrm_parse_spi() [all …]
|
| /linux/net/bridge/ |
| H A D | br_netfilter_hooks.c | 73 #define IS_IP(skb) \ 74 (!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_IP)) 76 #define IS_IPV6(skb) \ 77 (!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_IPV6)) 79 #define IS_ARP(skb) \ 80 (!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_ARP)) 82 static inline __be16 vlan_proto(const struct sk_buff *skb) in vlan_proto() 72 IS_IP(skb) global() argument 75 IS_IPV6(skb) global() argument 78 IS_ARP(skb) global() argument 81 vlan_proto(const struct sk_buff * skb) vlan_proto() argument 91 is_vlan_ip(const struct sk_buff * skb,const struct net * net) is_vlan_ip() argument 98 is_vlan_ipv6(const struct sk_buff * skb,const struct net * net) is_vlan_ipv6() argument 107 is_vlan_arp(const struct sk_buff * skb,const struct net * net) is_vlan_arp() argument 114 pppoe_proto(const struct sk_buff * skb) pppoe_proto() argument 120 is_pppoe_ip(const struct sk_buff * skb,const struct net * net) is_pppoe_ip() argument 128 is_pppoe_ipv6(const struct sk_buff * skb,const struct net * net) is_pppoe_ipv6() argument 154 nf_bridge_info_free(struct sk_buff * skb) nf_bridge_info_free() argument 167 nf_bridge_unshare(struct sk_buff * skb) nf_bridge_unshare() argument 172 nf_bridge_encap_header_len(const struct sk_buff * skb) nf_bridge_encap_header_len() argument 184 nf_bridge_pull_encap_header(struct sk_buff * skb) nf_bridge_pull_encap_header() argument 192 nf_bridge_pull_encap_header_rcsum(struct sk_buff * skb) nf_bridge_pull_encap_header_rcsum() argument 205 br_validate_ipv4(struct net * net,struct sk_buff * skb) br_validate_ipv4() argument 254 nf_bridge_update_protocol(struct sk_buff * skb) nf_bridge_update_protocol() argument 275 br_nf_pre_routing_finish_bridge(struct net * net,struct sock * sk,struct sk_buff * skb) br_nf_pre_routing_finish_bridge() argument 326 br_nf_ipv4_daddr_was_changed(const struct sk_buff * skb,const struct nf_bridge_info * nf_bridge) br_nf_ipv4_daddr_was_changed() argument 371 br_nf_pre_routing_finish(struct net * net,struct sock * sk,struct sk_buff * skb) br_nf_pre_routing_finish() argument 430 brnf_get_logical_dev(struct sk_buff * skb,const struct net_device * dev,const struct net * net) brnf_get_logical_dev() argument 449 setup_pre_routing(struct sk_buff * skb,const struct net * net) setup_pre_routing() argument 479 br_nf_pre_routing(void * priv,struct sk_buff * skb,const struct nf_hook_state * state) br_nf_pre_routing() argument 581 br_nf_local_in(void * priv,struct sk_buff * skb,const struct nf_hook_state * state) br_nf_local_in() argument 634 br_nf_forward_finish(struct net * net,struct sock * sk,struct sk_buff * skb) br_nf_forward_finish() argument 668 br_nf_forward_ip(struct sk_buff * skb,const struct nf_hook_state * state,u8 pf) br_nf_forward_ip() argument 723 br_nf_forward_arp(struct sk_buff * skb,const struct nf_hook_state * state) br_nf_forward_arp() argument 765 br_nf_forward(void * priv,struct sk_buff * skb,const struct nf_hook_state * state) br_nf_forward() argument 780 br_nf_push_frag_xmit(struct net * net,struct sock * sk,struct sk_buff * skb) br_nf_push_frag_xmit() argument 804 br_nf_ip_fragment(struct net * net,struct sock * sk,struct sk_buff * skb,int (* output)(struct net *,struct sock *,struct sk_buff *)) br_nf_ip_fragment() argument 821 nf_bridge_mtu_reduction(const struct sk_buff * skb) nf_bridge_mtu_reduction() argument 830 br_nf_dev_queue_xmit(struct net * net,struct sock * sk,struct sk_buff * skb) br_nf_dev_queue_xmit() argument 928 br_nf_post_routing(void * priv,struct sk_buff * skb,const struct nf_hook_state * state) br_nf_post_routing() argument 977 ip_sabotage_in(void * priv,struct sk_buff * skb,const struct nf_hook_state * state) ip_sabotage_in() argument 1007 br_nf_pre_routing_finish_bridge_slow(struct sk_buff * skb) br_nf_pre_routing_finish_bridge_slow() argument 1032 br_nf_dev_xmit(struct sk_buff * skb) br_nf_dev_xmit() argument 1126 br_nf_hook_thresh(unsigned int hook,struct net * net,struct sock * sk,struct sk_buff * skb,struct net_device * indev,struct net_device * outdev,int (* okfn)(struct net *,struct sock *,struct sk_buff *)) br_nf_hook_thresh() argument [all...] |
| H A D | br_forward.c | 22 const struct sk_buff *skb) in should_deliver() argument 27 return ((p->flags & BR_HAIRPIN_MODE) || skb->dev != p->dev) && in should_deliver() 29 br_allowed_egress(vg, skb) && nbp_switchdev_allowed_egress(p, skb) && in should_deliver() 30 !br_skb_isolated(p, skb); in should_deliver() 33 int br_dev_queue_push_xmit(struct net *net, struct sock *sk, struct sk_buff *skb) in br_dev_queue_push_xmit() argument 35 skb_push(skb, ETH_HLEN); in br_dev_queue_push_xmit() 36 if (!is_skb_forwardable(skb->dev, skb)) in br_dev_queue_push_xmit() 39 br_drop_fake_rtable(skb); in br_dev_queue_push_xmit() 41 if (skb->ip_summed == CHECKSUM_PARTIAL && in br_dev_queue_push_xmit() 42 eth_type_vlan(skb->protocol)) { in br_dev_queue_push_xmit() [all …]
|
| H A D | br_netfilter_ipv6.c | 44 int br_validate_ipv6(struct net *net, struct sk_buff *skb) in br_validate_ipv6() 47 struct inet6_dev *idev = __in6_dev_get(skb->dev); in br_validate_ipv6() 51 if (!pskb_may_pull(skb, ip6h_len)) in br_validate_ipv6() 54 if (skb->len < ip6h_len) in br_validate_ipv6() 57 hdr = ipv6_hdr(skb); in br_validate_ipv6() 62 pkt_len = ipv6_payload_len(skb, hdr); in br_validate_ipv6() 63 if (hdr->nexthdr == NEXTHDR_HOP && nf_ip6_check_hbh_len(skb, &pkt_len)) in br_validate_ipv6() 66 if (pkt_len + ip6h_len > skb->len) { in br_validate_ipv6() 71 if (pskb_trim_rcsum(skb, pkt_len + ip6h_len)) { in br_validate_ipv6() 77 memset(IP6CB(skb), in br_validate_ipv6() 43 br_validate_ipv6(struct net * net,struct sk_buff * skb) br_validate_ipv6() argument 89 br_nf_ipv6_daddr_was_changed(const struct sk_buff * skb,const struct nf_bridge_info * nf_bridge) br_nf_ipv6_daddr_was_changed() argument 101 br_nf_pre_routing_finish_ipv6(struct net * net,struct sock * sk,struct sk_buff * skb) br_nf_pre_routing_finish_ipv6() argument 164 br_nf_pre_routing_ipv6(void * priv,struct sk_buff * skb,const struct nf_hook_state * state) br_nf_pre_routing_ipv6() argument [all...] |
| /linux/net/core/ |
| H A D | gro.c | 92 int skb_gro_receive(struct sk_buff *p, struct sk_buff *skb) in skb_gro_receive() argument 94 struct skb_shared_info *pinfo, *skbinfo = skb_shinfo(skb); in skb_gro_receive() 95 unsigned int offset = skb_gro_offset(skb); in skb_gro_receive() 96 unsigned int headlen = skb_headlen(skb); in skb_gro_receive() 97 unsigned int len = skb_gro_len(skb); in skb_gro_receive() 109 if (p->pp_recycle != skb->pp_recycle) in skb_gro_receive() 113 NAPI_GRO_CB(skb)->flush)) in skb_gro_receive() 117 if (NAPI_GRO_CB(skb)->proto != IPPROTO_TCP || in skb_gro_receive() 122 segs = NAPI_GRO_CB(skb)->count; in skb_gro_receive() 149 new_truesize = SKB_TRUESIZE(skb_end_offset(skb)); in skb_gro_receive() [all …]
|
| H A D | skbuff.c | 19 * Ray VanTassle : Fixed --skb->lock in free 88 #include <trace/events/skb.h> 197 * @skb: buffer 207 static void skb_panic(struct sk_buff *skb, unsigned int sz, void *addr, in skb_panic() argument 211 msg, addr, skb->len, sz, skb->head, skb->data, in skb_panic() 212 (unsigned long)skb->tail, (unsigned long)skb->end, in skb_panic() 213 skb in skb_panic() 217 skb_over_panic(struct sk_buff * skb,unsigned int sz,void * addr) skb_over_panic() argument 222 skb_under_panic(struct sk_buff * skb,unsigned int sz,void * addr) skb_under_panic() argument 287 struct sk_buff *skb; napi_skb_cache_get() local 316 skbuff_clear(struct sk_buff * skb) skbuff_clear() argument 388 __finalize_skb_around(struct sk_buff * skb,void * data,unsigned int size) __finalize_skb_around() argument 437 struct sk_buff *skb; slab_build_skb() local 454 __build_skb_around(struct sk_buff * skb,void * data,unsigned int frag_size) __build_skb_around() argument 490 struct sk_buff *skb; __build_skb() local 508 struct sk_buff *skb = __build_skb(data, frag_size); build_skb() local 524 build_skb_around(struct sk_buff * skb,void * data,unsigned int frag_size) build_skb_around() argument 552 struct sk_buff *skb; __napi_build_skb() local 576 struct sk_buff *skb = __napi_build_skb(data, frag_size); napi_build_skb() local 605 kmalloc_reserve(unsigned int * size,gfp_t flags,int node,struct sk_buff * skb) kmalloc_reserve() argument 675 struct sk_buff *skb = NULL; __alloc_skb() local 763 struct sk_buff *skb; __netdev_alloc_skb() local 840 struct sk_buff *skb; napi_alloc_skb() local 894 skb_add_rx_frag_netmem(struct sk_buff * skb,int i,netmem_ref netmem,int off,int size,unsigned int truesize) skb_add_rx_frag_netmem() argument 906 skb_coalesce_rx_frag(struct sk_buff * skb,int i,int size,unsigned int truesize) skb_coalesce_rx_frag() argument 926 skb_drop_fraglist(struct sk_buff * skb) skb_drop_fraglist() argument 931 skb_clone_fraglist(struct sk_buff * skb) skb_clone_fraglist() argument 944 struct sk_buff *skb = *pskb, *nskb; skb_pp_cow_data() local 1046 skb_pp_recycle(struct sk_buff * skb,void * data) skb_pp_recycle() argument 1063 skb_pp_frag_ref(struct sk_buff * skb) skb_pp_frag_ref() argument 1089 skb_free_head(struct sk_buff * skb) skb_free_head() argument 1102 skb_release_data(struct sk_buff * skb,enum skb_drop_reason reason) skb_release_data() argument 1142 kfree_skbmem(struct sk_buff * skb) kfree_skbmem() argument 1172 skb_release_head_state(struct sk_buff * skb) skb_release_head_state() argument 1196 skb_release_all(struct sk_buff * skb,enum skb_drop_reason reason) skb_release_all() argument 1212 __kfree_skb(struct sk_buff * skb) __kfree_skb() argument 1220 __sk_skb_reason_drop(struct sock * sk,struct sk_buff * skb,enum skb_drop_reason reason) __sk_skb_reason_drop() argument 1249 sk_skb_reason_drop(struct sock * sk,struct sk_buff * skb,enum skb_drop_reason reason) sk_skb_reason_drop() argument 1263 kfree_skb_add_bulk(struct sk_buff * skb,struct skb_free_array * sa,enum skb_drop_reason reason) kfree_skb_add_bulk() argument 1312 skb_dump(const char * level,const struct sk_buff * skb,bool full_pkt) skb_dump() argument 1423 skb_tx_error(struct sk_buff * skb) skb_tx_error() argument 1441 consume_skb(struct sk_buff * skb) consume_skb() argument 1459 __consume_stateless_skb(struct sk_buff * skb) __consume_stateless_skb() argument 1466 napi_skb_cache_put(struct sk_buff * skb) napi_skb_cache_put() argument 1491 __napi_kfree_skb(struct sk_buff * skb,enum skb_drop_reason reason) __napi_kfree_skb() argument 1497 napi_skb_free_stolen_head(struct sk_buff * skb) napi_skb_free_stolen_head() argument 1521 napi_consume_skb(struct sk_buff * skb,int budget) napi_consume_skb() argument 1608 __skb_clone(struct sk_buff * n,struct sk_buff * skb) __skb_clone() argument 1730 struct sk_buff *skb; msg_zerocopy_alloc() local 1815 skb_zerocopy_notify_extend(struct sk_buff * skb,u32 lo,u16 len) skb_zerocopy_notify_extend() argument 1837 struct sk_buff *tail, *skb = skb_from_uarg(uarg); __msg_zerocopy_callback() local 1885 msg_zerocopy_complete(struct sk_buff * skb,struct ubuf_info * uarg,bool success) msg_zerocopy_complete() argument 1913 skb_zerocopy_iter_stream(struct sock * sk,struct sk_buff * skb,struct msghdr * msg,int len,struct ubuf_info * uarg,struct net_devmem_dmabuf_binding * binding) skb_zerocopy_iter_stream() argument 1953 __skb_zcopy_downgrade_managed(struct sk_buff * skb) __skb_zcopy_downgrade_managed() argument 1998 skb_copy_ubufs(struct sk_buff * skb,gfp_t gfp_mask) skb_copy_ubufs() argument 2098 skb_clone(struct sk_buff * skb,gfp_t gfp_mask) skb_clone() argument 2128 skb_headers_offset_update(struct sk_buff * skb,int off) skb_headers_offset_update() argument 2154 skb_alloc_rx_flag(const struct sk_buff * skb) skb_alloc_rx_flag() argument 2178 skb_copy(const struct sk_buff * skb,gfp_t gfp_mask) skb_copy() argument 2226 __pskb_copy_fclone(struct sk_buff * skb,int headroom,gfp_t gfp_mask,bool fclone) __pskb_copy_fclone() argument 2294 pskb_expand_head(struct sk_buff * skb,int nhead,int ntail,gfp_t gfp_mask) pskb_expand_head() argument 2381 skb_realloc_headroom(struct sk_buff * skb,unsigned int headroom) skb_realloc_headroom() argument 2401 __skb_unclone_keeptruesize(struct sk_buff * skb,gfp_t pri) __skb_unclone_keeptruesize() argument 2459 skb_expand_head(struct sk_buff * skb,unsigned int headroom) skb_expand_head() argument 2516 skb_copy_expand(const struct sk_buff * skb,int newheadroom,int newtailroom,gfp_t gfp_mask) skb_copy_expand() argument 2578 __skb_pad(struct sk_buff * skb,int pad,bool free_on_error) __skb_pad() argument 2626 pskb_put(struct sk_buff * skb,struct sk_buff * tail,int len) pskb_put() argument 2645 skb_put(struct sk_buff * skb,unsigned int len) skb_put() argument 2666 skb_push(struct sk_buff * skb,unsigned int len) skb_push() argument 2686 skb_pull(struct sk_buff * skb,unsigned int len) skb_pull() argument 2703 skb_pull_data(struct sk_buff * skb,size_t len) skb_pull_data() argument 2725 skb_trim(struct sk_buff * skb,unsigned int len) skb_trim() argument 2735 ___pskb_trim(struct sk_buff * skb,unsigned int len) ___pskb_trim() argument 2822 pskb_trim_rcsum_slow(struct sk_buff * skb,unsigned int len) pskb_trim_rcsum_slow() argument 2866 __pskb_pull_tail(struct sk_buff * skb,int delta) __pskb_pull_tail() argument 3010 skb_copy_bits(const struct sk_buff * skb,int offset,void * to,int len) skb_copy_bits() argument 3196 __skb_splice_bits(struct sk_buff * skb,struct pipe_inode_info * pipe,unsigned int * offset,unsigned int * len,struct splice_pipe_desc * spd,struct sock * sk) __skb_splice_bits() argument 3254 skb_splice_bits(struct sk_buff * skb,struct sock * sk,unsigned int offset,struct pipe_inode_info * pipe,unsigned int tlen,unsigned int flags) skb_splice_bits() argument 3302 __skb_send_sock(struct sock * sk,struct sk_buff * skb,int offset,int len,sendmsg_func sendmsg,int flags) __skb_send_sock() argument 3407 skb_send_sock_locked(struct sock * sk,struct sk_buff * skb,int offset,int len) skb_send_sock_locked() argument 3414 skb_send_sock_locked_with_flags(struct sock * sk,struct sk_buff * skb,int offset,int len,int flags) skb_send_sock_locked_with_flags() argument 3422 skb_send_sock(struct sock * sk,struct sk_buff * skb,int offset,int len) skb_send_sock() argument 3439 skb_store_bits(struct sk_buff * skb,int offset,const void * from,int len) skb_store_bits() argument 3520 skb_checksum(const struct sk_buff * skb,int offset,int len,__wsum csum) skb_checksum() argument 3602 skb_copy_and_csum_bits(const struct sk_buff * skb,int offset,u8 * to,int len) skb_copy_and_csum_bits() argument 3691 skb_crc32c(const struct sk_buff * skb,int offset,int len,u32 crc) skb_crc32c() argument 3762 __skb_checksum_complete_head(struct sk_buff * skb,int len) __skb_checksum_complete_head() argument 3788 __skb_checksum_complete(struct sk_buff * skb) __skb_checksum_complete() argument 3926 skb_copy_and_csum_dev(const struct sk_buff * skb,u8 * to) skb_copy_and_csum_dev() argument 4038 struct sk_buff *skb = rb_entry(p, struct sk_buff, rbnode); skb_rbtree_purge() local 4050 struct sk_buff *skb, *next; skb_errqueue_purge() local 4121 skb_unlink(struct sk_buff * skb,struct sk_buff_head * list) skb_unlink() argument 4151 skb_split_inside_header(struct sk_buff * skb,struct sk_buff * skb1,const u32 len,const int pos) skb_split_inside_header() argument 4173 skb_split_no_header(struct sk_buff * skb,struct sk_buff * skb1,const u32 len,int pos) skb_split_no_header() argument 4222 skb_split(struct sk_buff * skb,struct sk_buff * skb1,const u32 len) skb_split() argument 4242 skb_prepare_for_shift(struct sk_buff * skb) skb_prepare_for_shift() argument 4265 skb_shift(struct sk_buff * tgt,struct sk_buff * skb,int shiftlen) skb_shift() argument 4392 skb_prepare_seq_read(struct sk_buff * skb,unsigned int from,unsigned int to,struct skb_seq_state * st) skb_prepare_seq_read() argument 4591 skb_find_text(struct sk_buff * skb,unsigned int from,unsigned int to,struct ts_config * config) skb_find_text() argument 4610 skb_append_pagefrags(struct sk_buff * skb,struct page * page,int offset,size_t size,size_t max_frags) skb_append_pagefrags() argument 4640 skb_pull_rcsum(struct sk_buff * skb,unsigned int len) skb_pull_rcsum() argument 4663 skb_segment_list(struct sk_buff * skb,netdev_features_t features,unsigned int offset) skb_segment_list() argument 5215 __skb_to_sgvec(struct sk_buff * skb,struct scatterlist * sg,int offset,int len,unsigned int recursion_level) __skb_to_sgvec() argument 5298 skb_to_sgvec(struct sk_buff * skb,struct scatterlist * sg,int offset,int len) skb_to_sgvec() argument 5330 skb_to_sgvec_nomark(struct sk_buff * skb,struct scatterlist * sg,int offset,int len) skb_to_sgvec_nomark() argument 5356 skb_cow_data(struct sk_buff * skb,int tailbits,struct sk_buff ** trailer) skb_cow_data() argument 5449 sock_rmem_free(struct sk_buff * skb) sock_rmem_free() argument 5456 skb_set_err_queue(struct sk_buff * skb) skb_set_err_queue() argument 5468 sock_queue_err_skb(struct sock * sk,struct sk_buff * skb) sock_queue_err_skb() argument 5490 is_icmp_err_skb(const struct sk_buff * skb) is_icmp_err_skb() argument 5499 struct sk_buff *skb, *skb_next = NULL; sock_dequeue_err_skb() local 5538 skb_clone_sk(struct sk_buff * skb) skb_clone_sk() argument 5559 __skb_complete_tx_timestamp(struct sk_buff * skb,struct sock * sk,int tstype,bool opt_stats) __skb_complete_tx_timestamp() argument 5615 skb_complete_tx_timestamp(struct sk_buff * skb,struct skb_shared_hwtstamps * hwtstamps) skb_complete_tx_timestamp() argument 5638 skb_tstamp_tx_report_so_timestamping(struct sk_buff * skb,struct skb_shared_hwtstamps * hwtstamps,int tstype) skb_tstamp_tx_report_so_timestamping() argument 5657 skb_tstamp_tx_report_bpf_timestamping(struct sk_buff * skb,struct skb_shared_hwtstamps * hwtstamps,struct sock * sk,int tstype) skb_tstamp_tx_report_bpf_timestamping() argument 5691 struct sk_buff *skb; __skb_tstamp_tx() local 5759 skb_complete_wifi_ack(struct sk_buff * skb,bool acked) skb_complete_wifi_ack() argument 5798 skb_partial_csum_set(struct sk_buff * skb,u16 start,u16 off) skb_partial_csum_set() argument 5816 skb_maybe_pull_tail(struct sk_buff * skb,unsigned int len,unsigned int max) skb_maybe_pull_tail() argument 5839 skb_checksum_setup_ip(struct sk_buff * skb,typeof(IPPROTO_IP) proto,unsigned int off) skb_checksum_setup_ip() argument 5873 skb_checksum_setup_ipv4(struct sk_buff * skb,bool recalculate) skb_checksum_setup_ipv4() argument 5918 OPT_HDR(type,skb,off) global() argument 5921 skb_checksum_setup_ipv6(struct sk_buff * skb,bool recalculate) skb_checksum_setup_ipv6() argument 6026 skb_checksum_setup(struct sk_buff * skb,bool recalculate) skb_checksum_setup() argument 6061 skb_checksum_maybe_trim(struct sk_buff * skb,unsigned int transport_len) skb_checksum_maybe_trim() argument 6101 skb_checksum_trimmed(struct sk_buff * skb,unsigned int transport_len,__sum16 (* skb_chkf)(struct sk_buff * skb)) skb_checksum_trimmed() argument 6103 skb_checksum_trimmed(struct sk_buff * skb,unsigned int transport_len,__sum16 (* skb_chkf)(struct sk_buff * skb)) skb_checksum_trimmed() argument 6134 __skb_warn_lro_forwarding(const struct sk_buff * skb) __skb_warn_lro_forwarding() argument 6141 kfree_skb_partial(struct sk_buff * skb,bool head_stolen) kfree_skb_partial() argument 6263 skb_scrub_packet(struct sk_buff * skb,bool xnet) skb_scrub_packet() argument 6287 skb_reorder_vlan_header(struct sk_buff * skb) skb_reorder_vlan_header() argument 6313 skb_vlan_untag(struct sk_buff * skb) skb_vlan_untag() argument 6354 skb_ensure_writable(struct sk_buff * skb,unsigned int write_len) skb_ensure_writable() argument 6366 skb_ensure_writable_head_tail(struct sk_buff * skb,struct net_device * dev) skb_ensure_writable_head_tail() argument 6394 __skb_vlan_pop(struct sk_buff * skb,u16 * vlan_tci) __skb_vlan_pop() argument 6427 skb_vlan_pop(struct sk_buff * skb) skb_vlan_pop() argument 6460 skb_vlan_push(struct sk_buff * skb,__be16 vlan_proto,u16 vlan_tci) skb_vlan_push() argument 6499 skb_eth_pop(struct sk_buff * skb) skb_eth_pop() argument 6526 skb_eth_push(struct sk_buff * skb,const unsigned char * dst,const unsigned char * src) skb_eth_push() argument 6555 skb_mod_eth_type(struct sk_buff * skb,struct ethhdr * hdr,__be16 ethertype) skb_mod_eth_type() argument 6582 skb_mpls_push(struct sk_buff * skb,__be32 mpls_lse,__be16 mpls_proto,int mac_len,bool ethernet) skb_mpls_push() argument 6635 skb_mpls_pop(struct sk_buff * skb,__be16 next_proto,int mac_len,bool ethernet) skb_mpls_pop() argument 6678 skb_mpls_update_lse(struct sk_buff * skb,__be32 mpls_lse) skb_mpls_update_lse() argument 6710 skb_mpls_dec_ttl(struct sk_buff * skb) skb_mpls_dec_ttl() argument 6751 struct sk_buff *skb; alloc_skb_with_frags() local 6800 pskb_carve_inside_header(struct sk_buff * skb,const u32 off,const int headlen,gfp_t gfp_mask) pskb_carve_inside_header() argument 6914 pskb_carve_inside_nonlinear(struct sk_buff * skb,const u32 off,int pos,gfp_t gfp_mask) pskb_carve_inside_nonlinear() argument 6991 pskb_carve(struct sk_buff * skb,const u32 len,gfp_t gfp) pskb_carve() argument 7004 pskb_extract(struct sk_buff * skb,int off,int to_copy,gfp_t gfp) pskb_extract() argument 7033 skb_condense(struct sk_buff * skb) skb_condense() argument 7127 __skb_ext_set(struct sk_buff * skb,enum skb_ext_id id,struct skb_ext * ext) __skb_ext_set() argument 7156 skb_ext_add(struct sk_buff * skb,enum skb_ext_id id) skb_ext_add() argument 7209 __skb_ext_del(struct sk_buff * skb,enum skb_ext_id id) __skb_ext_del() argument 7254 kfree_skb_napi_cache(struct sk_buff * skb) kfree_skb_napi_cache() argument 7275 skb_attempt_defer_free(struct sk_buff * skb) skb_attempt_defer_free() argument 7319 skb_splice_csum_page(struct sk_buff * skb,struct page * page,size_t offset,size_t len) skb_splice_csum_page() argument 7345 skb_splice_from_iter(struct sk_buff * skb,struct iov_iter * iter,ssize_t maxsize) skb_splice_from_iter() argument 7463 __vlan_get_protocol_offset(const struct sk_buff * skb,__be16 type,int mac_offset) __vlan_get_protocol_offset() argument [all...] |
| H A D | gso.c | 13 struct sk_buff *skb_eth_gso_segment(struct sk_buff *skb, in skb_eth_gso_segment() argument 22 segs = ptype->callbacks.gso_segment(skb, features); in skb_eth_gso_segment() 37 struct sk_buff *skb_mac_gso_segment(struct sk_buff *skb, in skb_mac_gso_segment() argument 42 int vlan_depth = skb->mac_len; in skb_mac_gso_segment() 43 __be16 type = skb_network_protocol(skb, &vlan_depth); in skb_mac_gso_segment() 48 __skb_pull(skb, vlan_depth); in skb_mac_gso_segment() 53 segs = ptype->callbacks.gso_segment(skb, features); in skb_mac_gso_segment() 59 __skb_push(skb, skb->data - skb_mac_header(skb)); in skb_mac_gso_segment() 66 static bool skb_needs_check(const struct sk_buff *skb, bool tx_path) in skb_needs_check() argument 69 return skb->ip_summed != CHECKSUM_PARTIAL && in skb_needs_check() [all …]
|
| /linux/net/ipv6/ |
| H A D | exthdrs.c | 65 static bool ip6_tlvopt_unknown(struct sk_buff *skb, int optoff, in ip6_tlvopt_unknown() argument 79 switch ((skb_network_header(skb)[optoff] & 0xC0) >> 6) { in ip6_tlvopt_unknown() 90 if (ipv6_addr_is_multicast(&ipv6_hdr(skb)->daddr)) in ip6_tlvopt_unknown() 94 icmpv6_param_prob_reason(skb, ICMPV6_UNK_OPTION, optoff, in ip6_tlvopt_unknown() 100 kfree_skb_reason(skb, SKB_DROP_REASON_UNHANDLED_PROTO); in ip6_tlvopt_unknown() 104 static bool ipv6_hop_ra(struct sk_buff *skb, int optoff); 105 static bool ipv6_hop_ioam(struct sk_buff *skb, int optoff); 106 static bool ipv6_hop_jumbo(struct sk_buff *skb, int optoff); 107 static bool ipv6_hop_calipso(struct sk_buff *skb, int optoff); 109 static bool ipv6_dest_hao(struct sk_buff *skb, int optoff); [all …]
|
| H A D | ip6_input.c | 49 static void tcp_v6_early_demux(struct sk_buff *skb) in ip6_rcv_finish_core() argument 51 struct net *net = dev_net_rcu(skb->dev); in ip6_rcv_finish_core() 56 if (skb->pkt_type != PACKET_HOST) in ip6_rcv_finish_core() 59 if (!pskb_may_pull(skb, skb_transport_offset(skb) + in ip6_rcv_finish_core() 63 hdr = ipv6_hdr(skb); in ip6_rcv_finish_core() 64 th = tcp_hdr(skb); in ip6_rcv_finish_core() 72 inet6_iif(skb), inet6_sdif(skb)); in ip6_rcv_finish() 74 skb in ip6_rcv_finish() 69 ip6_rcv_finish(struct net * net,struct sock * sk,struct sk_buff * skb) ip6_rcv_finish() argument 84 struct sk_buff *skb, *next; ip6_sublist_rcv_finish() local 92 ip6_can_use_hint(const struct sk_buff * skb,const struct sk_buff * hint) ip6_can_use_hint() argument 100 ip6_extract_route_hint(const struct net * net,struct sk_buff * skb) ip6_extract_route_hint() argument 112 struct sk_buff *skb, *next, *hint = NULL; ip6_list_rcv_finish() local 148 ip6_rcv_core(struct sk_buff * skb,struct net_device * dev,struct net * net) ip6_rcv_core() argument 304 ipv6_rcv(struct sk_buff * skb,struct net_device * dev,struct packet_type * pt,struct net_device * orig_dev) ipv6_rcv() argument 330 struct sk_buff *skb, *next; ipv6_list_rcv() local 363 ip6_protocol_deliver_rcu(struct net * net,struct sk_buff * skb,int nexthdr,bool have_final) ip6_protocol_deliver_rcu() argument 479 ip6_input_finish(struct net * net,struct sock * sk,struct sk_buff * skb) ip6_input_finish() argument 495 ip6_input(struct sk_buff * skb) ip6_input() argument 509 ip6_mc_input(struct sk_buff * skb) ip6_mc_input() argument [all...] |
| H A D | ip6_offload.c | 24 static int ipv6_gro_pull_exthdrs(struct sk_buff *skb, int off, int proto) 40 opth = skb_gro_header(skb, off + sizeof(*opth), off); in ipv6_gro_pull_exthdrs() argument 46 opth = skb_gro_header(skb, off + len, off); in ipv6_gro_pull_exthdrs() 54 skb_gro_pull(skb, off - skb_gro_receive_network_offset(skb)); in ipv6_gro_pull_exthdrs() 58 static int ipv6_gso_pull_exthdrs(struct sk_buff *skb, int proto) in ipv6_gro_pull_exthdrs() 74 if (unlikely(!pskb_may_pull(skb, 8))) in ipv6_gso_pull_exthdrs() argument 77 opth = (void *)skb->data; in ipv6_gso_pull_exthdrs() 80 if (unlikely(!pskb_may_pull(skb, len))) in ipv6_gso_pull_exthdrs() 83 opth = (void *)skb in ipv6_gso_pull_exthdrs() 33 indirect_call_gro_receive_l4(f2,f1,cb,head,skb) global() argument 107 ipv6_gso_segment(struct sk_buff * skb,netdev_features_t features) ipv6_gso_segment() argument 223 ipv6_gro_receive(struct list_head * head,struct sk_buff * skb) ipv6_gro_receive() argument 311 sit_ip6ip6_gro_receive(struct list_head * head,struct sk_buff * skb) sit_ip6ip6_gro_receive() argument 326 ip4ip6_gro_receive(struct list_head * head,struct sk_buff * skb) ip4ip6_gro_receive() argument 340 ipv6_gro_complete(struct sk_buff * skb,int nhoff) ipv6_gro_complete() argument 392 sit_gro_complete(struct sk_buff * skb,int nhoff) sit_gro_complete() argument 399 ip6ip6_gro_complete(struct sk_buff * skb,int nhoff) ip6ip6_gro_complete() argument 406 ip4ip6_gro_complete(struct sk_buff * skb,int nhoff) ip4ip6_gro_complete() argument 414 sit_gso_segment(struct sk_buff * skb,netdev_features_t features) sit_gso_segment() argument 423 ip4ip6_gso_segment(struct sk_buff * skb,netdev_features_t features) ip4ip6_gso_segment() argument 432 ip6ip6_gso_segment(struct sk_buff * skb,netdev_features_t features) ip6ip6_gso_segment() argument [all...] |
| /linux/net/devlink/ |
| H A D | netlink_gen.h | 23 int devlink_nl_pre_doit(const struct genl_split_ops *ops, struct sk_buff *skb, 26 struct sk_buff *skb, struct genl_info *info); 28 struct sk_buff *skb, 31 struct sk_buff *skb, struct genl_info *info); 33 devlink_nl_post_doit(const struct genl_split_ops *ops, struct sk_buff *skb, 37 struct sk_buff *skb, struct genl_info *info); 39 int devlink_nl_get_doit(struct sk_buff *skb, struct genl_info *info); 40 int devlink_nl_get_dumpit(struct sk_buff *skb, struct netlink_callback *cb); 41 int devlink_nl_port_get_doit(struct sk_buff *skb, struct genl_info *info); 42 int devlink_nl_port_get_dumpit(struct sk_buff *skb, [all...] |
| /linux/drivers/net/ethernet/qualcomm/rmnet/ |
| H A D | rmnet_handlers.c | 22 static void rmnet_set_skb_proto(struct sk_buff *skb) in rmnet_set_skb_proto() argument 24 switch (skb->data[0] & 0xF0) { in rmnet_set_skb_proto() 26 skb->protocol = htons(ETH_P_IP); in rmnet_set_skb_proto() 29 skb->protocol = htons(ETH_P_IPV6); in rmnet_set_skb_proto() 32 skb->protocol = htons(ETH_P_MAP); in rmnet_set_skb_proto() 40 rmnet_deliver_skb(struct sk_buff *skb) in rmnet_deliver_skb() argument 42 struct rmnet_priv *priv = netdev_priv(skb->dev); in rmnet_deliver_skb() 44 skb_reset_transport_header(skb); in rmnet_deliver_skb() 45 skb_reset_network_header(skb); in rmnet_deliver_skb() 46 rmnet_vnd_rx_fixup(skb, skb->dev); in rmnet_deliver_skb() [all …]
|
| /linux/drivers/net/wireless/ath/ath10k/ |
| H A D | wmi-ops.h | 15 void (*rx)(struct ath10k *ar, struct sk_buff *skb); 19 int (*pull_scan)(struct ath10k *ar, struct sk_buff *skb, 21 int (*pull_mgmt_rx)(struct ath10k *ar, struct sk_buff *skb, 23 int (*pull_mgmt_tx_compl)(struct ath10k *ar, struct sk_buff *skb, 26 struct ath10k *ar, struct sk_buff *skb, 28 int (*pull_ch_info)(struct ath10k *ar, struct sk_buff *skb, 30 int (*pull_vdev_start)(struct ath10k *ar, struct sk_buff *skb, 32 int (*pull_peer_kick)(struct ath10k *ar, struct sk_buff *skb, 34 int (*pull_swba)(struct ath10k *ar, struct sk_buff *skb, 36 int (*pull_phyerr_hdr)(struct ath10k *ar, struct sk_buff *skb, [all …]
|
| /linux/include/net/ |
| H A D | llc_c_ev.h | 123 static __inline__ struct llc_conn_state_ev *llc_conn_ev(struct sk_buff *skb) in llc_conn_ev() argument 125 return (struct llc_conn_state_ev *)skb->cb; in llc_conn_ev() 128 typedef int (*llc_conn_ev_t)(struct sock *sk, struct sk_buff *skb); 129 typedef int (*llc_conn_ev_qfyr_t)(struct sock *sk, struct sk_buff *skb); 131 int llc_conn_ev_conn_req(struct sock *sk, struct sk_buff *skb); 132 int llc_conn_ev_data_req(struct sock *sk, struct sk_buff *skb); 133 int llc_conn_ev_disc_req(struct sock *sk, struct sk_buff *skb); 134 int llc_conn_ev_rst_req(struct sock *sk, struct sk_buff *skb); 135 int llc_conn_ev_local_busy_detected(struct sock *sk, struct sk_buff *skb); 136 int llc_conn_ev_local_busy_cleared(struct sock *sk, struct sk_buff *skb); [all …]
|
| H A D | llc_c_ac.h | 97 typedef int (*llc_conn_action_t)(struct sock *sk, struct sk_buff *skb); 99 int llc_conn_ac_clear_remote_busy(struct sock *sk, struct sk_buff *skb); 100 int llc_conn_ac_conn_ind(struct sock *sk, struct sk_buff *skb); 101 int llc_conn_ac_conn_confirm(struct sock *sk, struct sk_buff *skb); 102 int llc_conn_ac_data_ind(struct sock *sk, struct sk_buff *skb); 103 int llc_conn_ac_disc_ind(struct sock *sk, struct sk_buff *skb); 104 int llc_conn_ac_rst_ind(struct sock *sk, struct sk_buff *skb); 105 int llc_conn_ac_rst_confirm(struct sock *sk, struct sk_buff *skb); 107 struct sk_buff *skb); 109 struct sk_buff *skb); [all …]
|
| /linux/net/bridge/netfilter/ |
| H A D | nf_conntrack_bridge.c | 27 struct sk_buff *skb, in nf_br_ip_fragment() 33 int frag_max_size = BR_INPUT_SKB_CB(skb)->frag_max_size; in nf_br_ip_fragment() 34 u8 tstamp_type = skb->tstamp_type; in nf_br_ip_fragment() 36 ktime_t tstamp = skb->tstamp; in nf_br_ip_fragment() 42 if (skb->ip_summed == CHECKSUM_PARTIAL && in nf_br_ip_fragment() 43 (err = skb_checksum_help(skb))) in nf_br_ip_fragment() 46 iph = ip_hdr(skb); in nf_br_ip_fragment() 54 ll_rs = LL_RESERVED_SPACE(skb->dev); in nf_br_ip_fragment() 55 mtu = skb->dev->mtu; in nf_br_ip_fragment() 57 if (skb_has_frag_list(skb)) { in nf_br_ip_fragment() 28 nf_br_ip_fragment(struct net * net,struct sock * sk,struct sk_buff * skb,struct nf_bridge_frag_data * data,int (* output)(struct net *,struct sock * sk,const struct nf_bridge_frag_data * data,struct sk_buff *)) nf_br_ip_fragment() argument 130 br_skb_cb_save(struct sk_buff * skb,struct br_input_skb_cb * cb,size_t inet_skb_parm_size) br_skb_cb_save() argument 137 br_skb_cb_restore(struct sk_buff * skb,const struct br_input_skb_cb * cb,u16 fragsz) br_skb_cb_restore() argument 145 nf_ct_br_defrag4(struct sk_buff * skb,const struct nf_hook_state * state) nf_ct_br_defrag4() argument 175 nf_ct_br_defrag6(struct sk_buff * skb,const struct nf_hook_state * state) nf_ct_br_defrag6() argument 204 nf_ct_br_ip_check(const struct sk_buff * skb) nf_ct_br_ip_check() argument 223 nf_ct_br_ipv6_check(const struct sk_buff * skb) nf_ct_br_ipv6_check() argument 240 nf_ct_bridge_pre(void * priv,struct sk_buff * skb,const struct nf_hook_state * state) nf_ct_bridge_pre() argument 294 nf_ct_bridge_in(void * priv,struct sk_buff * skb,const struct nf_hook_state * state) nf_ct_bridge_in() argument 324 nf_ct_bridge_frag_save(struct sk_buff * skb,struct nf_bridge_frag_data * data) nf_ct_bridge_frag_save() argument 338 nf_ct_bridge_refrag(struct sk_buff * skb,const struct nf_hook_state * state,int (* output)(struct net *,struct sock * sk,const struct nf_bridge_frag_data * data,struct sk_buff *)) nf_ct_bridge_refrag() argument 365 nf_ct_bridge_frag_restore(struct sk_buff * skb,const struct nf_bridge_frag_data * data) nf_ct_bridge_frag_restore() argument 388 nf_ct_bridge_refrag_post(struct net * net,struct sock * sk,const struct nf_bridge_frag_data * data,struct sk_buff * skb) nf_ct_bridge_refrag_post() argument 399 nf_ct_bridge_post(void * priv,struct sk_buff * skb,const struct nf_hook_state * state) nf_ct_bridge_post() argument [all...] |
| /linux/net/sched/ |
| H A D | sch_frag.c | 19 int (*xmit)(struct sk_buff *skb); 27 static int sch_frag_xmit(struct net *net, struct sock *sk, struct sk_buff *skb) in sch_frag_xmit() 32 if (skb_cow_head(skb, data->l2_len) < 0) { in sch_frag_xmit() 33 kfree_skb(skb); in sch_frag_xmit() 37 __skb_dst_copy(skb, data->dst); in sch_frag_xmit() 38 *qdisc_skb_cb(skb) = data->cb; in sch_frag_xmit() 39 skb->inner_protocol = data->inner_protocol; in sch_frag_xmit() 41 __vlan_hwaccel_put_tag(skb, data->vlan_proto, in sch_frag_xmit() 44 __vlan_hwaccel_clear_tag(skb); in sch_frag_xmit() 47 skb_push(skb, dat in sch_frag_xmit() 23 sch_frag_xmit(struct net * net,struct sock * sk,struct sk_buff * skb) sch_frag_xmit() argument 50 sch_frag_prepare_frag(struct sk_buff * skb,int (* xmit)(struct sk_buff * skb)) sch_frag_prepare_frag() argument 51 sch_frag_prepare_frag(struct sk_buff * skb,int (* xmit)(struct sk_buff * skb)) sch_frag_prepare_frag() argument 84 sch_fragment(struct net * net,struct sk_buff * skb,u16 mru,int (* xmit)(struct sk_buff * skb)) sch_fragment() argument 85 sch_fragment(struct net * net,struct sk_buff * skb,u16 mru,int (* xmit)(struct sk_buff * skb)) sch_fragment() argument 140 sch_frag_xmit_hook(struct sk_buff * skb,int (* xmit)(struct sk_buff * skb)) sch_frag_xmit_hook() argument [all...] |
| /linux/net/ipv4/ |
| H A D | tcp_offload.c | 16 static void tcp_gso_tstamp(struct sk_buff *skb, struct sk_buff *gso_skb, in tcp_gso_tstamp() argument 22 while (skb) { in tcp_gso_tstamp() 24 skb_shinfo(skb)->tx_flags |= flags; in tcp_gso_tstamp() 25 skb_shinfo(skb)->tskey = ts_seq; in tcp_gso_tstamp() 29 skb = skb->next; in tcp_gso_tstamp() 88 static struct sk_buff *__tcp4_gso_segment_list(struct sk_buff *skb, in __tcp4_gso_segment_list() argument 91 skb = skb_segment_list(skb, features, skb_mac_header_len(skb)); in __tcp4_gso_segment_list() 98 tcp4_gso_segment(struct sk_buff * skb,netdev_features_t features) tcp4_gso_segment() argument 133 tcp_gso_segment(struct sk_buff * skb,netdev_features_t features) tcp_gso_segment() argument 286 tcp_gro_receive(struct list_head * head,struct sk_buff * skb,struct tcphdr * th) tcp_gro_receive() argument 370 tcp_gro_complete(struct sk_buff * skb) tcp_gro_complete() argument 390 tcp4_check_fraglist_gro(struct list_head * head,struct sk_buff * skb,struct tcphdr * th) tcp4_check_fraglist_gro() argument 420 tcp4_gro_receive(struct list_head * head,struct sk_buff * skb) tcp4_gro_receive() argument 443 tcp4_gro_complete(struct sk_buff * skb,int thoff) tcp4_gro_complete() argument [all...] |
| H A D | gre_offload.c | 16 static struct sk_buff *gre_gso_segment(struct sk_buff *skb, in gre_gso_segment() argument 19 int tnl_hlen = skb_inner_mac_header(skb) - skb_transport_header(skb); in gre_gso_segment() 22 u16 mac_offset = skb->mac_header; in gre_gso_segment() 23 __be16 protocol = skb->protocol; in gre_gso_segment() 24 u16 mac_len = skb->mac_len; in gre_gso_segment() 27 if (!skb->encapsulation) in gre_gso_segment() 33 if (unlikely(!pskb_may_pull(skb, tnl_hlen))) in gre_gso_segment() 37 skb->encapsulation = 0; in gre_gso_segment() 38 SKB_GSO_CB(skb)->encap_level = 0; in gre_gso_segment() 39 __skb_pull(skb, tnl_hlen); in gre_gso_segment() [all …]
|
| /linux/drivers/net/ovpn/ |
| H A D | io.c | 27 #include "skb.h" 36 * ovpn_is_keepalive - check if skb contains a keepalive message 37 * @skb: packet to check 39 * Assumes that the first byte of skb->data is defined. 41 * Return: true if skb contains a keepalive or false otherwise 43 static bool ovpn_is_keepalive(struct sk_buff *skb) in ovpn_is_keepalive() argument 45 if (*skb->data != ovpn_keepalive_message[0]) in ovpn_is_keepalive() 48 if (skb->len != OVPN_KEEPALIVE_SIZE) in ovpn_is_keepalive() 51 if (!pskb_may_pull(skb, OVPN_KEEPALIVE_SIZE)) in ovpn_is_keepalive() 54 return !memcmp(skb in ovpn_is_keepalive() 60 ovpn_netdev_write(struct ovpn_peer * peer,struct sk_buff * skb) ovpn_netdev_write() argument 105 struct sk_buff *skb = data; ovpn_decrypt_post() local 209 ovpn_recv(struct ovpn_peer * peer,struct sk_buff * skb) ovpn_recv() argument 236 struct sk_buff *skb = data; ovpn_encrypt_post() local 309 ovpn_encrypt_one(struct ovpn_peer * peer,struct sk_buff * skb) ovpn_encrypt_one() argument 333 ovpn_send(struct ovpn_priv * ovpn,struct sk_buff * skb,struct ovpn_peer * peer) ovpn_send() argument 353 ovpn_net_xmit(struct sk_buff * skb,struct net_device * dev) ovpn_net_xmit() argument 459 struct sk_buff *skb; ovpn_xmit_special() local [all...] |
| /linux/net/ieee802154/6lowpan/ |
| H A D | rx.c | 21 static int lowpan_give_skb_to_device(struct sk_buff *skb) in lowpan_give_skb_to_device() argument 23 skb->protocol = htons(ETH_P_IPV6); in lowpan_give_skb_to_device() 24 skb->dev->stats.rx_packets++; in lowpan_give_skb_to_device() 25 skb->dev->stats.rx_bytes += skb->len; in lowpan_give_skb_to_device() 27 return netif_rx(skb); in lowpan_give_skb_to_device() 30 static int lowpan_rx_handlers_result(struct sk_buff *skb, lowpan_rx_result res) in lowpan_rx_handlers_result() argument 40 kfree_skb(skb); in lowpan_rx_handlers_result() 46 return lowpan_give_skb_to_device(skb); in lowpan_rx_handlers_result() 64 static lowpan_rx_result lowpan_rx_h_frag(struct sk_buff *skb) in lowpan_rx_h_frag() argument 68 if (!(lowpan_is_frag1(*skb_network_header(skb)) || in lowpan_rx_h_frag() [all …]
|
| /linux/drivers/net/wireguard/ |
| H A D | receive.c | 26 #define SKB_TYPE_LE32(skb) (((struct message_header *)(skb)->data)->type) argument 28 static size_t validate_header_len(struct sk_buff *skb) in validate_header_len() argument 30 if (unlikely(skb->len < sizeof(struct message_header))) in validate_header_len() 32 if (SKB_TYPE_LE32(skb) == cpu_to_le32(MESSAGE_DATA) && in validate_header_len() 33 skb->len >= MESSAGE_MINIMUM_LENGTH) in validate_header_len() 35 if (SKB_TYPE_LE32(skb) == cpu_to_le32(MESSAGE_HANDSHAKE_INITIATION) && in validate_header_len() 36 skb->len == sizeof(struct message_handshake_initiation)) in validate_header_len() 38 if (SKB_TYPE_LE32(skb) == cpu_to_le32(MESSAGE_HANDSHAKE_RESPONSE) && in validate_header_len() 39 skb->len == sizeof(struct message_handshake_response)) in validate_header_len() 41 if (SKB_TYPE_LE32(skb) == cpu_to_le32(MESSAGE_HANDSHAKE_COOKIE) && in validate_header_len() [all …]
|
| /linux/net/openvswitch/ |
| H A D | actions.c | 91 static struct deferred_action *add_deferred_actions(struct sk_buff *skb, in add_deferred_actions() 101 da->skb = skb; in add_deferred_actions() 120 static int clone_execute(struct datapath *dp, struct sk_buff *skb, 126 static int do_execute_actions(struct datapath *dp, struct sk_buff *skb, 130 static int push_mpls(struct sk_buff *skb, struct sw_flow_key *key, in push_mpls() 135 err = skb_mpls_push(skb, mpls_lse, mpls_ethertype, mac_len, !!mac_len); in push_mpls() 146 static int pop_mpls(struct sk_buff *skb, struct sw_flow_key *key, in pop_mpls() 151 err = skb_mpls_pop(skb, ethertype, skb in pop_mpls() 90 add_deferred_actions(struct sk_buff * skb,const struct sw_flow_key * key,const struct nlattr * actions,const int actions_len) add_deferred_actions() argument 129 push_mpls(struct sk_buff * skb,struct sw_flow_key * key,__be32 mpls_lse,__be16 mpls_ethertype,__u16 mac_len) push_mpls() argument 145 pop_mpls(struct sk_buff * skb,struct sw_flow_key * key,const __be16 ethertype) pop_mpls() argument 162 set_mpls(struct sk_buff * skb,struct sw_flow_key * flow_key,const __be32 * mpls_lse,const __be32 * mask) set_mpls() argument 182 pop_vlan(struct sk_buff * skb,struct sw_flow_key * key) pop_vlan() argument 196 push_vlan(struct sk_buff * skb,struct sw_flow_key * key,const struct ovs_action_push_vlan * vlan) push_vlan() argument 225 set_eth_addr(struct sk_buff * skb,struct sw_flow_key * flow_key,const struct ovs_key_ethernet * key,const struct ovs_key_ethernet * mask) set_eth_addr() argument 252 pop_eth(struct sk_buff * skb,struct sw_flow_key * key) pop_eth() argument 266 push_eth(struct sk_buff * skb,struct sw_flow_key * key,const struct ovs_action_push_eth * ethh) push_eth() argument 282 push_nsh(struct sk_buff * skb,struct sw_flow_key * key,const struct nlattr * a) push_nsh() argument 304 pop_nsh(struct sk_buff * skb,struct sw_flow_key * key) pop_nsh() argument 321 update_ip_l4_checksum(struct sk_buff * skb,struct iphdr * nh,__be32 addr,__be32 new_addr) update_ip_l4_checksum() argument 347 set_ip_addr(struct sk_buff * skb,struct iphdr * nh,__be32 * addr,__be32 new_addr) set_ip_addr() argument 357 update_ipv6_checksum(struct sk_buff * skb,u8 l4_proto,__be32 addr[4],const __be32 new_addr[4]) update_ipv6_checksum() argument 393 set_ipv6_addr(struct sk_buff * skb,u8 l4_proto,__be32 addr[4],const __be32 new_addr[4],bool recalculate_csum) set_ipv6_addr() argument 405 set_ipv6_dsfield(struct sk_buff * skb,struct ipv6hdr * nh,u8 ipv6_tclass,u8 mask) set_ipv6_dsfield() argument 418 set_ipv6_fl(struct sk_buff * skb,struct ipv6hdr * nh,u32 fl,u32 mask) set_ipv6_fl() argument 434 set_ipv6_ttl(struct sk_buff * skb,struct ipv6hdr * nh,u8 new_ttl,u8 mask) set_ipv6_ttl() argument 444 set_ip_ttl(struct sk_buff * skb,struct iphdr * nh,u8 new_ttl,u8 mask) set_ip_ttl() argument 453 set_ipv4(struct sk_buff * skb,struct sw_flow_key * flow_key,const struct ovs_key_ipv4 * key,const struct ovs_key_ipv4 * mask) set_ipv4() argument 505 set_ipv6(struct sk_buff * skb,struct sw_flow_key * flow_key,const struct ovs_key_ipv6 * key,const struct ovs_key_ipv6 * mask) set_ipv6() argument 576 set_tp_port(struct sk_buff * skb,__be16 * port,__be16 new_port,__sum16 * check) set_tp_port() argument 584 set_udp(struct sk_buff * skb,struct sw_flow_key * flow_key,const struct ovs_key_udp * key,const struct ovs_key_udp * mask) set_udp() argument 627 set_tcp(struct sk_buff * skb,struct sw_flow_key * flow_key,const struct ovs_key_tcp * key,const struct ovs_key_tcp * mask) set_tcp() argument 656 set_sctp(struct sk_buff * skb,struct sw_flow_key * flow_key,const struct ovs_key_sctp * key,const struct ovs_key_sctp * mask) set_sctp() argument 691 ovs_vport_output(struct net * net,struct sock * sk,struct sk_buff * skb) ovs_vport_output() argument 739 prepare_frag(struct vport * vport,struct sk_buff * skb,u16 orig_network_offset,u8 mac_proto) prepare_frag() argument 765 ovs_fragment(struct net * net,struct vport * vport,struct sk_buff * skb,u16 mru,struct sw_flow_key * key) ovs_fragment() argument 828 do_output(struct datapath * dp,struct sk_buff * skb,int out_port,struct sw_flow_key * key) do_output() argument 861 output_userspace(struct datapath * dp,struct sk_buff * skb,struct sw_flow_key * key,const struct nlattr * attr,const struct nlattr * actions,int actions_len,uint32_t cutlen) output_userspace() argument 921 dec_ttl_exception_handler(struct datapath * dp,struct sk_buff * skb,struct sw_flow_key * key,const struct nlattr * attr) dec_ttl_exception_handler() argument 940 sample(struct datapath * dp,struct sk_buff * skb,struct sw_flow_key * key,const struct nlattr * attr,bool last) sample() argument 981 clone(struct datapath * dp,struct sk_buff * skb,struct sw_flow_key * key,const struct nlattr * attr,bool last) clone() argument 999 execute_hash(struct sk_buff * skb,struct sw_flow_key * key,const struct nlattr * attr) execute_hash() argument 1022 execute_set_action(struct sk_buff * skb,struct sw_flow_key * flow_key,const struct nlattr * a) execute_set_action() argument 1042 execute_masked_set_action(struct sk_buff * skb,struct sw_flow_key * flow_key,const struct nlattr * a) execute_masked_set_action() argument 1114 execute_recirc(struct datapath * dp,struct sk_buff * skb,struct sw_flow_key * key,const struct nlattr * a,bool last) execute_recirc() argument 1133 execute_check_pkt_len(struct datapath * dp,struct sk_buff * skb,struct sw_flow_key * key,const struct nlattr * attr,bool last) execute_check_pkt_len() argument 1172 execute_dec_ttl(struct sk_buff * skb,struct sw_flow_key * key) execute_dec_ttl() argument 1212 execute_psample(struct datapath * dp,struct sk_buff * skb,const struct nlattr * attr) execute_psample() argument 1244 execute_psample(struct datapath * dp,struct sk_buff * skb,const struct nlattr * attr) execute_psample() argument 1250 do_execute_actions(struct datapath * dp,struct sk_buff * skb,struct sw_flow_key * key,const struct nlattr * attr,int len) do_execute_actions() argument 1479 clone_execute(struct datapath * dp,struct sk_buff * skb,struct sw_flow_key * key,u32 recirc_id,const struct nlattr * actions,int len,bool last,bool clone_flow_key) clone_execute() argument 1556 struct sk_buff *skb = da->skb; process_deferred_actions() local 1572 ovs_execute_actions(struct datapath * dp,struct sk_buff * skb,const struct sw_flow_actions * acts,struct sw_flow_key * key) ovs_execute_actions() argument [all...] |