lua_add_constant(L, "RTNLGRP_LINK", RTNLGRP_LINK); lua_add_constant(L, "RTNLGRP_NOTIFY", RTNLGRP_NOTIFY); lua_add_constant(L, "RTNLGRP_NEIGH", RTNLGRP_NEIGH); lua_add_constant(L, "RTNLGRP_TC", RTNLGRP_TC);
1 change: 1 addition & 0 deletions 1 include/net/rtnetlink.h Original file line numberDiff line numberDiff line change @@ -12,6 +12,7 @@ typedef int (*rtnl_dumpit_func)(struct sk_buff *, struct netlink_callback *); enum rtnl_link_flags { RTNL_FLAG_DOIT_UNLOCKED = BIT(0), ...
PRINT_FIELD_X(", ", ifinfo, ifi_change); decode_nla = true; } } else tprints("..."); tprints("}");offset = NLMSG_ALIGN(sizeof(ifinfo));if (decode_nla && len > offset) { tprints(", "); decode_nlattr(tcp, addr + offset, len - offset, rtnl_link_attrs, "IFLA_???"...
rtnl.request(rtnl.const.RTM_SETLINK,0, {dev:name,change:1,flags:up?1:0}); } functionphy_sysfs_file(phy,name) { returntrim(readfile(`/sys/class/ieee80211/${phy}/${name}`)); @@ -365,4 +370,4 @@ function vlist_new(cb) { ...
const.RTM_SETLINK, 0, { dev: name, change: 1, flags: up ? 1 : 0 }); } function phy_sysfs_file(phy, name) { return trim(readfile(`/sys/class/ieee80211/${phy}/${name}`)); @@ -365,4 +370,4 @@ function vlist_new(cb) { }, vlist_proto); } export { wdev_remove, ...
Original file line numberDiff line numberDiff line change @@ -14,6 +14,7 @@ 14 14 int rtnl_set_link_name(sd_netlink **rtnl, int ifindex, const char *name) { 15 15 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *message = NULL; 16 16 _cleanup_strv_free_ char *...
rtnl: expose ifinfomsg.ifi_change member jow-committedJun 28, 2022 d3c58c0 Commits on Jun 27, 2022 rtnl: update NETLINK_GET_STRICT_CHK socket flag with every request jow-committedJun 27, 2022 c4dde50 Commits on Jun 8, 2022 Merge pull request #83 from jow-/rtnl-fix-linkinfo-segf...
Link: https://lore.kernel.org/r/20210122161942.81df9f5e047a.I4a8e1a60b18863ea8c5e6d3a0faeafb2d45b2f40@changeid Tested-by: Marek Szyprowski <m.szyprowski@samsung.com> [marvell driver issues] Signed-off-by: Johannes Berg <johannes.berg@intel.com>...
Now that it is done, we must remove the explicit call to unregister_netdevice_queue(), because the fallback tunnel is added to the queue in ip6_tnl_destroy_tunnels() when checking rtnl_link_ops of all netdevices (this is valid since commit 0bd8762 ("ip6tnl: add x-netns support"))...
func IsDelAddr(msg *syscall.NetlinkMessage) bool { if msg.Header.Type == syscall.RTM_DELADDR { return true } return false } func IsRelevant(msg *syscall.IfAddrmsg) bool { if msg.Scope == syscall.RT_SCOPE_UNIVERSE || msg.Scope == syscall.RT_SCOPE_SITE { ...