tag | line | file | source code |
mapp | 112 | include/net/ip_masq.h | extern int register_ip_masq_app(struct ip_masq_app *mapp, unsigned short proto, __u16 port); |
mapp | 113 | include/net/ip_masq.h | extern int unregister_ip_masq_app(struct ip_masq_app *mapp); |
mapp | 73 | net/ipv4/ip_masq_app.c | int register_ip_masq_app(struct ip_masq_app *mapp, unsigned short proto, __u16 port) |
mapp | 77 | net/ipv4/ip_masq_app.c | if (!mapp) { |
mapp | 81 | net/ipv4/ip_masq_app.c | mapp->type = IP_MASQ_APP_TYPE(proto, port); |
mapp | 82 | net/ipv4/ip_masq_app.c | mapp->n_attach = 0; |
mapp | 87 | net/ipv4/ip_masq_app.c | mapp->next = ip_masq_app_base[hash]; |
mapp | 88 | net/ipv4/ip_masq_app.c | ip_masq_app_base[hash] = mapp; |
mapp | 98 | net/ipv4/ip_masq_app.c | int unregister_ip_masq_app(struct ip_masq_app *mapp) |
mapp | 103 | net/ipv4/ip_masq_app.c | if (!mapp) { |
mapp | 110 | net/ipv4/ip_masq_app.c | if (mapp->n_attach) { |
mapp | 112 | net/ipv4/ip_masq_app.c | mapp->n_attach); |
mapp | 115 | net/ipv4/ip_masq_app.c | hash = IP_MASQ_APP_HASH(IP_MASQ_APP_PROTO(mapp->type), IP_MASQ_APP_PORT(mapp->type)); |
mapp | 120 | net/ipv4/ip_masq_app.c | if (mapp == (*mapp_p)) { |
mapp | 121 | net/ipv4/ip_masq_app.c | *mapp_p = mapp->next; |
mapp | 128 | net/ipv4/ip_masq_app.c | masq_proto_name(IP_MASQ_APP_PROTO(mapp->type)), IP_MASQ_APP_PORT(mapp->type)); |
mapp | 138 | net/ipv4/ip_masq_app.c | struct ip_masq_app *mapp; |
mapp | 145 | net/ipv4/ip_masq_app.c | for(mapp = ip_masq_app_base[hash]; mapp ; mapp = mapp->next) { |
mapp | 146 | net/ipv4/ip_masq_app.c | if (type == mapp->type) return mapp; |
mapp | 159 | net/ipv4/ip_masq_app.c | static __inline__ int ip_masq_app_bind_chg(struct ip_masq_app *mapp, int delta) |
mapp | 163 | net/ipv4/ip_masq_app.c | if (!mapp) return -1; |
mapp | 166 | net/ipv4/ip_masq_app.c | n_at = mapp->n_attach + delta; |
mapp | 170 | net/ipv4/ip_masq_app.c | masq_proto_name(IP_MASQ_APP_PROTO(mapp->type)), |
mapp | 171 | net/ipv4/ip_masq_app.c | IP_MASQ_APP_PORT(mapp->type)); |
mapp | 174 | net/ipv4/ip_masq_app.c | mapp->n_attach = n_at; |
mapp | 186 | net/ipv4/ip_masq_app.c | struct ip_masq_app * mapp; |
mapp | 187 | net/ipv4/ip_masq_app.c | mapp = ip_masq_app_get(ms->protocol, ms->dport); |
mapp | 188 | net/ipv4/ip_masq_app.c | if (mapp != NULL) { |
mapp | 198 | net/ipv4/ip_masq_app.c | ms->app = mapp; |
mapp | 199 | net/ipv4/ip_masq_app.c | if (mapp->masq_init_1) mapp->masq_init_1(mapp, ms); |
mapp | 200 | net/ipv4/ip_masq_app.c | ip_masq_app_bind_chg(mapp, +1); |
mapp | 202 | net/ipv4/ip_masq_app.c | return mapp; |
mapp | 211 | net/ipv4/ip_masq_app.c | struct ip_masq_app * mapp; |
mapp | 212 | net/ipv4/ip_masq_app.c | mapp = ms->app; |
mapp | 213 | net/ipv4/ip_masq_app.c | if (mapp != NULL) { |
mapp | 214 | net/ipv4/ip_masq_app.c | if (mapp->masq_done_1) mapp->masq_done_1(mapp, ms); |
mapp | 216 | net/ipv4/ip_masq_app.c | ip_masq_app_bind_chg(mapp, -1); |
mapp | 218 | net/ipv4/ip_masq_app.c | return (mapp != NULL); |
mapp | 312 | net/ipv4/ip_masq_app.c | struct ip_masq_app * mapp; |
mapp | 325 | net/ipv4/ip_masq_app.c | if ( (mapp = ms->app) == NULL) |
mapp | 352 | net/ipv4/ip_masq_app.c | if ( mapp->pkt_out == NULL ) |
mapp | 355 | net/ipv4/ip_masq_app.c | diff = mapp->pkt_out(mapp, ms, skb_p, dev); |
mapp | 375 | net/ipv4/ip_masq_app.c | struct ip_masq_app * mapp; |
mapp | 388 | net/ipv4/ip_masq_app.c | if ( (mapp = ms->app) == NULL) |
mapp | 415 | net/ipv4/ip_masq_app.c | if ( mapp->pkt_in == NULL ) |
mapp | 418 | net/ipv4/ip_masq_app.c | diff = mapp->pkt_in(mapp, ms, skb_p, dev); |
mapp | 438 | net/ipv4/ip_masq_app.c | struct ip_masq_app * mapp; |
mapp | 442 | net/ipv4/ip_masq_app.c | for (mapp = ip_masq_app_base[idx]; mapp ; mapp = mapp->next) { |
mapp | 444 | net/ipv4/ip_masq_app.c | masq_proto_name(IP_MASQ_APP_PROTO(mapp->type)), |
mapp | 445 | net/ipv4/ip_masq_app.c | IP_MASQ_APP_PORT(mapp->type), mapp->n_attach); |
mapp | 37 | net/ipv4/ip_masq_ftp.c | masq_ftp_init_1 (struct ip_masq_app *mapp, struct ip_masq *ms) |
mapp | 44 | net/ipv4/ip_masq_ftp.c | masq_ftp_done_1 (struct ip_masq_app *mapp, struct ip_masq *ms) |
mapp | 51 | net/ipv4/ip_masq_ftp.c | masq_ftp_out (struct ip_masq_app *mapp, struct ip_masq *ms, struct sk_buff **skb_p, struct device *dev) |
mapp | 38 | net/ipv4/ip_masq_irc.c | masq_irc_init_1 (struct ip_masq_app *mapp, struct ip_masq *ms) |
mapp | 45 | net/ipv4/ip_masq_irc.c | masq_irc_done_1 (struct ip_masq_app *mapp, struct ip_masq *ms) |
mapp | 52 | net/ipv4/ip_masq_irc.c | masq_irc_out (struct ip_masq_app *mapp, struct ip_masq *ms, struct sk_buff **skb_p, struct device *dev) |