diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2012-08-07 03:25:24 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-08-15 02:30:37 -0400 |
commit | 55e26eb95a5345a5796babac98de6d6c42771df1 (patch) | |
tree | 65560cf23dbd241f38e86b6b82d1b5d286605ba5 /include/net/sctp | |
parent | ebb7e95d9351f77a8ec1fca20eb645051401b7b2 (diff) |
sctp: Push struct net down to sctp_chunk_event_lookup
This trickles up through sctp_sm_lookup_event up to sctp_do_sm
and up further into sctp_primitiv_NAME before the code reaches
places where struct net can be reliably found.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sctp')
-rw-r--r-- | include/net/sctp/sctp.h | 12 | ||||
-rw-r--r-- | include/net/sctp/sm.h | 5 |
2 files changed, 9 insertions, 8 deletions
diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h index c07421d1772f..aaa82923bbaa 100644 --- a/include/net/sctp/sctp.h +++ b/include/net/sctp/sctp.h | |||
@@ -139,12 +139,12 @@ extern int sctp_asconf_mgmt(struct sctp_sock *, struct sctp_sockaddr_entry *); | |||
139 | /* | 139 | /* |
140 | * sctp/primitive.c | 140 | * sctp/primitive.c |
141 | */ | 141 | */ |
142 | int sctp_primitive_ASSOCIATE(struct sctp_association *, void *arg); | 142 | int sctp_primitive_ASSOCIATE(struct net *, struct sctp_association *, void *arg); |
143 | int sctp_primitive_SHUTDOWN(struct sctp_association *, void *arg); | 143 | int sctp_primitive_SHUTDOWN(struct net *, struct sctp_association *, void *arg); |
144 | int sctp_primitive_ABORT(struct sctp_association *, void *arg); | 144 | int sctp_primitive_ABORT(struct net *, struct sctp_association *, void *arg); |
145 | int sctp_primitive_SEND(struct sctp_association *, void *arg); | 145 | int sctp_primitive_SEND(struct net *, struct sctp_association *, void *arg); |
146 | int sctp_primitive_REQUESTHEARTBEAT(struct sctp_association *, void *arg); | 146 | int sctp_primitive_REQUESTHEARTBEAT(struct net *, struct sctp_association *, void *arg); |
147 | int sctp_primitive_ASCONF(struct sctp_association *, void *arg); | 147 | int sctp_primitive_ASCONF(struct net *, struct sctp_association *, void *arg); |
148 | 148 | ||
149 | /* | 149 | /* |
150 | * sctp/input.c | 150 | * sctp/input.c |
diff --git a/include/net/sctp/sm.h b/include/net/sctp/sm.h index 9148632b8204..bcef13023ac3 100644 --- a/include/net/sctp/sm.h +++ b/include/net/sctp/sm.h | |||
@@ -178,7 +178,8 @@ sctp_state_fn_t sctp_sf_autoclose_timer_expire; | |||
178 | 178 | ||
179 | /* Prototypes for utility support functions. */ | 179 | /* Prototypes for utility support functions. */ |
180 | __u8 sctp_get_chunk_type(struct sctp_chunk *chunk); | 180 | __u8 sctp_get_chunk_type(struct sctp_chunk *chunk); |
181 | const sctp_sm_table_entry_t *sctp_sm_lookup_event(sctp_event_t, | 181 | const sctp_sm_table_entry_t *sctp_sm_lookup_event(struct net *, |
182 | sctp_event_t, | ||
182 | sctp_state_t, | 183 | sctp_state_t, |
183 | sctp_subtype_t); | 184 | sctp_subtype_t); |
184 | int sctp_chunk_iif(const struct sctp_chunk *); | 185 | int sctp_chunk_iif(const struct sctp_chunk *); |
@@ -268,7 +269,7 @@ void sctp_chunk_assign_ssn(struct sctp_chunk *); | |||
268 | 269 | ||
269 | /* Prototypes for statetable processing. */ | 270 | /* Prototypes for statetable processing. */ |
270 | 271 | ||
271 | int sctp_do_sm(sctp_event_t event_type, sctp_subtype_t subtype, | 272 | int sctp_do_sm(struct net *net, sctp_event_t event_type, sctp_subtype_t subtype, |
272 | sctp_state_t state, | 273 | sctp_state_t state, |
273 | struct sctp_endpoint *, | 274 | struct sctp_endpoint *, |
274 | struct sctp_association *asoc, | 275 | struct sctp_association *asoc, |