/net/802/ |
D | mrp.c | 239 static struct mrp_attr *mrp_attr_lookup(const struct mrp_applicant *app, in mrp_attr_lookup() argument 242 struct rb_node *parent = app->mad.rb_node; in mrp_attr_lookup() 259 static struct mrp_attr *mrp_attr_create(struct mrp_applicant *app, in mrp_attr_create() argument 262 struct rb_node *parent = NULL, **p = &app->mad.rb_node; in mrp_attr_create() 288 rb_insert_color(&attr->node, &app->mad); in mrp_attr_create() 292 static void mrp_attr_destroy(struct mrp_applicant *app, struct mrp_attr *attr) in mrp_attr_destroy() argument 294 rb_erase(&attr->node, &app->mad); in mrp_attr_destroy() 298 static int mrp_pdu_init(struct mrp_applicant *app) in mrp_pdu_init() argument 303 skb = alloc_skb(app->dev->mtu + LL_RESERVED_SPACE(app->dev), in mrp_pdu_init() 308 skb->dev = app->dev; in mrp_pdu_init() [all …]
|
D | garp.c | 150 static struct garp_attr *garp_attr_lookup(const struct garp_applicant *app, in garp_attr_lookup() argument 153 struct rb_node *parent = app->gid.rb_node; in garp_attr_lookup() 170 static struct garp_attr *garp_attr_create(struct garp_applicant *app, in garp_attr_create() argument 173 struct rb_node *parent = NULL, **p = &app->gid.rb_node; in garp_attr_create() 199 rb_insert_color(&attr->node, &app->gid); in garp_attr_create() 203 static void garp_attr_destroy(struct garp_applicant *app, struct garp_attr *attr) in garp_attr_destroy() argument 205 rb_erase(&attr->node, &app->gid); in garp_attr_destroy() 209 static int garp_pdu_init(struct garp_applicant *app) in garp_pdu_init() argument 215 skb = alloc_skb(app->dev->mtu + LL_RESERVED_SPACE(app->dev), in garp_pdu_init() 220 skb->dev = app->dev; in garp_pdu_init() [all …]
|
/net/netfilter/ipvs/ |
D | ip_vs_app.c | 50 static inline int ip_vs_app_get(struct ip_vs_app *app) in ip_vs_app_get() argument 52 return try_module_get(app->module); in ip_vs_app_get() 56 static inline void ip_vs_app_put(struct ip_vs_app *app) in ip_vs_app_put() argument 58 module_put(app->module); in ip_vs_app_put() 78 ip_vs_app_inc_new(struct net *net, struct ip_vs_app *app, __u16 proto, in ip_vs_app_inc_new() argument 91 inc = kmemdup(app, sizeof(*inc), GFP_KERNEL); in ip_vs_app_inc_new() 96 inc->app = app; in ip_vs_app_inc_new() 100 if (app->timeouts) { in ip_vs_app_inc_new() 102 ip_vs_create_timeout_table(app->timeouts, in ip_vs_app_inc_new() 103 app->timeouts_size); in ip_vs_app_inc_new() [all …]
|
D | ip_vs_ftp.c | 66 ip_vs_ftp_init_conn(struct ip_vs_app *app, struct ip_vs_conn *cp) in ip_vs_ftp_init_conn() argument 75 ip_vs_ftp_done_conn(struct ip_vs_app *app, struct ip_vs_conn *cp) in ip_vs_ftp_done_conn() argument 169 static int ip_vs_ftp_out(struct ip_vs_app *app, struct ip_vs_conn *cp, in ip_vs_ftp_out() argument 313 static int ip_vs_ftp_in(struct ip_vs_app *app, struct ip_vs_conn *cp, in ip_vs_ftp_in() argument 444 struct ip_vs_app *app; in __ip_vs_ftp_init() local 450 app = register_ip_vs_app(net, &ip_vs_ftp); in __ip_vs_ftp_init() 451 if (IS_ERR(app)) in __ip_vs_ftp_init() 452 return PTR_ERR(app); in __ip_vs_ftp_init() 457 ret = register_ip_vs_app_inc(net, app, app->protocol, ports[i]); in __ip_vs_ftp_init() 461 app->name, i, ports[i]); in __ip_vs_ftp_init()
|
D | ip_vs_proto_udp.c | 145 if (unlikely(cp->app != NULL)) { in udp_snat_handler() 179 skb->ip_summed = (cp->app && pp->csum_check) ? in udp_snat_handler() 228 if (unlikely(cp->app != NULL)) { in udp_dnat_handler() 263 skb->ip_summed = (cp->app && pp->csum_check) ? in udp_dnat_handler() 416 cp->app = inc; in udp_app_conn_bind()
|
D | ip_vs_proto_tcp.c | 149 if (unlikely(cp->app != NULL)) { in tcp_snat_handler() 179 skb->ip_summed = (cp->app && pp->csum_check) ? in tcp_snat_handler() 227 if (unlikely(cp->app != NULL)) { in tcp_dnat_handler() 262 skb->ip_summed = (cp->app && pp->csum_check) ? in tcp_dnat_handler() 640 cp->app = inc; in tcp_app_conn_bind()
|
D | ip_vs_proto_sctp.c | 95 if (unlikely(cp->app != NULL)) { in sctp_snat_handler() 142 if (unlikely(cp->app != NULL)) { in sctp_dnat_handler() 537 cp->app = inc; in sctp_app_conn_bind()
|
D | ip_vs_nfct.c | 101 if (cp->app && nf_ct_protonum(ct) == IPPROTO_TCP && in ip_vs_update_conntrack()
|
D | ip_vs_conn.c | 656 if (cp->app) in ip_vs_try_bind_dest() 831 if (unlikely(cp->app != NULL)) in ip_vs_conn_expire() 928 cp->app = NULL; in ip_vs_conn_new()
|
/net/bluetooth/cmtp/ |
D | capi.c | 75 struct cmtp_application *app = kzalloc(sizeof(*app), GFP_KERNEL); in cmtp_application_add() local 77 BT_DBG("session %p application %p appl %d", session, app, appl); in cmtp_application_add() 79 if (!app) in cmtp_application_add() 82 app->state = BT_OPEN; in cmtp_application_add() 83 app->appl = appl; in cmtp_application_add() 85 list_add_tail(&app->list, &session->applications); in cmtp_application_add() 87 return app; in cmtp_application_add() 90 static void cmtp_application_del(struct cmtp_session *session, struct cmtp_application *app) in cmtp_application_del() argument 92 BT_DBG("session %p application %p", session, app); in cmtp_application_del() 94 if (app) { in cmtp_application_del() [all …]
|
/net/dcb/ |
D | dcbnl.c | 480 struct dcb_app app = { in dcbnl_getapp() local 484 up = dcb_getapp(netdev, &app); in dcbnl_getapp() 548 struct dcb_app app; in dcbnl_setapp() local 549 app.selector = idtype; in dcbnl_setapp() 550 app.protocol = id; in dcbnl_setapp() 551 app.priority = up; in dcbnl_setapp() 552 ret = dcb_setapp(netdev, &app); in dcbnl_setapp() 1003 struct nlattr *app; in dcbnl_build_peer_app() local 1011 app = nla_nest_start(skb, app_nested_type); in dcbnl_build_peer_app() 1012 if (!app) in dcbnl_build_peer_app() [all …]
|
/net/sctp/ |
D | input.c | 472 struct sctp_association **app, in sctp_err_lookup() argument 484 *app = NULL; *tpp = NULL; in sctp_err_lookup() 539 *app = asoc; in sctp_err_lookup()
|