Home
last modified time | relevance | path

Searched refs:padding (Results 1 – 17 of 17) sorted by relevance

/net/dccp/
Doptions.c540 int padding = DCCP_SKB_CB(skb)->dccpd_opt_len % 4; in dccp_insert_option_padding() local
542 if (padding != 0) { in dccp_insert_option_padding()
543 padding = 4 - padding; in dccp_insert_option_padding()
544 memset(skb_push(skb, padding), 0, padding); in dccp_insert_option_padding()
545 DCCP_SKB_CB(skb)->dccpd_opt_len += padding; in dccp_insert_option_padding()
/net/sunrpc/auth_gss/
Dgss_krb5_wrap.c51 int padding = gss_krb5_padding(blocksize, buf->len - offset); in gss_krb5_add_padding() local
60 iov->iov_len += padding; in gss_krb5_add_padding()
61 buf->len += padding; in gss_krb5_add_padding()
62 memset(p, padding, padding); in gss_krb5_add_padding()
/net/sctp/
Doutput.c416 int padding; /* How much padding do we need? */ in sctp_packet_transmit() local
569 padding = SCTP_PAD4(chunk->skb->len) - chunk->skb->len; in sctp_packet_transmit()
570 if (padding) in sctp_packet_transmit()
571 memset(skb_put(chunk->skb, padding), 0, padding); in sctp_packet_transmit()
Dulpevent.c644 size_t padding, len; in sctp_ulpevent_make_rcvmsg() local
691 padding = SCTP_PAD4(len) - len; in sctp_ulpevent_make_rcvmsg()
694 skb_trim(skb, chunk->chunk_end - padding - skb->data); in sctp_ulpevent_make_rcvmsg()
Dsm_make_chunk.c1473 void *padding; in sctp_addto_chunk() local
1477 padding = skb_put(chunk->skb, padlen); in sctp_addto_chunk()
1480 memset(padding, 0, padlen); in sctp_addto_chunk()
/net/sunrpc/
Dxdr.c65 unsigned int padding = (quadlen << 2) - nbytes; in xdr_encode_opaque_fixed() local
69 if (padding != 0) in xdr_encode_opaque_fixed()
70 memset((char *)p + nbytes, 0, padding); in xdr_encode_opaque_fixed()
954 unsigned int padding; in xdr_read_pages() local
960 padding = (nwords << 2) - len; in xdr_read_pages()
963 end = ((xdr->nwords - nwords) << 2) + padding; in xdr_read_pages()
971 xdr->p = (__be32 *)((char *)iov->iov_base + padding); in xdr_read_pages()
974 xdr->nwords = XDR_QUADLEN(end - padding); in xdr_read_pages()
/net/netfilter/ipset/
Dip_set_hash_ipport.c49 u8 padding; member
204 u8 padding; member
Dip_set_hash_ipportip.c50 u8 padding; member
212 u8 padding; member
Dip_set_hash_netnet.c49 u8 padding; member
279 u8 padding; member
Dip_set_hash_netportnet.c56 u16 padding; member
330 u16 padding; member
/net/wireless/
Dutil.c760 u8 padding; in ieee80211_amsdu_to_8023s() local
765 padding = (4 - subframe_len) & 0x3; in ieee80211_amsdu_to_8023s()
773 last = remaining <= subframe_len + padding; in ieee80211_amsdu_to_8023s()
779 offset += len + padding; in ieee80211_amsdu_to_8023s()
794 offset += len + padding; in ieee80211_amsdu_to_8023s()
/net/sunrpc/xprtrdma/
Dxprt_rdma.h398 unsigned int padding; /* non-rdma write header padding */ member
Dtransport.c360 cdata.padding = xprt_rdma_inline_write_padding; in xprt_setup_rdma()
/net/ipv6/
Dcalipso.c748 static const unsigned char padding[4] = {2, 1, 0, 3}; in calipso_genopt() local
752 pad = padding[start & 3]; in calipso_genopt()
/net/rxrpc/
Dconn_event.c41 u8 padding[3]; in rxrpc_conn_retransmit_call() member
/net/mac80211/
Dtx.c3025 int padding = (4 - amsdu_len) & 3; in ieee80211_amsdu_realloc_pad() local
3027 if (skb_headroom(skb) < headroom || skb_tailroom(skb) < padding) { in ieee80211_amsdu_realloc_pad()
3030 if (pskb_expand_head(skb, headroom, padding, GFP_ATOMIC)) { in ieee80211_amsdu_realloc_pad()
3037 if (padding) { in ieee80211_amsdu_realloc_pad()
3038 *subframe_len += padding; in ieee80211_amsdu_realloc_pad()
3039 memset(skb_put(skb, padding), 0, padding); in ieee80211_amsdu_realloc_pad()
/net/core/
Dflow_dissector.c703 u8 padding; member