diff options
Diffstat (limited to 'include/net/sock.h')
| -rw-r--r-- | include/net/sock.h | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index a1042d08becd..e9b1dbab90d0 100644 --- a/include/net/sock.h +++ b/include/net/sock.h  | |||
| @@ -384,6 +384,11 @@ enum sock_flags { | |||
| 384 | SOCK_QUEUE_SHRUNK, /* write queue has been shrunk recently */ | 384 | SOCK_QUEUE_SHRUNK, /* write queue has been shrunk recently */ | 
| 385 | }; | 385 | }; | 
| 386 | 386 | ||
| 387 | static inline void sock_copy_flags(struct sock *nsk, struct sock *osk) | ||
| 388 | { | ||
| 389 | nsk->sk_flags = osk->sk_flags; | ||
| 390 | } | ||
| 391 | |||
| 387 | static inline void sock_set_flag(struct sock *sk, enum sock_flags flag) | 392 | static inline void sock_set_flag(struct sock *sk, enum sock_flags flag) | 
| 388 | { | 393 | { | 
| 389 | __set_bit(flag, &sk->sk_flags); | 394 | __set_bit(flag, &sk->sk_flags); | 
