Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fd2c3ef7 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

net: cleanup include/net



This cleanup patch puts struct/union/enum opening braces,
in first line to ease grep games.

struct something
{

becomes :

struct something {

Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4b7673a0
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -8,8 +8,7 @@

struct crypto_ahash;

struct ah_data
{
struct ah_data {
	int			icv_full_len;
	int			icv_trunc_len;

+4 −8
Original line number Diff line number Diff line
@@ -97,16 +97,14 @@ struct dn_dev {
	unsigned long uptime;     /* Time device went up in jiffies */
};

struct dn_short_packet
{
struct dn_short_packet {
	__u8    msgflg;
	__le16 dstnode;
	__le16 srcnode;
	__u8   forward;
} __attribute__((packed));

struct dn_long_packet
{
struct dn_long_packet {
	__u8   msgflg;
	__u8   d_area;
	__u8   d_subarea;
@@ -122,8 +120,7 @@ struct dn_long_packet

/*------------------------- DRP - Routing messages ---------------------*/

struct endnode_hello_message
{
struct endnode_hello_message {
	__u8   msgflg;
	__u8   tiver[3];
	__u8   id[6];
@@ -138,8 +135,7 @@ struct endnode_hello_message
	__u8   data[2];
} __attribute__((packed));

struct rtnode_hello_message
{
struct rtnode_hello_message {
	__u8   msgflg;
	__u8   tiver[3];
	__u8   id[6];
+1 −2
Original line number Diff line number Diff line
@@ -4,8 +4,7 @@
/* WARNING: The ordering of these elements must match ordering
 *          of RTA_* rtnetlink attribute numbers.
 */
struct dn_kern_rta
{
struct dn_kern_rta {
        void            *rta_dst;
        void            *rta_src;
        int             *rta_iif;
+8 −16
Original line number Diff line number Diff line
@@ -70,30 +70,26 @@ extern struct sk_buff *dn_alloc_send_skb(struct sock *sk, size_t *size, int nobl

/* Data Messages    (data segment/interrupt/link service)               */

struct nsp_data_seg_msg
{
struct nsp_data_seg_msg {
	__u8   msgflg;
	__le16 dstaddr;
	__le16 srcaddr;
} __attribute__((packed));

struct nsp_data_opt_msg
{
struct nsp_data_opt_msg {
	__le16 acknum;
	__le16 segnum;
	__le16 lsflgs;
} __attribute__((packed));

struct nsp_data_opt_msg1
{
struct nsp_data_opt_msg1 {
	__le16 acknum;
	__le16 segnum;
} __attribute__((packed));


/* Acknowledgment Message (data/other data)                             */
struct nsp_data_ack_msg
{
struct nsp_data_ack_msg {
	__u8   msgflg;
	__le16 dstaddr;
	__le16 srcaddr;
@@ -101,16 +97,14 @@ struct nsp_data_ack_msg
} __attribute__((packed));

/* Connect Acknowledgment Message */
struct  nsp_conn_ack_msg
{
struct  nsp_conn_ack_msg {
	__u8 msgflg;
	__le16 dstaddr;
} __attribute__((packed));


/* Connect Initiate/Retransmit Initiate/Connect Confirm */
struct  nsp_conn_init_msg
{
struct  nsp_conn_init_msg {
	__u8   msgflg;
#define NSP_CI      0x18            /* Connect Initiate     */
#define NSP_RCI     0x68            /* Retrans. Conn Init   */
@@ -126,8 +120,7 @@ struct nsp_conn_init_msg
} __attribute__((packed));

/* Disconnect Initiate/Disconnect Confirm */
struct  nsp_disconn_init_msg
{
struct  nsp_disconn_init_msg {
	__u8   msgflg;
	__le16 dstaddr;
	__le16 srcaddr;
@@ -136,8 +129,7 @@ struct nsp_disconn_init_msg



struct  srcobj_fmt
{
struct  srcobj_fmt {
	__u8   format;
	__u8   task;
	__le16 grpcode;
+1 −2
Original line number Diff line number Diff line
@@ -36,8 +36,7 @@

struct sk_buff;

struct dst_entry
{
struct dst_entry {
	struct rcu_head		rcu_head;
	struct dst_entry	*child;
	struct net_device       *dev;
Loading