diff options
| author | Takashi Iwai <tiwai@suse.de> | 2009-12-15 04:29:06 -0500 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2009-12-15 04:29:06 -0500 |
| commit | 709334c87dbdb44150ce436b3d13c814db0dcae9 (patch) | |
| tree | 5861a45f70c1f283720337abd864498f5afb3dbe /include/linux/mroute.h | |
| parent | 0d64b568fcd48b133721c1d322e7c51d85eb12df (diff) | |
| parent | f74890277a196949e4004fe2955e1d4fb3930f98 (diff) | |
Merge branch 'fixes' of git://git.alsa-project.org/alsa-kernel into for-linus
Diffstat (limited to 'include/linux/mroute.h')
| -rw-r--r-- | include/linux/mroute.h | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/include/linux/mroute.h b/include/linux/mroute.h index 08bc776d05e2..c5f3d53548e2 100644 --- a/include/linux/mroute.h +++ b/include/linux/mroute.h | |||
| @@ -59,20 +59,24 @@ struct vifctl { | |||
| 59 | unsigned char vifc_flags; /* VIFF_ flags */ | 59 | unsigned char vifc_flags; /* VIFF_ flags */ |
| 60 | unsigned char vifc_threshold; /* ttl limit */ | 60 | unsigned char vifc_threshold; /* ttl limit */ |
| 61 | unsigned int vifc_rate_limit; /* Rate limiter values (NI) */ | 61 | unsigned int vifc_rate_limit; /* Rate limiter values (NI) */ |
| 62 | struct in_addr vifc_lcl_addr; /* Our address */ | 62 | union { |
| 63 | struct in_addr vifc_lcl_addr; /* Local interface address */ | ||
| 64 | int vifc_lcl_ifindex; /* Local interface index */ | ||
| 65 | }; | ||
| 63 | struct in_addr vifc_rmt_addr; /* IPIP tunnel addr */ | 66 | struct in_addr vifc_rmt_addr; /* IPIP tunnel addr */ |
| 64 | }; | 67 | }; |
| 65 | 68 | ||
| 66 | #define VIFF_TUNNEL 0x1 /* IPIP tunnel */ | 69 | #define VIFF_TUNNEL 0x1 /* IPIP tunnel */ |
| 67 | #define VIFF_SRCRT 0x2 /* NI */ | 70 | #define VIFF_SRCRT 0x2 /* NI */ |
| 68 | #define VIFF_REGISTER 0x4 /* register vif */ | 71 | #define VIFF_REGISTER 0x4 /* register vif */ |
| 72 | #define VIFF_USE_IFINDEX 0x8 /* use vifc_lcl_ifindex instead of | ||
| 73 | vifc_lcl_addr to find an interface */ | ||
| 69 | 74 | ||
| 70 | /* | 75 | /* |
| 71 | * Cache manipulation structures for mrouted and PIMd | 76 | * Cache manipulation structures for mrouted and PIMd |
| 72 | */ | 77 | */ |
| 73 | 78 | ||
| 74 | struct mfcctl | 79 | struct mfcctl { |
| 75 | { | ||
| 76 | struct in_addr mfcc_origin; /* Origin of mcast */ | 80 | struct in_addr mfcc_origin; /* Origin of mcast */ |
| 77 | struct in_addr mfcc_mcastgrp; /* Group in question */ | 81 | struct in_addr mfcc_mcastgrp; /* Group in question */ |
| 78 | vifi_t mfcc_parent; /* Where it arrived */ | 82 | vifi_t mfcc_parent; /* Where it arrived */ |
| @@ -87,8 +91,7 @@ struct mfcctl | |||
| 87 | * Group count retrieval for mrouted | 91 | * Group count retrieval for mrouted |
| 88 | */ | 92 | */ |
| 89 | 93 | ||
| 90 | struct sioc_sg_req | 94 | struct sioc_sg_req { |
| 91 | { | ||
| 92 | struct in_addr src; | 95 | struct in_addr src; |
| 93 | struct in_addr grp; | 96 | struct in_addr grp; |
| 94 | unsigned long pktcnt; | 97 | unsigned long pktcnt; |
| @@ -100,8 +103,7 @@ struct sioc_sg_req | |||
| 100 | * To get vif packet counts | 103 | * To get vif packet counts |
| 101 | */ | 104 | */ |
| 102 | 105 | ||
| 103 | struct sioc_vif_req | 106 | struct sioc_vif_req { |
| 104 | { | ||
| 105 | vifi_t vifi; /* Which iface */ | 107 | vifi_t vifi; /* Which iface */ |
| 106 | unsigned long icount; /* In packets */ | 108 | unsigned long icount; /* In packets */ |
| 107 | unsigned long ocount; /* Out packets */ | 109 | unsigned long ocount; /* Out packets */ |
| @@ -114,8 +116,7 @@ struct sioc_vif_req | |||
| 114 | * data. Magically happens to be like an IP packet as per the original | 116 | * data. Magically happens to be like an IP packet as per the original |
| 115 | */ | 117 | */ |
| 116 | 118 | ||
| 117 | struct igmpmsg | 119 | struct igmpmsg { |
| 118 | { | ||
| 119 | __u32 unused1,unused2; | 120 | __u32 unused1,unused2; |
| 120 | unsigned char im_msgtype; /* What is this */ | 121 | unsigned char im_msgtype; /* What is this */ |
| 121 | unsigned char im_mbz; /* Must be zero */ | 122 | unsigned char im_mbz; /* Must be zero */ |
| @@ -176,8 +177,7 @@ static inline int ip_mr_init(void) | |||
| 176 | } | 177 | } |
| 177 | #endif | 178 | #endif |
| 178 | 179 | ||
| 179 | struct vif_device | 180 | struct vif_device { |
| 180 | { | ||
| 181 | struct net_device *dev; /* Device we are using */ | 181 | struct net_device *dev; /* Device we are using */ |
| 182 | unsigned long bytes_in,bytes_out; | 182 | unsigned long bytes_in,bytes_out; |
| 183 | unsigned long pkt_in,pkt_out; /* Statistics */ | 183 | unsigned long pkt_in,pkt_out; /* Statistics */ |
| @@ -190,8 +190,7 @@ struct vif_device | |||
| 190 | 190 | ||
| 191 | #define VIFF_STATIC 0x8000 | 191 | #define VIFF_STATIC 0x8000 |
| 192 | 192 | ||
| 193 | struct mfc_cache | 193 | struct mfc_cache { |
| 194 | { | ||
| 195 | struct mfc_cache *next; /* Next entry on cache line */ | 194 | struct mfc_cache *next; /* Next entry on cache line */ |
| 196 | #ifdef CONFIG_NET_NS | 195 | #ifdef CONFIG_NET_NS |
| 197 | struct net *mfc_net; | 196 | struct net *mfc_net; |
