diff options
author | Arnaldo Carvalho de Melo <acme@mandriva.com> | 2005-09-16 16:58:40 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-09-16 16:58:40 -0700 |
commit | 67e6b629212fa9ffb7420e8a88a41806af637e28 (patch) | |
tree | 64f07616a23b657f3eb06e1daedf2450f6fbfc60 /net/dccp/dccp.h | |
parent | 0c10c5d96865ce611d6a780888eff0ef4fab358b (diff) | |
download | op-kernel-dev-67e6b629212fa9ffb7420e8a88a41806af637e28.zip op-kernel-dev-67e6b629212fa9ffb7420e8a88a41806af637e28.tar.gz |
[DCCP]: Introduce DCCP_SOCKOPT_SERVICE
As discussed in the dccp@vger mailing list:
Now applications have to use setsockopt(DCCP_SOCKOPT_SERVICE, service[s]),
prior to calling listen() and connect().
An array of unsigned ints can be passed meaning that the listening sock accepts
connection requests for several services.
With this we can ditch struct sockaddr_dccp and use only sockaddr_in (and
sockaddr_in6 in the future).
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp/dccp.h')
-rw-r--r-- | net/dccp/dccp.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/net/dccp/dccp.h b/net/dccp/dccp.h index 95c4630b..be7a660 100644 --- a/net/dccp/dccp.h +++ b/net/dccp/dccp.h @@ -258,13 +258,12 @@ extern int dccp_v4_send_reset(struct sock *sk, extern void dccp_send_close(struct sock *sk, const int active); struct dccp_skb_cb { - __u8 dccpd_type; - __u8 dccpd_reset_code; - __u8 dccpd_service; - __u8 dccpd_ccval; + __u8 dccpd_type:4; + __u8 dccpd_ccval:4; + __u8 dccpd_reset_code; + __u16 dccpd_opt_len; __u64 dccpd_seq; __u64 dccpd_ack_seq; - int dccpd_opt_len; }; #define DCCP_SKB_CB(__skb) ((struct dccp_skb_cb *)&((__skb)->cb[0])) |