id
stringlengths
4
63
text
stringlengths
153
8.81M
skb_get(9)
NAME skb_get - reference buffer SYNOPSIS struct sk_buff * skb_get (struct sk_buff *skb ); ARGUMENTS skb buffer to reference DESCRIPTION Makes another reference to a socket buffer and returns a pointer to the buffer. SEE ALSO Kernel file ./include/linux/skbuff.h Kernel API(9), skb_frag_size(9), skb_frag_size...
skb_get_poff(9)
NAME skb_get_poff - get the offset to the payload SYNOPSIS u32 skb_get_poff (const struct sk_buff *skb ); ARGUMENTS skb sk_buff to get the payload offset from DESCRIPTION The function will get the offset to the payload as far as it could be dissected. The main user is currently BPF, so that we can dynami...
skb_get_timestamp(9)
NAME skb_get_timestamp - get timestamp from a skb SYNOPSIS void skb_get_timestamp (const struct sk_buff *skb , struct __kernel_old_timeval *stamp ); ARGUMENTS skb skb to get stamp from stamp pointer to struct __kernel_old_timeval to store stamp in DESCRIPTION Timestamps are stored in the skb as...
skb_gso_mac_seglen(9)
NAME skb_gso_mac_seglen - Return length of individual segments of a gso packet SYNOPSIS unsigned int skb_gso_mac_seglen (const struct sk_buff *skb ); ARGUMENTS skb GSO skb DESCRIPTION skb_gso_mac_seglen is used to determine the real size of the individual segments, including MAC/L2, Layer3 (IP, IPv6) and L4 ...
skb_gso_network_seglen(9)
NAME skb_gso_network_seglen - Return length of individual segments of a gso packet SYNOPSIS unsigned int skb_gso_network_seglen (const struct sk_buff *skb ); ARGUMENTS skb GSO skb DESCRIPTION skb_gso_network_seglen is used to determine the real size of the individual segments, including Layer3 (IP, IPv6) and...
skb_gso_size_check(9)
NAME skb_gso_size_check - check the skb size, considering GSO_BY_FRAGS SYNOPSIS bool skb_gso_size_check (const struct sk_buff *skb , unsigned int seg_len , unsigned int max_len ); ARGUMENTS skb GSO skb seg_len The segmented length (from skb_gso_*_seglen). In the GSO_BY_FRAGS case this will be [hea...
skb_gso_transport_seglen(9)
NAME skb_gso_transport_seglen - Return length of individual segments of a gso packet SYNOPSIS unsigned int skb_gso_transport_seglen (const struct sk_buff *skb ); ARGUMENTS skb GSO skb DESCRIPTION skb_gso_transport_seglen is used to determine the real size of the individual segments, including Layer4 headers ...
skb_gso_validate_mac_len(9)
NAME skb_gso_validate_mac_len - Will a split GSO skb fit in a given length? SYNOPSIS bool skb_gso_validate_mac_len (const struct sk_buff *skb , unsigned int len ); ARGUMENTS skb GSO skb len length to validate against DESCRIPTION skb_gso_validate_mac_len validates if a given skb will fit a wan...
skb_gso_validate_network_len(9)
NAME skb_gso_validate_network_len - Will a split GSO skb fit into a given MTU? SYNOPSIS bool skb_gso_validate_network_len (const struct sk_buff *skb , unsigned int mtu ); ARGUMENTS skb GSO skb mtu MTU to validate against DESCRIPTION skb_gso_validate_network_len validates if a given skb will f...
skb_has_shared_frag(9)
NAME skb_has_shared_frag - can any frag be overwritten SYNOPSIS bool skb_has_shared_frag (const struct sk_buff *skb ); ARGUMENTS skb buffer to test RETURN true if the skb has at least one frag that might be modified by an external entity (as in vmsplice/sendfile) SEE ALSO Kernel file ./include/linux/skbuff....
skb_head_is_locked(9)
NAME skb_head_is_locked - Determine if the skb->head is locked down SYNOPSIS bool skb_head_is_locked (const struct sk_buff *skb ); ARGUMENTS skb skb to check DESCRIPTION The head on skbs build around a head frag can be removed if they are not cloned. This function returns true if the skb head is locked down...
skb_header_cloned(9)
NAME skb_header_cloned - is the header a clone SYNOPSIS int skb_header_cloned (const struct sk_buff *skb ); ARGUMENTS skb buffer to check DESCRIPTION Returns true if modifying the header part of the buffer requires the data to be copied. SEE ALSO Kernel file ./include/linux/skbuff.h Kernel API(9), skb_frag_...
skb_headroom(9)
NAME skb_headroom - bytes at buffer head SYNOPSIS unsigned int skb_headroom (const struct sk_buff *skb ); ARGUMENTS skb buffer to check DESCRIPTION Return the number of bytes of free space at the head of an sk_buff. SEE ALSO Kernel file ./include/linux/skbuff.h Kernel API(9), skb_frag_size(9), skb_frag_size...
skb_inner_tcp_all_headers(9)
NAME skb_inner_tcp_all_headers - Returns size of all headers for an encap TCP packet SYNOPSIS int skb_inner_tcp_all_headers (const struct sk_buff *skb ); ARGUMENTS skb buffer DESCRIPTION Used in TX path, for a packet known to be a TCP one. if (skb_is_gso(skb) && skb->encapsulation) { int hlen = skb_inner_tc...
skb_kill_datagram(9)
NAME skb_kill_datagram - Free a datagram skbuff forcibly SYNOPSIS int skb_kill_datagram (struct sock *sk , struct sk_buff *skb , unsigned int flags ); ARGUMENTS sk socket skb datagram skbuff flags MSG_ flags DESCRIPTION This function frees a datagram skbuff that was received ...
skb_len_add(9)
NAME skb_len_add - adds a number to len fields of skb SYNOPSIS void skb_len_add (struct sk_buff *skb , int delta ); ARGUMENTS skb buffer to add len to delta number of bytes to add SEE ALSO Kernel file ./include/linux/skbuff.h Kernel API(9), skb_frag_size(9), skb_frag_size_set(9), skb_frag_size_...
skb_linearize(9)
NAME skb_linearize - convert paged skb to linear one SYNOPSIS int skb_linearize (struct sk_buff *skb ); ARGUMENTS skb buffer to linarize DESCRIPTION If there is no free memory -ENOMEM is returned, otherwise zero is returned and the old skb data released. SEE ALSO Kernel file ./include/linux/skbuff.h Kernel ...
skb_linearize_cow(9)
NAME skb_linearize_cow - make sure skb is linear and writable SYNOPSIS int skb_linearize_cow (struct sk_buff *skb ); ARGUMENTS skb buffer to process DESCRIPTION If there is no free memory -ENOMEM is returned, otherwise zero is returned and the old skb data released. SEE ALSO Kernel file ./include/linux/skbu...
skb_mac_gso_segment(9)
NAME skb_mac_gso_segment - mac layer segmentation handler. SYNOPSIS struct sk_buff * skb_mac_gso_segment (struct sk_buff *skb , netdev_features_t features ); ARGUMENTS skb buffer to segment features features for the output path (see dev->features) SEE ALSO Kernel file ./net/core/gso.c skb_et...
skb_morph(9)
NAME skb_morph - morph one skb into another SYNOPSIS struct sk_buff * skb_morph (struct sk_buff *dst , struct sk_buff *src ); ARGUMENTS dst the skb to receive the contents src the skb to supply the contents DESCRIPTION This is identical to skb_clone except that the target skb is supplied by t...
skb_mpls_dec_ttl(9)
NAME skb_mpls_dec_ttl - decrement the TTL of the outermost MPLS header SYNOPSIS int skb_mpls_dec_ttl (struct sk_buff *skb ); ARGUMENTS skb buffer DESCRIPTION Expects skb->data at mac header. Returns 0 on success, -errno otherwise. SEE ALSO Kernel file ./net/core/skbuff.c drop_reasons_register_subsys(9),...
skb_mpls_pop(9)
NAME skb_mpls_pop - pop the outermost MPLS header SYNOPSIS int skb_mpls_pop (struct sk_buff *skb , __be16 next_proto , int mac_len , bool ethernet ); ARGUMENTS skb buffer next_proto ethertype of header after popped MPLS header mac_len length of the MAC header ethernet flag to i...
skb_mpls_push(9)
NAME skb_mpls_push - push a new MPLS header after mac_len bytes from start of the packet SYNOPSIS int skb_mpls_push (struct sk_buff *skb , __be32 mpls_lse , __be16 mpls_proto , int mac_len , bool ethernet ); ARGUMENTS skb buffer mpls_lse MPLS label stack entry to push mpls_proto ethertype ...
skb_mpls_update_lse(9)
NAME skb_mpls_update_lse - modify outermost MPLS header and update csum SYNOPSIS int skb_mpls_update_lse (struct sk_buff *skb , __be32 mpls_lse ); ARGUMENTS skb buffer mpls_lse new MPLS label stack entry to update to DESCRIPTION Expects skb->data at mac header. Returns 0 on success, -errno otherw...
skb_napi_id(9)
NAME skb_napi_id - Returns the skb's NAPI id SYNOPSIS unsigned int skb_napi_id (const struct sk_buff *skb ); ARGUMENTS skb buffer SEE ALSO Kernel file ./include/linux/skbuff.h Kernel API(9), skb_frag_size(9), skb_frag_size_set(9), skb_frag_size_add(9), skb_frag_size_sub(9), skb_frag_must_loop(9), skb_frag_fo...
skb_needs_linearize(9)
NAME skb_needs_linearize - check if we need to linearize a given skb depending on the given device features. SYNOPSIS bool skb_needs_linearize (struct sk_buff *skb , netdev_features_t features ); ARGUMENTS skb socket buffer to check features net device features DESCRIPTION Returns true if either: ...
skb_orphan(9)
NAME skb_orphan - orphan a buffer SYNOPSIS void skb_orphan (struct sk_buff *skb ); ARGUMENTS skb buffer to orphan DESCRIPTION If a buffer currently has an owner then we call the owner's destructor function and make the skb unowned. The buffer continues to exist but is no longer charged to its former owner. ...
skb_orphan_frags(9)
NAME skb_orphan_frags - orphan the frags contained in a buffer SYNOPSIS int skb_orphan_frags (struct sk_buff *skb , gfp_t gfp_mask ); ARGUMENTS skb buffer to orphan frags from gfp_mask allocation mask for replacement pages DESCRIPTION For each frag in the SKB which needs a destructor (i.e. has an ...
skb_pad(9)
NAME skb_pad - zero pad the tail of an skb SYNOPSIS int skb_pad (struct sk_buff *skb , int pad ); ARGUMENTS skb buffer to pad pad space to pad DESCRIPTION Ensure that a buffer is followed by a padding area that is zero filled. Used by network drivers which may DMA or transfer data beyond...
skb_padto(9)
NAME skb_padto - pad an skbuff up to a minimal size SYNOPSIS int skb_padto (struct sk_buff *skb , unsigned int len ); ARGUMENTS skb buffer to pad len minimal length DESCRIPTION Pads up a buffer to ensure the trailing bytes exist and are blanked. If the buffer already contains sufficient data ...
skb_page_frag_refill(9)
NAME skb_page_frag_refill - check that a page_frag contains enough room SYNOPSIS bool skb_page_frag_refill (unsigned int sz , struct page_frag *pfrag , gfp_t gfp ); ARGUMENTS sz minimum size of the fragment we want to get pfrag pointer to page_frag gfp priority for memory alloca...
skb_panic(9)
NAME skb_panic - private function for out-of-line support SYNOPSIS void skb_panic (struct sk_buff *skb , unsigned int sz , void *addr , const char msg[] ); ARGUMENTS skb buffer sz size addr address msg skb_over_panic or skb_under_panic DESCRIPTION Out-of-line s...
skb_partial_csum_set(9)
NAME skb_partial_csum_set - set up and verify partial csum values for packet SYNOPSIS bool skb_partial_csum_set (struct sk_buff *skb , u16 start , u16 off ); ARGUMENTS skb the skb to set start the number of bytes after skb->data to start checksumming. off the offset from start to...
skb_peek(9)
NAME skb_peek - peek at the head of an &sk_buff_head SYNOPSIS struct sk_buff * skb_peek (const struct sk_buff_head *list_ ); ARGUMENTS list_ list to peek at DESCRIPTION Peek an sk_buff. Unlike most other operations you _MUST_ be careful with this one. A peek leaves the buffer on the list and someone else may ...
skb_peek_next(9)
NAME skb_peek_next - peek skb following the given one from a queue SYNOPSIS struct sk_buff * skb_peek_next (struct sk_buff *skb , const struct sk_buff_head *list_ ); ARGUMENTS skb skb to start from list_ list to peek at DESCRIPTION Returns NULL when the end of the list is met or a pointer to th...
skb_peek_tail(9)
NAME skb_peek_tail - peek at the tail of an &sk_buff_head SYNOPSIS struct sk_buff * skb_peek_tail (const struct sk_buff_head *list_ ); ARGUMENTS list_ list to peek at DESCRIPTION Peek an sk_buff. Unlike most other operations you _MUST_ be careful with this one. A peek leaves the buffer on the list and someone...
skb_pfmemalloc(9)
NAME skb_pfmemalloc - Test if the skb was allocated from PFMEMALLOC reserves SYNOPSIS bool skb_pfmemalloc (const struct sk_buff *skb ); ARGUMENTS skb buffer SEE ALSO Kernel file ./include/linux/skbuff.h Kernel API(9), skb_frag_size(9), skb_frag_size_set(9), skb_frag_size_add(9), skb_frag_size_sub(9), skb_fra...
skb_postpull_data_move(9)
NAME skb_postpull_data_move - Move packet data and metadata after skb_pull(). SYNOPSIS void skb_postpull_data_move (struct sk_buff *skb , const unsigned int len , const unsigned int n ); ARGUMENTS skb packet to operate on len number of bytes pulled from sk_buff->data n number...
skb_postpull_rcsum(9)
NAME skb_postpull_rcsum - update checksum for received skb after pull SYNOPSIS void skb_postpull_rcsum (struct sk_buff *skb , const void *start , unsigned int len ); ARGUMENTS skb buffer to update start start of data before pull len length of data pulled DESCRIPTION After doing ...
skb_postpush_data_move(9)
NAME skb_postpush_data_move - Move packet data and metadata after skb_push(). SYNOPSIS void skb_postpush_data_move (struct sk_buff *skb , const unsigned int len , const unsigned int n ); ARGUMENTS skb packet to operate on len number of bytes pushed onto sk_buff->data n number...
skb_postpush_rcsum(9)
NAME skb_postpush_rcsum - update checksum for received skb after push SYNOPSIS void skb_postpush_rcsum (struct sk_buff *skb , const void *start , unsigned int len ); ARGUMENTS skb buffer to update start start of data after push len length of data pushed DESCRIPTION After doing a...
skb_pp_frag_ref(9)
NAME skb_pp_frag_ref - Increase fragment references of a page pool aware skb SYNOPSIS int skb_pp_frag_ref (struct sk_buff *skb ); ARGUMENTS skb page pool aware skb DESCRIPTION Increase the fragment reference count (pp_ref_count) of a skb. This is intended to gain fragment references only for page pool a...
skb_prepare_seq_read(9)
NAME skb_prepare_seq_read - Prepare a sequential read of skb data SYNOPSIS void skb_prepare_seq_read (struct sk_buff *skb , unsigned int from , unsigned int to , struct skb_seq_state *st ); ARGUMENTS skb the buffer to read from lower offset of data to be read to upper offset of...
skb_propagate_pfmemalloc(9)
NAME skb_propagate_pfmemalloc - Propagate pfmemalloc if skb is allocated after RX page SYNOPSIS void skb_propagate_pfmemalloc (const struct page *page , struct sk_buff *skb ); ARGUMENTS page The page that was allocated from skb_alloc_page skb The skb that may need pfmemalloc set SEE ALSO Kerne...
skb_pull(9)
NAME skb_pull - remove data from the start of a buffer SYNOPSIS void * skb_pull (struct sk_buff *skb , unsigned int len ); ARGUMENTS skb buffer to use len amount of data to remove DESCRIPTION This function removes data from the start of a buffer, returning the memory to the headroom. A pointe...
skb_pull_data(9)
NAME skb_pull_data - remove data from the start of a buffer returning its original position. SYNOPSIS void * skb_pull_data (struct sk_buff *skb , size_t len ); ARGUMENTS skb buffer to use len amount of data to remove DESCRIPTION This function removes data from the start of a buffer, returnin...
skb_pull_rcsum(9)
NAME skb_pull_rcsum - pull skb and update receive checksum SYNOPSIS void * skb_pull_rcsum (struct sk_buff *skb , unsigned int len ); ARGUMENTS skb buffer to update len length of data pulled DESCRIPTION This function performs an skb_pull on the packet and updates the CHECKSUM_COMPLETE checksu...
skb_push(9)
NAME skb_push - add data to the start of a buffer SYNOPSIS void * skb_push (struct sk_buff *skb , unsigned int len ); ARGUMENTS skb buffer to use len amount of data to add DESCRIPTION This function extends the used data area of the buffer at the buffer start. If this would exceed the total bu...
skb_push_rcsum(9)
NAME skb_push_rcsum - push skb and update receive checksum SYNOPSIS void * skb_push_rcsum (struct sk_buff *skb , unsigned int len ); ARGUMENTS skb buffer to update len length of data pulled DESCRIPTION This function performs an skb_push on the packet and updates the CHECKSUM_COMPLETE checksu...
skb_put(9)
NAME skb_put - add data to a buffer SYNOPSIS void * skb_put (struct sk_buff *skb , unsigned int len ); ARGUMENTS skb buffer to use len amount of data to add DESCRIPTION This function extends the used data area of the buffer. If this would exceed the total buffer size the kernel will panic. A ...
skb_put_padto(9)
NAME skb_put_padto - increase size and pad an skbuff up to a minimal size SYNOPSIS int skb_put_padto (struct sk_buff *skb , unsigned int len ); ARGUMENTS skb buffer to pad len minimal length DESCRIPTION Pads up a buffer to ensure the trailing bytes exist and are blanked. If the buffer already...
skb_queue_empty(9)
NAME skb_queue_empty - check if a queue is empty SYNOPSIS int skb_queue_empty (const struct sk_buff_head *list ); ARGUMENTS list queue head DESCRIPTION Returns true if the queue is empty, false otherwise. SEE ALSO Kernel file ./include/linux/skbuff.h Kernel API(9), skb_frag_size(9), skb_frag_size_set(9), skb...
skb_queue_empty_lockless(9)
NAME skb_queue_empty_lockless - check if a queue is empty SYNOPSIS bool skb_queue_empty_lockless (const struct sk_buff_head *list ); ARGUMENTS list queue head DESCRIPTION Returns true if the queue is empty, false otherwise. This variant can be used in lockless contexts. SEE ALSO Kernel file ./include/linux/...
skb_queue_head(9)
NAME skb_queue_head - queue a buffer at the list head SYNOPSIS void skb_queue_head (struct sk_buff_head *list , struct sk_buff *newsk ); ARGUMENTS list list to use newsk buffer to queue DESCRIPTION Queue a buffer at the start of the list. This function takes the list lock and can be used safely ...
skb_queue_is_first(9)
NAME skb_queue_is_first - check if skb is the first entry in the queue SYNOPSIS bool skb_queue_is_first (const struct sk_buff_head *list , const struct sk_buff *skb ); ARGUMENTS list queue head skb buffer DESCRIPTION Returns true if skb is the first buffer on the list. SEE ALSO Kernel file ./...
skb_queue_is_last(9)
NAME skb_queue_is_last - check if skb is the last entry in the queue SYNOPSIS bool skb_queue_is_last (const struct sk_buff_head *list , const struct sk_buff *skb ); ARGUMENTS list queue head skb buffer DESCRIPTION Returns true if skb is the last buffer on the list. SEE ALSO Kernel file ./incl...
skb_queue_len(9)
NAME skb_queue_len - get queue length SYNOPSIS __u32 skb_queue_len (const struct sk_buff_head *list_ ); ARGUMENTS list_ list to measure DESCRIPTION Return the length of an sk_buff queue. SEE ALSO Kernel file ./include/linux/skbuff.h Kernel API(9), skb_frag_size(9), skb_frag_size_set(9), skb_frag_size_add(9), ...
skb_queue_len_lockless(9)
NAME skb_queue_len_lockless - get queue length SYNOPSIS __u32 skb_queue_len_lockless (const struct sk_buff_head *list_ ); ARGUMENTS list_ list to measure DESCRIPTION Return the length of an sk_buff queue. This variant can be used in lockless contexts. SEE ALSO Kernel file ./include/linux/skbuff.h Kernel API(...
skb_queue_next(9)
NAME skb_queue_next - return the next packet in the queue SYNOPSIS struct sk_buff * skb_queue_next (const struct sk_buff_head *list , const struct sk_buff *skb ); ARGUMENTS list queue head skb current buffer DESCRIPTION Return the next packet in list after skb. It is only valid to call this i...
skb_queue_prev(9)
NAME skb_queue_prev - return the prev packet in the queue SYNOPSIS struct sk_buff * skb_queue_prev (const struct sk_buff_head *list , const struct sk_buff *skb ); ARGUMENTS list queue head skb current buffer DESCRIPTION Return the prev packet in list before skb. It is only valid to call this ...
skb_queue_purge_reason(9)
NAME skb_queue_purge_reason - empty a list SYNOPSIS void skb_queue_purge_reason (struct sk_buff_head *list , enum skb_drop_reason reason ); ARGUMENTS list list to empty reason drop reason DESCRIPTION Delete all buffers on an sk_buff list. Each buffer is removed from the list and one reference dro...
skb_queue_splice(9)
NAME skb_queue_splice - join two skb lists, this is designed for stacks SYNOPSIS void skb_queue_splice (const struct sk_buff_head *list , struct sk_buff_head *head ); ARGUMENTS list the new list to add head the place to add it in the first list SEE ALSO Kernel file ./include/linux/skbuff.h Kern...
skb_queue_splice_init(9)
NAME skb_queue_splice_init - join two skb lists and reinitialise the emptied list SYNOPSIS void skb_queue_splice_init (struct sk_buff_head *list , struct sk_buff_head *head ); ARGUMENTS list the new list to add head the place to add it in the first list DESCRIPTION The list at list is reinitial...
skb_queue_splice_tail(9)
NAME skb_queue_splice_tail - join two skb lists, each list being a queue SYNOPSIS void skb_queue_splice_tail (const struct sk_buff_head *list , struct sk_buff_head *head ); ARGUMENTS list the new list to add head the place to add it in the first list SEE ALSO Kernel file ./include/linux/skbuff....
skb_queue_splice_tail_init(9)
NAME skb_queue_splice_tail_init - join two skb lists and reinitialise the emptied list SYNOPSIS void skb_queue_splice_tail_init (struct sk_buff_head *list , struct sk_buff_head *head ); ARGUMENTS list the new list to add head the place to add it in the first list DESCRIPTION Each of the lists i...
skb_queue_tail(9)
NAME skb_queue_tail - queue a buffer at the list tail SYNOPSIS void skb_queue_tail (struct sk_buff_head *list , struct sk_buff *newsk ); ARGUMENTS list list to use newsk buffer to queue DESCRIPTION Queue a buffer at the tail of the list. This function takes the list lock and can be used safely w...
skb_rbtree_purge(9)
NAME skb_rbtree_purge - empty a skb rbtree SYNOPSIS unsigned int skb_rbtree_purge (struct rb_root *root ); ARGUMENTS root root of the rbtree to empty Return value: the sum of truesizes of all purged skbs. DESCRIPTION Delete all buffers on an sk_buff rbtree. Each buffer is removed from the list and one refere...
skb_reserve(9)
NAME skb_reserve - adjust headroom SYNOPSIS void skb_reserve (struct sk_buff *skb , int len ); ARGUMENTS skb buffer to alter len bytes to move DESCRIPTION Increase the headroom of an empty sk_buff by reducing the tail room. This is only allowed for an empty buffer. SEE ALSO Kernel file ./inc...
skb_reset_transport_header_careful(9)
NAME skb_reset_transport_header_careful - conditionally reset transport header SYNOPSIS bool skb_reset_transport_header_careful (struct sk_buff *skb ); ARGUMENTS skb buffer to alter DESCRIPTION Hardened version of skb_reset_transport_header. RETURN true if the operation was a success. SEE ALSO Kernel file ...
skb_rtable(9)
NAME skb_rtable - Returns the skb &rtable SYNOPSIS struct rtable * skb_rtable (const struct sk_buff *skb ); ARGUMENTS skb buffer SEE ALSO Kernel file ./include/net/route.h April 2026 skb_rtable ...
skb_scrub_packet(9)
NAME skb_scrub_packet - scrub an skb SYNOPSIS void skb_scrub_packet (struct sk_buff *skb , bool xnet ); ARGUMENTS skb buffer to clean xnet packet is crossing netns DESCRIPTION skb_scrub_packet can be used after encapsulating or decapsulating a packet into/from a tunnel. Some information have ...
skb_segment(9)
NAME skb_segment - Perform protocol segmentation on skb. SYNOPSIS struct sk_buff * skb_segment (struct sk_buff *head_skb , netdev_features_t features ); ARGUMENTS head_skb buffer to segment features features for the output path (see dev->features) DESCRIPTION This function performs segmentation on the ...
skb_seq_read(9)
NAME skb_seq_read - Sequentially read skb data SYNOPSIS unsigned int skb_seq_read (unsigned int consumed , const u8 **data , struct skb_seq_state *st ); ARGUMENTS consumed number of bytes consumed by the caller so far data destination pointer for data to be returned st state variabl...
skb_share_check(9)
NAME skb_share_check - check if buffer is shared and if so clone it SYNOPSIS struct sk_buff * skb_share_check (struct sk_buff *skb , gfp_t pri ); ARGUMENTS skb buffer to check pri priority for memory allocation DESCRIPTION If the buffer is shared the buffer is cloned and the old copy drops a ...
skb_shared(9)
NAME skb_shared - is the buffer shared SYNOPSIS int skb_shared (const struct sk_buff *skb ); ARGUMENTS skb buffer to check DESCRIPTION Returns true if more than one person has a reference to this buffer. SEE ALSO Kernel file ./include/linux/skbuff.h Kernel API(9), skb_frag_size(9), skb_frag_size_set(9), skb...
skb_shift(9)
NAME skb_shift - Shifts paged data partially from skb to another SYNOPSIS int skb_shift (struct sk_buff *tgt , struct sk_buff *skb , int shiftlen ); ARGUMENTS tgt buffer into which tail data gets added skb buffer from which the paged data comes from shiftlen shift up to this many by...
skb_splice_from_iter(9)
NAME skb_splice_from_iter - Splice (or copy) pages to skbuff SYNOPSIS ssize_t skb_splice_from_iter (struct sk_buff *skb , struct iov_iter *iter , ssize_t maxsize ); ARGUMENTS skb The buffer to add pages to iter Iterator representing the pages to be added maxsize Maximum amount of pa...
skb_split(9)
NAME skb_split - Split fragmented skb to two parts at length len. SYNOPSIS void skb_split (struct sk_buff *skb , struct sk_buff *skb1 , const u32 len ); ARGUMENTS skb the buffer to split skb1 the buffer to receive the second part len new length for skb SEE ALSO Kernel file ./...
skb_steal_sock(9)
NAME skb_steal_sock - steal a socket from an sk_buff SYNOPSIS struct sock * skb_steal_sock (struct sk_buff *skb , bool *refcounted , bool *prefetched ); ARGUMENTS skb sk_buff to steal the socket from refcounted is set to true if the socket is reference-counted prefetched is set to true if th...
skb_store_bits(9)
NAME skb_store_bits - store bits from kernel buffer to skb SYNOPSIS int skb_store_bits (struct sk_buff *skb , int offset , const void *from , int len ); ARGUMENTS skb destination buffer offset offset in destination from source buffer len number of bytes to copy DES...
skb_tailroom(9)
NAME skb_tailroom - bytes at buffer end SYNOPSIS int skb_tailroom (const struct sk_buff *skb ); ARGUMENTS skb buffer to check DESCRIPTION Return the number of bytes of free space at the tail of an sk_buff SEE ALSO Kernel file ./include/linux/skbuff.h Kernel API(9), skb_frag_size(9), skb_frag_size_set(9), sk...
skb_tailroom_reserve(9)
NAME skb_tailroom_reserve - adjust reserved_tailroom SYNOPSIS void skb_tailroom_reserve (struct sk_buff *skb , unsigned int mtu , unsigned int needed_tailroom ); ARGUMENTS skb buffer to alter mtu maximum amount of headlen permitted needed_tailroom minimum amount of r...
skb_tcp_all_headers(9)
NAME skb_tcp_all_headers - Returns size of all headers for a TCP packet SYNOPSIS int skb_tcp_all_headers (const struct sk_buff *skb ); ARGUMENTS skb buffer DESCRIPTION Used in TX path, for a packet known to be a TCP one. if (skb_is_gso(skb)) { int hlen = skb_tcp_all_headers(skb); ... SEE ALSO Kernel file ....
skb_to_sgvec(9)
NAME skb_to_sgvec - Fill a scatter-gather list from a socket buffer SYNOPSIS int skb_to_sgvec (struct sk_buff *skb , struct scatterlist *sg , int offset , int len ); ARGUMENTS skb Socket buffer containing the buffers to be mapped sg The scatter-gather list to map into offset The ...
skb_trim(9)
NAME skb_trim - remove end from a buffer SYNOPSIS void skb_trim (struct sk_buff *skb , unsigned int len ); ARGUMENTS skb buffer to alter len new length DESCRIPTION Cut the length of a buffer down by removing data from the tail. If the buffer is already under the length specified it is not mod...
skb_try_coalesce(9)
NAME skb_try_coalesce - try to merge skb to prior one SYNOPSIS bool skb_try_coalesce (struct sk_buff *to , struct sk_buff *from , bool *fragstolen , int *delta_truesize ); ARGUMENTS to prior buffer from buffer to add fragstolen pointer to boolean delta_truesize ...
skb_tstamp_tx(9)
NAME skb_tstamp_tx - queue clone of skb with send time stamps SYNOPSIS void skb_tstamp_tx (struct sk_buff *orig_skb , struct skb_shared_hwtstamps *hwtstamps ); ARGUMENTS orig_skb the original outgoing packet hwtstamps hardware time stamps, may be NULL if not available DESCRIPTION If the skb has a soc...
skb_tunnel_check_pmtu(9)
NAME skb_tunnel_check_pmtu - Check, update PMTU and trigger ICMP reply as needed SYNOPSIS int skb_tunnel_check_pmtu (struct sk_buff *skb , struct dst_entry *encap_dst , int headroom , bool reply ); ARGUMENTS skb Buffer being sent by encapsulation, L2 headers expected encap_dst Destination for tunnel...
skb_tunnel_rx(9)
NAME skb_tunnel_rx - prepare skb for rx reinsert SYNOPSIS void skb_tunnel_rx (struct sk_buff *skb , struct net_device *dev , struct net *net ); ARGUMENTS skb buffer dev tunnel device net netns for packet i/o DESCRIPTION After decapsulation, packet is going to re-enter (netif_r...
skb_tx_error(9)
NAME skb_tx_error - report an sk_buff xmit error SYNOPSIS void skb_tx_error (struct sk_buff *skb ); ARGUMENTS skb buffer that triggered an error DESCRIPTION Report xmit error if a device callback is tracking this skb. skb must be freed afterwards. SEE ALSO Kernel file ./net/core/skbuff.c drop_reasons_re...
skb_tx_timestamp(9)
NAME skb_tx_timestamp - Driver hook for transmit timestamping SYNOPSIS void skb_tx_timestamp (struct sk_buff *skb ); ARGUMENTS skb A socket buffer. DESCRIPTION Ethernet MAC Drivers should call this function in their hard_xmit function immediately before giving the sk_buff to the MAC hardware. Specifically...
skb_txq(9)
NAME skb_txq - return the Tx queue an offload packet should use SYNOPSIS unsigned int skb_txq (const struct sk_buff *skb ); ARGUMENTS skb the packet DESCRIPTION Returns the Tx queue an offload packet should use as indicated by bits 1-15 in the packet's queue_mapping. SEE ALSO Kernel file ./drivers/net/eth...
skb_unlink(9)
NAME skb_unlink - remove a buffer from a list SYNOPSIS void skb_unlink (struct sk_buff *skb , struct sk_buff_head *list ); ARGUMENTS skb buffer to remove list list to use DESCRIPTION Remove a packet from a list. The list locks are taken and this function is atomic with respect to other list lo...
skb_unref(9)
NAME skb_unref - decrement the skb's reference count SYNOPSIS bool skb_unref (struct sk_buff *skb ); ARGUMENTS skb buffer RETURN true if we can free the skb. SEE ALSO Kernel file ./include/linux/skbuff.h Kernel API(9), skb_frag_size(9), skb_frag_size_set(9), skb_frag_size_add(9), skb_frag_size_sub(9), skb_f...
skb_unshare(9)
NAME skb_unshare - make a copy of a shared buffer SYNOPSIS struct sk_buff * skb_unshare (struct sk_buff *skb , gfp_t pri ); ARGUMENTS skb buffer to check pri priority for memory allocation DESCRIPTION If the socket buffer is a clone then this function creates a new copy of the data, drops a ...
skb_vlan_tagged(9)
NAME skb_vlan_tagged - check if skb is vlan tagged. SYNOPSIS bool skb_vlan_tagged (const struct sk_buff *skb ); ARGUMENTS skb skbuff to query RETURN true if the skb is tagged, regardless of whether it is hardware accelerated or not. SEE ALSO Kernel file ./include/linux/if_vlan.h struct vlan_ethhdr(9), s...
skb_vlan_tagged_multi(9)
NAME skb_vlan_tagged_multi - check if skb is vlan tagged with multiple headers. SYNOPSIS bool skb_vlan_tagged_multi (struct sk_buff *skb ); ARGUMENTS skb skbuff to query RETURN true if the skb is tagged with multiple vlan headers, regardless of whether it is hardware accelerated or not. SEE ALSO Kernel fil...
skb_zerocopy(9)
NAME skb_zerocopy - Zero copy skb to skb SYNOPSIS int skb_zerocopy (struct sk_buff *to , struct sk_buff *from , int len , int hlen ); ARGUMENTS to destination buffer from source buffer len number of bytes to copy from source buffer hlen size of linear headroom in...
skcipher_alloc_instance_simple(9)
NAME skcipher_alloc_instance_simple - allocate instance of simple block cipher mode SYNOPSIS struct skcipher_instance * skcipher_alloc_instance_simple (struct crypto_template *tmpl , struct rtattr **tb ); ARGUMENTS tmpl the template being instantiated tb the template parameters DESCRIPTION Al...
skcipher_enqueue(9)
NAME skcipher_enqueue - Handle skcipher encrypt or decrypt request. SYNOPSIS int skcipher_enqueue (struct skcipher_request *req , bool encrypt ); ARGUMENTS req Crypto API request encrypt true if encrypting; false if decrypting RETURN -EINPROGRESS if request accepted and result will be returned as...