aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_out.c
diff options
context:
space:
mode:
authorNeil Horman <[email protected]>2012-05-29 09:30:41 +0000
committerDavid S. Miller <[email protected]>2012-05-29 22:33:56 -0400
commite9412c37082b5c932e83364aaed0c38c2ce33acb (patch)
tree479e716c478173830e378f432d3d0b24c6979541 /net/lapb/lapb_out.c
parent2033e9bf06f07e049bbc77e9452856df846714cc (diff)
genetlink: Build a generic netlink family module alias
Generic netlink searches for -type- formatted aliases when requesting a module to fulfill a protocol request (i.e. net-pf-16-proto-16-type-<x>, where x is a type value). However generic netlink protocols have no well defined type numbers, they have string names. Modify genl_ctrl_getfamily to request an alias in the format net-pf-16-proto-16-family-<x> instead, where x is a generic string, and add a macro that builds on the previously added MODULE_ALIAS_NET_PF_PROTO_NAME macro to allow modules to specifify those generic strings. Note, l2tp previously hacked together an net-pf-16-proto-16-type-l2tp alias using the MODULE_ALIAS macro, with these updates we can convert that to use the PROTO_NAME macro. Signed-off-by: Neil Horman <[email protected]> CC: Eric Dumazet <[email protected]> CC: James Chapman <[email protected]> CC: David Miller <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions