cregit-Linux how code gets into the kernel

Release 4.18 net/ipv4/netlink.c

Directory: net/ipv4
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
#include <linux/types.h>
#include <net/net_namespace.h>
#include <net/netlink.h>
#include <net/ip.h>


int rtm_getroute_parse_ip_proto(struct nlattr *attr, u8 *ip_proto, struct netlink_ext_ack *extack) { *ip_proto = nla_get_u8(attr); switch (*ip_proto) { case IPPROTO_TCP: case IPPROTO_UDP: case IPPROTO_ICMP: return 0; default: NL_SET_ERR_MSG(extack, "Unsupported ip proto"); return -EOPNOTSUPP; } }

Contributors

PersonTokensPropCommitsCommitProp
Roopa Prabhu58100.00%1100.00%
Total58100.00%1100.00%

EXPORT_SYMBOL_GPL(rtm_getroute_parse_ip_proto);

Overall Contributors

PersonTokensPropCommitsCommitProp
Roopa Prabhu81100.00%1100.00%
Total81100.00%1100.00%
Directory: net/ipv4
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.