Deleted Added
full compact
ip6protosw.h (66586) ip6protosw.h (78064)
1/* $FreeBSD: head/sys/netinet6/ip6protosw.h 66586 2000-10-03 13:39:49Z itojun $ */
2/* $KAME: ip6protosw.h,v 1.11 2000/10/03 09:59:35 jinmei Exp $ */
1/* $FreeBSD: head/sys/netinet6/ip6protosw.h 78064 2001-06-11 12:39:29Z ume $ */
2/* $KAME: ip6protosw.h,v 1.22 2001/02/08 18:02:08 itojun Exp $ */
3
4/*
5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:

--- 71 unchanged lines hidden (view full) ---

82 */
83
84struct mbuf;
85struct sockaddr;
86struct socket;
87struct domain;
88struct proc;
89struct ip6_hdr;
3
4/*
5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:

--- 71 unchanged lines hidden (view full) ---

82 */
83
84struct mbuf;
85struct sockaddr;
86struct socket;
87struct domain;
88struct proc;
89struct ip6_hdr;
90struct icmp6_hdr;
91struct in6_addr;
90struct pr_usrreqs;
91
92/*
93 * argument type for the last arg of pr_ctlinput().
94 * should be consulted only with AF_INET6 family.
92struct pr_usrreqs;
93
94/*
95 * argument type for the last arg of pr_ctlinput().
96 * should be consulted only with AF_INET6 family.
97 *
98 * IPv6 ICMP IPv6 [exthdrs] finalhdr paylaod
99 * ^ ^ ^ ^
100 * | | ip6c_ip6 ip6c_off
101 * | ip6c_icmp6
102 * ip6c_m
103 *
104 * ip6c_finaldst usually points to ip6c_ip6->ip6_dst. if the original
105 * (internal) packet carries a routing header, it may point the final
106 * dstination address in the routing header.
107 *
108 * ip6c_src: ip6c_ip6->ip6_src + scope info + flowlabel in ip6c_ip6
109 * (beware of flowlabel, if you try to compare it against others)
110 * ip6c_dst: ip6c_finaldst + scope info
95 */
96struct ip6ctlparam {
97 struct mbuf *ip6c_m; /* start of mbuf chain */
111 */
112struct ip6ctlparam {
113 struct mbuf *ip6c_m; /* start of mbuf chain */
114 struct icmp6_hdr *ip6c_icmp6; /* icmp6 header of target packet */
98 struct ip6_hdr *ip6c_ip6; /* ip6 header of target packet */
99 int ip6c_off; /* offset of the target proto header */
115 struct ip6_hdr *ip6c_ip6; /* ip6 header of target packet */
116 int ip6c_off; /* offset of the target proto header */
117 struct sockaddr_in6 *ip6c_src; /* srcaddr w/ additional info */
118 struct sockaddr_in6 *ip6c_dst; /* (final) dstaddr w/ additional info */
119 struct in6_addr *ip6c_finaldst; /* final destination address */
120 void *ip6c_cmdarg; /* control command dependent data */
121 u_int8_t ip6c_nxt; /* final next header field */
100};
101
102struct ip6protosw {
103 short pr_type; /* socket type used for */
104 struct domain *pr_domain; /* domain protocol a member of */
105 short pr_protocol; /* protocol number */
106 short pr_flags; /* see below */
107

--- 30 unchanged lines hidden ---
122};
123
124struct ip6protosw {
125 short pr_type; /* socket type used for */
126 struct domain *pr_domain; /* domain protocol a member of */
127 short pr_protocol; /* protocol number */
128 short pr_flags; /* see below */
129

--- 30 unchanged lines hidden ---