cregit-Linux how code gets into the kernel

Release 4.10 include/net/mpls.h

Directory: include/net
/*
 * Copyright (c) 2014 Nicira, Inc.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of version 2 of the GNU General Public
 * License as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * General Public License for more details.
 */

#ifndef _NET_MPLS_H

#define _NET_MPLS_H 1

#include <linux/if_ether.h>
#include <linux/netdevice.h>


#define MPLS_HLEN 4


struct mpls_shim_hdr {
	
__be32 label_stack_entry;
};


static inline bool eth_p_mpls(__be16 eth_type) { return eth_type == htons(ETH_P_MPLS_UC) || eth_type == htons(ETH_P_MPLS_MC); }

Contributors

PersonTokensPropCommitsCommitProp
simon hormansimon horman25100.00%1100.00%
Total25100.00%1100.00%


static inline struct mpls_shim_hdr *mpls_hdr(const struct sk_buff *skb) { return (struct mpls_shim_hdr *)skb_network_header(skb); }

Contributors

PersonTokensPropCommitsCommitProp
jiri bencjiri benc26100.00%1100.00%
Total26100.00%1100.00%

#endif

Overall Contributors

PersonTokensPropCommitsCommitProp
simon hormansimon horman4556.96%150.00%
jiri bencjiri benc3443.04%150.00%
Total79100.00%2100.00%
Directory: include/net
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.