diff options
Diffstat (limited to 'src/send.c')
-rw-r--r-- | src/send.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -121,7 +121,7 @@ void packet_send_handshake_cookie(struct wireguard_device *wg, sizeof(packet)); } -static inline void keep_key_fresh(struct wireguard_peer *peer) +static void keep_key_fresh(struct wireguard_peer *peer) { struct noise_keypair *keypair; bool send = false; @@ -141,7 +141,7 @@ static inline void keep_key_fresh(struct wireguard_peer *peer) packet_send_queued_handshake_initiation(peer, false); } -static inline unsigned int skb_padding(struct sk_buff *skb) +static unsigned int skb_padding(struct sk_buff *skb) { /* We do this modulo business with the MTU, just in case the networking * layer gives us a packet that's bigger than the MTU. In that case, we @@ -156,9 +156,8 @@ static inline unsigned int skb_padding(struct sk_buff *skb) return padded_size - last_unit; } -static inline bool skb_encrypt(struct sk_buff *skb, - struct noise_keypair *keypair, - simd_context_t simd_context) +static bool skb_encrypt(struct sk_buff *skb, struct noise_keypair *keypair, + simd_context_t simd_context) { unsigned int padding_len, plaintext_len, trailer_len; struct scatterlist sg[MAX_SKB_FRAGS + 8]; @@ -237,7 +236,7 @@ void packet_send_keepalive(struct wireguard_peer *peer) #define skb_walk_null_queue_safe(first, skb, next) \ for (skb = first, next = skb->next; skb; \ skb = next, next = skb ? skb->next : NULL) -static inline void skb_free_null_queue(struct sk_buff *first) +static void skb_free_null_queue(struct sk_buff *first) { struct sk_buff *skb, *next; |