Searched refs:nlh (Results 1 - 25 of 201) sorted by last modified time

123456789

/linux-master/drivers/net/vxlan/
H A Dvxlan_core.c158 struct nlmsghdr *nlh; local
164 nlh = nlmsg_put(skb, portid, seq, type, sizeof(*ndm), flags);
165 if (nlh == NULL)
168 ndm = nlmsg_data(nlh);
238 nlmsg_end(skb, nlh);
242 nlmsg_cancel(skb, nlh);
1369 cb->nlh->nlmsg_seq,
1387 cb->nlh->nlmsg_seq,
3074 static int vxlan_fdb_delete_bulk(struct nlmsghdr *nlh, struct net_device *dev, argument
3079 struct ndmsg *ndm = nlmsg_data(nlh);
[all...]
/linux-master/net/wireless/
H A Dnl80211.c996 err = nlmsg_parse_deprecated(cb->nlh,
3027 ret = nlmsg_parse_deprecated(cb->nlh,
3102 cb->nlh->nlmsg_seq,
4018 cb->nlh->nlmsg_seq, NLM_F_MULTI,
6798 cb->nlh->nlmsg_seq, NLM_F_MULTI,
7794 cb->nlh->nlmsg_seq, NLM_F_MULTI,
7994 cb->nlh->nlmsg_seq, NLM_F_MULTI,
8725 err = nl80211_send_regdom(skb, cb, cb->nlh->nlmsg_seq,
8742 err = nl80211_send_regdom(skb, cb, cb->nlh->nlmsg_seq,
10444 cb->nlh
16524 struct nlmsghdr *nlh = nlmsg_hdr(skb); local
[all...]
H A Dwext-core.c423 struct nlmsghdr *nlh; local
425 nlh = nlmsg_put(skb, 0, 0, RTM_NEWLINK, sizeof(*r), 0);
426 if (!nlh)
429 r = nlmsg_data(nlh);
440 return nlh;
442 nlmsg_cancel(skb, nlh);
466 struct nlmsghdr *nlh; local
562 nlh = rtnetlink_ifinfo_prep(dev, skb);
563 if (WARN_ON(!nlh)) {
584 nlmsg_end(skb, nlh);
[all...]
/linux-master/net/ipv4/
H A Droute.c2896 struct nlmsghdr *nlh; local
2901 nlh = nlmsg_put(skb, portid, seq, RTM_NEWROUTE, sizeof(*r), flags);
2902 if (!nlh)
2905 r = nlmsg_data(nlh);
3019 nlmsg_end(skb, nlh);
3023 nlmsg_cancel(skb, nlh);
3061 cb->nlh->nlmsg_seq, flags);
3164 const struct nlmsghdr *nlh,
3171 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*rtm))) {
3178 return nlmsg_parse_deprecated(nlh, sizeo
3163 inet_rtm_valid_getroute_req(struct sk_buff *skb, const struct nlmsghdr *nlh, struct nlattr **tb, struct netlink_ext_ack *extack) argument
3232 inet_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh, struct netlink_ext_ack *extack) argument
[all...]
H A Dfib_frontend.c728 struct nlmsghdr *nlh, struct fib_config *cfg,
736 err = nlmsg_validate_deprecated(nlh, sizeof(*rtm), RTA_MAX,
743 rtm = nlmsg_data(nlh);
759 cfg->fc_nlflags = nlh->nlmsg_flags;
762 cfg->fc_nlinfo.nlh = nlh;
771 nlmsg_for_each_attr(attr, nlh, sizeof(struct rtmsg), remaining) {
855 static int inet_rtm_delroute(struct sk_buff *skb, struct nlmsghdr *nlh, argument
863 err = rtm_to_fib_config(net, skb, nlh, &cfg, extack);
885 static int inet_rtm_newroute(struct sk_buff *skb, struct nlmsghdr *nlh, argument
727 rtm_to_fib_config(struct net *net, struct sk_buff *skb, struct nlmsghdr *nlh, struct fib_config *cfg, struct netlink_ext_ack *extack) argument
910 ip_valid_fib_dump_req(struct net *net, const struct nlmsghdr *nlh, struct fib_dump_filter *filter, struct netlink_callback *cb) argument
995 const struct nlmsghdr *nlh = cb->nlh; local
1383 struct nlmsghdr *nlh; local
[all...]
H A Dnexthop.c916 struct nlmsghdr *nlh; local
920 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nhm), nlflags);
921 if (!nlh)
924 nhm = nlmsg_data(nlh);
984 nlmsg_end(skb, nlh);
988 nlmsg_cancel(skb, nlh);
1061 unsigned int nlflags = info->nlh ? info->nlh->nlmsg_flags : 0;
1062 u32 seq = info->nlh ? info->nlh
1139 struct nlmsghdr *nlh; local
3004 rtm_to_nh_config(struct net *net, struct sk_buff *skb, struct nlmsghdr *nlh, struct nh_config *cfg, struct netlink_ext_ack *extack) argument
3196 rtm_new_nexthop(struct sk_buff *skb, struct nlmsghdr *nlh, struct netlink_ext_ack *extack) argument
3214 nh_valid_get_del_req(const struct nlmsghdr *nlh, struct nlattr **tb, u32 *id, u32 *op_flags, struct netlink_ext_ack *extack) argument
3247 rtm_del_nexthop(struct sk_buff *skb, struct nlmsghdr *nlh, struct netlink_ext_ack *extack) argument
3281 rtm_get_nexthop(struct sk_buff *in_skb, struct nlmsghdr *nlh, struct netlink_ext_ack *extack) argument
3374 __nh_valid_dump_req(const struct nlmsghdr *nlh, struct nlattr **tb, struct nh_dump_filter *filter, struct netlink_ext_ack *extack) argument
3409 nh_valid_dump_req(const struct nlmsghdr *nlh, struct nh_dump_filter *filter, struct netlink_callback *cb) argument
3552 nh_valid_dump_bucket_req(const struct nlmsghdr *nlh, struct nh_dump_filter *filter, struct netlink_callback *cb) argument
3722 nh_valid_get_bucket_req(const struct nlmsghdr *nlh, u32 *id, u16 *bucket_index, struct netlink_ext_ack *extack) argument
3753 rtm_get_nexthop_bucket(struct sk_buff *in_skb, struct nlmsghdr *nlh, struct netlink_ext_ack *extack) argument
[all...]
/linux-master/net/bridge/
H A Dbr_netlink.c463 struct nlmsghdr *nlh; local
473 nlh = nlmsg_put(skb, pid, seq, event, sizeof(*hdr), flags);
474 if (nlh == NULL)
477 hdr = nlmsg_data(nlh);
616 nlmsg_end(skb, nlh);
620 nlmsg_cancel(skb, nlh);
1085 int br_setlink(struct net_device *dev, struct nlmsghdr *nlh, u16 flags, argument
1096 protinfo = nlmsg_find_attr(nlh, sizeof(struct ifinfomsg), IFLA_PROTINFO);
1097 afspec = nlmsg_find_attr(nlh, sizeof(struct ifinfomsg), IFLA_AF_SPEC);
1144 int br_dellink(struct net_device *dev, struct nlmsghdr *nlh, u1 argument
[all...]
H A Dbr_private.h857 int br_fdb_delete_bulk(struct nlmsghdr *nlh, struct net_device *dev,
859 int br_fdb_add(struct ndmsg *nlh, struct nlattr *tb[], struct net_device *dev,
/linux-master/drivers/vdpa/
H A Dvdpa.c570 cb->nlh->nlmsg_seq, NLM_F_MULTI);
849 info->cb->nlh->nlmsg_seq, NLM_F_MULTI, info->cb->extack);
1377 info->cb->nlh->nlmsg_seq, NLM_F_MULTI,
/linux-master/drivers/net/wireless/virtual/
H A Dmac80211_hwsim.c6254 cb->nlh->nlmsg_seq, cb,
6267 cb->nlh->nlmsg_seq, &hwsim_genl_family,
6475 struct nlmsghdr *nlh; local
6481 nlh = nlmsg_hdr(skb);
6482 gnlh = nlmsg_data(nlh);
6484 if (skb->len < nlh->nlmsg_len)
6487 err = genlmsg_parse(nlh, &hwsim_genl_family, tb, HWSIM_ATTR_MAX,
/linux-master/drivers/net/
H A Dmacsec.c3109 hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
H A Dgtp.c1695 cb->nlh->nlmsg_seq,
1697 cb->nlh->nlmsg_type, pctx)) {
/linux-master/drivers/net/ethernet/intel/i40e/
H A Di40e_main.c13084 * @nlh: RTNL message
13098 struct nlmsghdr *nlh,
13116 br_spec = nlmsg_find_attr(nlh, sizeof(struct ifinfomsg), IFLA_AF_SPEC);
13097 i40e_ndo_bridge_setlink(struct net_device *dev, struct nlmsghdr *nlh, u16 flags, struct netlink_ext_ack *extack) argument
/linux-master/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt.c14442 static int bnxt_bridge_setlink(struct net_device *dev, struct nlmsghdr *nlh, argument
14452 br_spec = nlmsg_find_attr(nlh, sizeof(struct ifinfomsg), IFLA_AF_SPEC);
/linux-master/net/netfilter/
H A Dnf_tables_api.c133 const struct nlmsghdr *nlh,
146 ctx->report = nlmsg_report(nlh);
147 ctx->flags = nlh->nlmsg_flags;
148 ctx->seq = nlh->nlmsg_seq;
966 struct nlmsghdr *nlh; local
969 nlh = nfnl_msg_put(skb, portid, seq, event, flags, family,
971 if (!nlh)
981 nlmsg_end(skb, nlh);
998 nlmsg_end(skb, nlh);
1002 nlmsg_trim(skb, nlh);
130 nft_ctx_init(struct nft_ctx *ctx, struct net *net, const struct sk_buff *skb, const struct nlmsghdr *nlh, u8 family, struct nft_table *table, struct nft_chain *chain, const struct nlattr * const *nla) argument
1092 nft_netlink_dump_start_rcu(struct sock *nlsk, struct sk_buff *skb, const struct nlmsghdr *nlh, struct netlink_dump_control *c) argument
1826 struct nlmsghdr *nlh; local
3410 struct nlmsghdr *nlh; local
4577 struct nlmsghdr *nlh; local
5874 struct nlmsghdr *nlh; local
5997 struct nlmsghdr *nlh; local
7854 struct nlmsghdr *nlh; local
8487 nft_flowtable_update(struct nft_ctx *ctx, const struct nlmsghdr *nlh, struct nft_flowtable *flowtable, struct netlink_ext_ack *extack) argument
8816 struct nlmsghdr *nlh; local
9074 struct nlmsghdr *nlh; local
9145 struct nlmsghdr *nlh = nlmsg_hdr(skb); local
[all...]
/linux-master/net/core/
H A Ddev.c8722 const struct nlmsghdr *nlh)
8727 rtmsg_ifinfo(RTM_NEWLINK, dev, gchanges, GFP_ATOMIC, portid, nlh);
11048 u32 portid, const struct nlmsghdr *nlh)
11111 portid, nlh);
11128 rtmsg_ifinfo_send(skb, dev, GFP_KERNEL, portid, nlh);
8720 __dev_notify_flags(struct net_device *dev, unsigned int old_flags, unsigned int gchanges, u32 portid, const struct nlmsghdr *nlh) argument
11047 unregister_netdevice_many_notify(struct list_head *head, u32 portid, const struct nlmsghdr *nlh) argument
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_main.c4939 static int mlx5e_bridge_setlink(struct net_device *dev, struct nlmsghdr *nlh, argument
4949 br_spec = nlmsg_find_attr(nlh, sizeof(struct ifinfomsg), IFLA_AF_SPEC);
/linux-master/net/ipv6/
H A Dip6_fib.c628 const struct nlmsghdr *nlh = cb->nlh; local
640 err = ip_valid_fib_dump_req(net, nlh, &arg.filter, cb);
643 } else if (nlmsg_len(nlh) >= sizeof(struct rtmsg)) {
644 struct rtmsg *rtm = nlmsg_data(nlh);
677 if (rtnl_msg_family(cb->nlh) != PF_INET6)
1082 int replace = (info->nlh &&
1083 (info->nlh->nlmsg_flags & NLM_F_REPLACE));
1084 int add = (!info->nlh ||
1085 (info->nlh
[all...]
H A Daddrconf.c532 struct nlmsghdr *nlh; local
536 nlh = nlmsg_put(skb, portid, seq, event, sizeof(struct netconfmsg),
538 if (!nlh)
544 ncm = nlmsg_data(nlh);
574 nlmsg_end(skb, nlh);
578 nlmsg_cancel(skb, nlh);
614 const struct nlmsghdr *nlh,
620 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(struct netconfmsg))) {
626 return nlmsg_parse_deprecated(nlh, sizeof(struct netconfmsg),
630 err = nlmsg_parse_deprecated_strict(nlh, sizeo
613 inet6_netconf_valid_get_req(struct sk_buff *skb, const struct nlmsghdr *nlh, struct nlattr **tb, struct netlink_ext_ack *extack) argument
652 inet6_netconf_get_devconf(struct sk_buff *in_skb, struct nlmsghdr *nlh, struct netlink_ext_ack *extack) argument
733 const struct nlmsghdr *nlh = cb->nlh; local
4772 inet6_rtm_deladdr(struct sk_buff *skb, struct nlmsghdr *nlh, struct netlink_ext_ack *extack) argument
4967 inet6_rtm_newaddr(struct sk_buff *skb, struct nlmsghdr *nlh, struct netlink_ext_ack *extack) argument
5062 put_ifaddrmsg(struct nlmsghdr *nlh, u8 prefixlen, u32 flags, u8 scope, int ifindex) argument
5131 struct nlmsghdr *nlh; local
5211 struct nlmsghdr *nlh; local
5246 struct nlmsghdr *nlh; local
5335 inet6_valid_dump_ifaddr_req(const struct nlmsghdr *nlh, struct inet6_fill_args *fillargs, struct net **tgt_net, struct sock *sk, struct netlink_callback *cb) argument
5395 const struct nlmsghdr *nlh = cb->nlh; local
5474 inet6_rtm_valid_getaddr_req(struct sk_buff *skb, const struct nlmsghdr *nlh, struct nlattr **tb, struct netlink_ext_ack *extack) argument
5520 inet6_rtm_getaddr(struct sk_buff *in_skb, struct nlmsghdr *nlh, struct netlink_ext_ack *extack) argument
6048 struct nlmsghdr *nlh; local
6091 inet6_valid_dump_ifinfo(const struct nlmsghdr *nlh, struct netlink_ext_ack *extack) argument
6190 struct nlmsghdr *nlh; local
[all...]
/linux-master/net/batman-adv/
H A Dtranslation-table.c1089 hdr = genlmsg_put(msg, portid, cb->nlh->nlmsg_seq,
1177 ifindex = batadv_netlink_get_ifindex(cb->nlh, BATADV_ATTR_MESH_IFINDEX);
1954 ifindex = batadv_netlink_get_ifindex(cb->nlh, BATADV_ATTR_MESH_IFINDEX);
1978 cb->nlh->nlmsg_seq, bat_priv,
/linux-master/net/sched/
H A Dsch_api.c919 struct nlmsghdr *nlh; local
927 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags);
928 if (!nlh)
930 tcm = nlmsg_data(nlh);
986 nlh->nlmsg_len = skb_tail_pointer(skb) - b;
1815 cb->nlh->nlmsg_seq, NLM_F_MULTI,
1837 cb->nlh->nlmsg_seq, NLM_F_MULTI,
1857 const struct nlmsghdr *nlh = cb->nlh; local
1867 err = nlmsg_parse_deprecated(nlh, sizeo
1915 struct nlmsghdr *nlh; local
[all...]
/linux-master/fs/smb/server/
H A Dtransport_ipc.c426 struct genlmsghdr *nlh; local
437 nlh = genlmsg_put(skb, 0, 0, &ksmbd_genl_family, 0, msg->type);
438 if (!nlh)
443 genlmsg_cancel(skb, nlh);
447 genlmsg_end(skb, nlh);
/linux-master/net/devlink/
H A Dport.c588 cb->nlh->nlmsg_seq, flags,
/linux-master/lib/
H A Dkobject_uevent.c725 static int uevent_net_rcv_skb(struct sk_buff *skb, struct nlmsghdr *nlh, argument
731 if (!nlmsg_data(nlh))
/linux-master/include/linux/
H A Dnetdevice.h1234 * int (*ndo_fdb_del_bulk)(struct nlmsghdr *nlh, struct net_device *dev,
1256 * int (*ndo_bridge_setlink)(struct net_device *dev, struct nlmsghdr *nlh,
1261 * int (*ndo_bridge_dellink)(struct net_device *dev, struct nlmsghdr *nlh,
1512 int (*ndo_fdb_del_bulk)(struct nlmsghdr *nlh,
1544 struct nlmsghdr *nlh,
1553 struct nlmsghdr *nlh,

Completed in 626 milliseconds

123456789