Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
f3979b0f
Commit
f3979b0f
authored
Oct 23, 2003
by
Hideaki Yoshifuji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: Forward port iproute2 build fix from 2.4.23-preX
parent
a0285d9e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
26 deletions
+28
-26
include/linux/in.h
include/linux/in.h
+12
-12
include/linux/socket.h
include/linux/socket.h
+16
-14
No files found.
include/linux/in.h
View file @
f3979b0f
...
...
@@ -140,29 +140,29 @@ struct ip_msfilter {
struct
group_req
{
__u32
gr_interface
;
/* interface index */
struct
sockaddr_storage
gr_group
;
/* group address */
__u32
gr_interface
;
/* interface index */
struct
__kernel_sockaddr_storage
gr_group
;
/* group address */
};
struct
group_source_req
{
__u32
gsr_interface
;
/* interface index */
struct
sockaddr_storage
gsr_group
;
/* group address */
struct
sockaddr_storage
gsr_source
;
/* source address */
__u32
gsr_interface
;
/* interface index */
struct
__kernel_sockaddr_storage
gsr_group
;
/* group address */
struct
__kernel_sockaddr_storage
gsr_source
;
/* source address */
};
struct
group_filter
{
__u32
gf_interface
;
/* interface index */
struct
sockaddr_storage
gf_group
;
/* multicast address */
__u32
gf_fmode
;
/* filter mode */
__u32
gf_numsrc
;
/* number of sources */
struct
sockaddr_storage
gf_slist
[
1
];
/* interface index */
__u32
gf_interface
;
/* interface index */
struct
__kernel_sockaddr_storage
gf_group
;
/* multicast address */
__u32
gf_fmode
;
/* filter mode */
__u32
gf_numsrc
;
/* number of sources */
struct
__kernel_sockaddr_storage
gf_slist
[
1
];
/* interface index */
};
#define GROUP_FILTER_SIZE(numsrc) \
(sizeof(struct group_filter) - sizeof(struct sockaddr_storage) \
+ (numsrc) * sizeof(struct sockaddr_storage))
(sizeof(struct group_filter) - sizeof(struct
__kernel_
sockaddr_storage) \
+ (numsrc) * sizeof(struct
__kernel_
sockaddr_storage))
struct
in_pktinfo
{
...
...
include/linux/socket.h
View file @
f3979b0f
#ifndef _LINUX_SOCKET_H
#define _LINUX_SOCKET_H
/*
* Desired design of maximum size and alignment (see RFC2553)
*/
#define _K_SS_MAXSIZE 128
/* Implementation specific max size */
#define _K_SS_ALIGNSIZE (__alignof__ (struct sockaddr *))
/* Implementation specific desired alignment */
struct
__kernel_sockaddr_storage
{
unsigned
short
ss_family
;
/* address family */
/* Following field(s) are implementation specific */
char
__data
[
_K_SS_MAXSIZE
-
sizeof
(
unsigned
short
)];
/* space to achieve desired size, */
/* _SS_MAXSIZE value minus size of ss_family */
}
__attribute__
((
aligned
(
_K_SS_ALIGNSIZE
)));
/* force desired alignment */
#if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2)
#include <linux/config.h>
/* for CONFIG_COMPAT */
...
...
@@ -27,20 +42,7 @@ struct linger {
int
l_linger
;
/* How long to linger for */
};
/*
* Desired design of maximum size and alignment (see RFC2553)
*/
#define _SS_MAXSIZE 128
/* Implementation specific max size */
#define _SS_ALIGNSIZE (__alignof__ (struct sockaddr *))
/* Implementation specific desired alignment */
struct
sockaddr_storage
{
sa_family_t
ss_family
;
/* address family */
/* Following field(s) are implementation specific */
char
__data
[
_SS_MAXSIZE
-
sizeof
(
sa_family_t
)];
/* space to achieve desired size, */
/* _SS_MAXSIZE value minus size of ss_family */
}
__attribute__
((
aligned
(
_SS_ALIGNSIZE
)));
/* force desired alignment */
#define sockaddr_storage __kernel_sockaddr_storage
/*
* As we do 4.4BSD message passing we use a 4.4BSD message passing
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment