ip6_flowlabel.c (5ce001b0e56638c726270d4f9e05d46d4250dfbb) | ip6_flowlabel.c (b071195deba14b37ce896c26f20349b46e5f9fd2) |
---|---|
1/* 2 * ip6_flowlabel.c IPv6 flowlabel manager. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 7 * 2 of the License, or (at your option) any later version. 8 * --- 682 unchanged lines hidden (view full) --- 691static int ip6fl_seq_show(struct seq_file *seq, void *v) 692{ 693 if (v == SEQ_START_TOKEN) 694 seq_printf(seq, "%-5s %-1s %-6s %-6s %-6s %-8s %-32s %s\n", 695 "Label", "S", "Owner", "Users", "Linger", "Expires", "Dst", "Opt"); 696 else { 697 struct ip6_flowlabel *fl = v; 698 seq_printf(seq, | 1/* 2 * ip6_flowlabel.c IPv6 flowlabel manager. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 7 * 2 of the License, or (at your option) any later version. 8 * --- 682 unchanged lines hidden (view full) --- 691static int ip6fl_seq_show(struct seq_file *seq, void *v) 692{ 693 if (v == SEQ_START_TOKEN) 694 seq_printf(seq, "%-5s %-1s %-6s %-6s %-6s %-8s %-32s %s\n", 695 "Label", "S", "Owner", "Users", "Linger", "Expires", "Dst", "Opt"); 696 else { 697 struct ip6_flowlabel *fl = v; 698 seq_printf(seq, |
699 "%05X %-1d %-6d %-6d %-6ld %-8ld " NIP6_SEQFMT " %-4d\n", | 699 "%05X %-1d %-6d %-6d %-6ld %-8ld %#p6 %-4d\n", |
700 (unsigned)ntohl(fl->label), 701 fl->share, 702 (unsigned)fl->owner, 703 atomic_read(&fl->users), 704 fl->linger/HZ, 705 (long)(fl->expires - jiffies)/HZ, | 700 (unsigned)ntohl(fl->label), 701 fl->share, 702 (unsigned)fl->owner, 703 atomic_read(&fl->users), 704 fl->linger/HZ, 705 (long)(fl->expires - jiffies)/HZ, |
706 NIP6(fl->dst), | 706 &fl->dst, |
707 fl->opt ? fl->opt->opt_nflen : 0); 708 } 709 return 0; 710} 711 712static const struct seq_operations ip6fl_seq_ops = { 713 .start = ip6fl_seq_start, 714 .next = ip6fl_seq_next, --- 62 unchanged lines hidden --- | 707 fl->opt ? fl->opt->opt_nflen : 0); 708 } 709 return 0; 710} 711 712static const struct seq_operations ip6fl_seq_ops = { 713 .start = ip6fl_seq_start, 714 .next = ip6fl_seq_next, --- 62 unchanged lines hidden --- |