cls_rsvp.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:15k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. /*
  2.  * net/sched/cls_rsvp.h Template file for RSVPv[46] classifiers.
  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.  *
  9.  * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
  10.  */
  11. /*
  12.    Comparing to general packet classification problem,
  13.    RSVP needs only sevaral relatively simple rules:
  14.    * (dst, protocol) are always specified,
  15.      so that we are able to hash them.
  16.    * src may be exact, or may be wildcard, so that
  17.      we can keep a hash table plus one wildcard entry.
  18.    * source port (or flow label) is important only if src is given.
  19.    IMPLEMENTATION.
  20.    We use a two level hash table: The top level is keyed by
  21.    destination address and protocol ID, every bucket contains a list
  22.    of "rsvp sessions", identified by destination address, protocol and
  23.    DPI(="Destination Port ID"): triple (key, mask, offset).
  24.    Every bucket has a smaller hash table keyed by source address
  25.    (cf. RSVP flowspec) and one wildcard entry for wildcard reservations.
  26.    Every bucket is again a list of "RSVP flows", selected by
  27.    source address and SPI(="Source Port ID" here rather than
  28.    "security parameter index"): triple (key, mask, offset).
  29.    NOTE 1. All the packets with IPv6 extension headers (but AH and ESP)
  30.    and all fragmented packets go to the best-effort traffic class.
  31.    NOTE 2. Two "port id"'s seems to be redundant, rfc2207 requires
  32.    only one "Generalized Port Identifier". So that for classic
  33.    ah, esp (and udp,tcp) both *pi should coincide or one of them
  34.    should be wildcard.
  35.    At first sight, this redundancy is just a waste of CPU
  36.    resources. But DPI and SPI add the possibility to assign different
  37.    priorities to GPIs. Look also at note 4 about tunnels below.
  38.    NOTE 3. One complication is the case of tunneled packets.
  39.    We implement it as following: if the first lookup
  40.    matches a special session with "tunnelhdr" value not zero,
  41.    flowid doesn't contain the true flow ID, but the tunnel ID (1...255).
  42.    In this case, we pull tunnelhdr bytes and restart lookup
  43.    with tunnel ID added to the list of keys. Simple and stupid 8)8)
  44.    It's enough for PIMREG and IPIP.
  45.    NOTE 4. Two GPIs make it possible to parse even GRE packets.
  46.    F.e. DPI can select ETH_P_IP (and necessary flags to make
  47.    tunnelhdr correct) in GRE protocol field and SPI matches
  48.    GRE key. Is it not nice? 8)8)
  49.    Well, as result, despite its simplicity, we get a pretty
  50.    powerful classification engine.  */
  51. #include <linux/config.h>
  52. struct rsvp_head
  53. {
  54. u32 tmap[256/32];
  55. u32 hgenerator;
  56. u8 tgenerator;
  57. struct rsvp_session *ht[256];
  58. };
  59. struct rsvp_session
  60. {
  61. struct rsvp_session *next;
  62. u32 dst[RSVP_DST_LEN];
  63. struct tc_rsvp_gpi  dpi;
  64. u8 protocol;
  65. u8 tunnelid;
  66. /* 16 (src,sport) hash slots, and one wildcard source slot */
  67. struct rsvp_filter *ht[16+1];
  68. };
  69. struct rsvp_filter
  70. {
  71. struct rsvp_filter *next;
  72. u32 src[RSVP_DST_LEN];
  73. struct tc_rsvp_gpi spi;
  74. u8 tunnelhdr;
  75. struct tcf_result res;
  76. #ifdef CONFIG_NET_CLS_POLICE
  77. struct tcf_police *police;
  78. #endif
  79. u32 handle;
  80. struct rsvp_session *sess;
  81. };
  82. static __inline__ unsigned hash_dst(u32 *dst, u8 protocol, u8 tunnelid)
  83. {
  84. unsigned h = dst[RSVP_DST_LEN-1];
  85. h ^= h>>16;
  86. h ^= h>>8;
  87. return (h ^ protocol ^ tunnelid) & 0xFF;
  88. }
  89. static __inline__ unsigned hash_src(u32 *src)
  90. {
  91. unsigned h = src[RSVP_DST_LEN-1];
  92. h ^= h>>16;
  93. h ^= h>>8;
  94. h ^= h>>4;
  95. return h & 0xF;
  96. }
  97. #ifdef CONFIG_NET_CLS_POLICE
  98. #define RSVP_POLICE() 
  99. if (f->police) { 
  100. int pol_res = tcf_police(skb, f->police); 
  101. if (pol_res < 0) continue; 
  102. if (pol_res) return pol_res; 
  103. }
  104. #else
  105. #define RSVP_POLICE()
  106. #endif
  107. static int rsvp_classify(struct sk_buff *skb, struct tcf_proto *tp,
  108.  struct tcf_result *res)
  109. {
  110. struct rsvp_session **sht = ((struct rsvp_head*)tp->root)->ht;
  111. struct rsvp_session *s;
  112. struct rsvp_filter *f;
  113. unsigned h1, h2;
  114. u32 *dst, *src;
  115. u8 protocol;
  116. u8 tunnelid = 0;
  117. u8 *xprt;
  118. #if RSVP_DST_LEN == 4
  119. struct ipv6hdr *nhptr = skb->nh.ipv6h;
  120. #else
  121. struct iphdr *nhptr = skb->nh.iph;
  122. #endif
  123. #if !defined( __i386__) && !defined(__mc68000__)
  124. if ((unsigned long)nhptr & 3)
  125. return -1;
  126. #endif
  127. restart:
  128. #if RSVP_DST_LEN == 4
  129. src = &nhptr->saddr.s6_addr32[0];
  130. dst = &nhptr->daddr.s6_addr32[0];
  131. protocol = nhptr->nexthdr;
  132. xprt = ((u8*)nhptr) + sizeof(struct ipv6hdr);
  133. #else
  134. src = &nhptr->saddr;
  135. dst = &nhptr->daddr;
  136. protocol = nhptr->protocol;
  137. xprt = ((u8*)nhptr) + (nhptr->ihl<<2);
  138. if (nhptr->frag_off&__constant_htons(IP_MF|IP_OFFSET))
  139. return -1;
  140. #endif
  141. h1 = hash_dst(dst, protocol, tunnelid);
  142. h2 = hash_src(src);
  143. for (s = sht[h1]; s; s = s->next) {
  144. if (dst[RSVP_DST_LEN-1] == s->dst[RSVP_DST_LEN-1] &&
  145.     protocol == s->protocol &&
  146.     !(s->dpi.mask & (*(u32*)(xprt+s->dpi.offset)^s->dpi.key))
  147. #if RSVP_DST_LEN == 4
  148.     && dst[0] == s->dst[0]
  149.     && dst[1] == s->dst[1]
  150.     && dst[2] == s->dst[2]
  151. #endif
  152.     && tunnelid == s->tunnelid) {
  153. for (f = s->ht[h2]; f; f = f->next) {
  154. if (src[RSVP_DST_LEN-1] == f->src[RSVP_DST_LEN-1] &&
  155.     !(f->spi.mask & (*(u32*)(xprt+f->spi.offset)^f->spi.key))
  156. #if RSVP_DST_LEN == 4
  157.     && src[0] == f->src[0]
  158.     && src[1] == f->src[1]
  159.     && src[2] == f->src[2]
  160. #endif
  161.     ) {
  162. *res = f->res;
  163. RSVP_POLICE();
  164. matched:
  165. if (f->tunnelhdr == 0)
  166. return 0;
  167. tunnelid = f->res.classid;
  168. nhptr = (void*)(xprt + f->tunnelhdr - sizeof(*nhptr));
  169. goto restart;
  170. }
  171. }
  172. /* And wildcard bucket... */
  173. for (f = s->ht[16]; f; f = f->next) {
  174. *res = f->res;
  175. RSVP_POLICE();
  176. goto matched;
  177. }
  178. return -1;
  179. }
  180. }
  181. return -1;
  182. }
  183. static unsigned long rsvp_get(struct tcf_proto *tp, u32 handle)
  184. {
  185. struct rsvp_session **sht = ((struct rsvp_head*)tp->root)->ht;
  186. struct rsvp_session *s;
  187. struct rsvp_filter *f;
  188. unsigned h1 = handle&0xFF;
  189. unsigned h2 = (handle>>8)&0xFF;
  190. if (h2 > 16)
  191. return 0;
  192. for (s = sht[h1]; s; s = s->next) {
  193. for (f = s->ht[h2]; f; f = f->next) {
  194. if (f->handle == handle)
  195. return (unsigned long)f;
  196. }
  197. }
  198. return 0;
  199. }
  200. static void rsvp_put(struct tcf_proto *tp, unsigned long f)
  201. {
  202. }
  203. static int rsvp_init(struct tcf_proto *tp)
  204. {
  205. struct rsvp_head *data;
  206. MOD_INC_USE_COUNT;
  207. data = kmalloc(sizeof(struct rsvp_head), GFP_KERNEL);
  208. if (data) {
  209. memset(data, 0, sizeof(struct rsvp_head));
  210. tp->root = data;
  211. return 0;
  212. }
  213. MOD_DEC_USE_COUNT;
  214. return -ENOBUFS;
  215. }
  216. static void rsvp_destroy(struct tcf_proto *tp)
  217. {
  218. struct rsvp_head *data = xchg(&tp->root, NULL);
  219. struct rsvp_session **sht;
  220. int h1, h2;
  221. if (data == NULL)
  222. return;
  223. sht = data->ht;
  224. for (h1=0; h1<256; h1++) {
  225. struct rsvp_session *s;
  226. while ((s = sht[h1]) != NULL) {
  227. sht[h1] = s->next;
  228. for (h2=0; h2<=16; h2++) {
  229. struct rsvp_filter *f;
  230. while ((f = s->ht[h2]) != NULL) {
  231. unsigned long cl;
  232. s->ht[h2] = f->next;
  233. if ((cl = __cls_set_class(&f->res.class, 0)) != 0)
  234. tp->q->ops->cl_ops->unbind_tcf(tp->q, cl);
  235. #ifdef CONFIG_NET_CLS_POLICE
  236. tcf_police_release(f->police);
  237. #endif
  238. kfree(f);
  239. }
  240. }
  241. kfree(s);
  242. }
  243. }
  244. kfree(data);
  245. MOD_DEC_USE_COUNT;
  246. }
  247. static int rsvp_delete(struct tcf_proto *tp, unsigned long arg)
  248. {
  249. struct rsvp_filter **fp, *f = (struct rsvp_filter*)arg;
  250. unsigned h = f->handle;
  251. struct rsvp_session **sp;
  252. struct rsvp_session *s = f->sess;
  253. int i;
  254. for (fp = &s->ht[(h>>8)&0xFF]; *fp; fp = &(*fp)->next) {
  255. if (*fp == f) {
  256. unsigned long cl;
  257. tcf_tree_lock(tp);
  258. *fp = f->next;
  259. tcf_tree_unlock(tp);
  260. if ((cl = cls_set_class(tp, &f->res.class, 0)) != 0)
  261. tp->q->ops->cl_ops->unbind_tcf(tp->q, cl);
  262. #ifdef CONFIG_NET_CLS_POLICE
  263. tcf_police_release(f->police);
  264. #endif
  265. kfree(f);
  266. /* Strip tree */
  267. for (i=0; i<=16; i++)
  268. if (s->ht[i])
  269. return 0;
  270. /* OK, session has no flows */
  271. for (sp = &((struct rsvp_head*)tp->root)->ht[h&0xFF];
  272.      *sp; sp = &(*sp)->next) {
  273. if (*sp == s) {
  274. tcf_tree_lock(tp);
  275. *sp = s->next;
  276. tcf_tree_unlock(tp);
  277. kfree(s);
  278. return 0;
  279. }
  280. }
  281. return 0;
  282. }
  283. }
  284. return 0;
  285. }
  286. static unsigned gen_handle(struct tcf_proto *tp, unsigned salt)
  287. {
  288. struct rsvp_head *data = tp->root;
  289. int i = 0xFFFF;
  290. while (i-- > 0) {
  291. u32 h;
  292. if ((data->hgenerator += 0x10000) == 0)
  293. data->hgenerator = 0x10000;
  294. h = data->hgenerator|salt;
  295. if (rsvp_get(tp, h) == 0)
  296. return h;
  297. }
  298. return 0;
  299. }
  300. static int tunnel_bts(struct rsvp_head *data)
  301. {
  302. int n = data->tgenerator>>5;
  303. u32 b = 1<<(data->tgenerator&0x1F);
  304. if (data->tmap[n]&b)
  305. return 0;
  306. data->tmap[n] |= b;
  307. return 1;
  308. }
  309. static void tunnel_recycle(struct rsvp_head *data)
  310. {
  311. struct rsvp_session **sht = data->ht;
  312. u32 tmap[256/32];
  313. int h1, h2;
  314. memset(tmap, 0, sizeof(tmap));
  315. for (h1=0; h1<256; h1++) {
  316. struct rsvp_session *s;
  317. for (s = sht[h1]; s; s = s->next) {
  318. for (h2=0; h2<=16; h2++) {
  319. struct rsvp_filter *f;
  320. for (f = s->ht[h2]; f; f = f->next) {
  321. if (f->tunnelhdr == 0)
  322. continue;
  323. data->tgenerator = f->res.classid;
  324. tunnel_bts(data);
  325. }
  326. }
  327. }
  328. }
  329. memcpy(data->tmap, tmap, sizeof(tmap));
  330. }
  331. static u32 gen_tunnel(struct rsvp_head *data)
  332. {
  333. int i, k;
  334. for (k=0; k<2; k++) {
  335. for (i=255; i>0; i--) {
  336. if (++data->tgenerator == 0)
  337. data->tgenerator = 1;
  338. if (tunnel_bts(data))
  339. return data->tgenerator;
  340. }
  341. tunnel_recycle(data);
  342. }
  343. return 0;
  344. }
  345. static int rsvp_change(struct tcf_proto *tp, unsigned long base,
  346.        u32 handle,
  347.        struct rtattr **tca,
  348.        unsigned long *arg)
  349. {
  350. struct rsvp_head *data = tp->root;
  351. struct rsvp_filter *f, **fp;
  352. struct rsvp_session *s, **sp;
  353. struct tc_rsvp_pinfo *pinfo = NULL;
  354. struct rtattr *opt = tca[TCA_OPTIONS-1];
  355. struct rtattr *tb[TCA_RSVP_MAX];
  356. unsigned h1, h2;
  357. u32 *dst;
  358. int err;
  359. if (opt == NULL)
  360. return handle ? -EINVAL : 0;
  361. if (rtattr_parse(tb, TCA_RSVP_MAX, RTA_DATA(opt), RTA_PAYLOAD(opt)) < 0)
  362. return -EINVAL;
  363. if ((f = (struct rsvp_filter*)*arg) != NULL) {
  364. /* Node exists: adjust only classid */
  365. if (f->handle != handle && handle)
  366. return -EINVAL;
  367. if (tb[TCA_RSVP_CLASSID-1]) {
  368. unsigned long cl;
  369. f->res.classid = *(u32*)RTA_DATA(tb[TCA_RSVP_CLASSID-1]);
  370. cl = cls_set_class(tp, &f->res.class, tp->q->ops->cl_ops->bind_tcf(tp->q, base, f->res.classid));
  371. if (cl)
  372. tp->q->ops->cl_ops->unbind_tcf(tp->q, cl);
  373. }
  374. #ifdef CONFIG_NET_CLS_POLICE
  375. if (tb[TCA_RSVP_POLICE-1]) {
  376. struct tcf_police *police = tcf_police_locate(tb[TCA_RSVP_POLICE-1], tca[TCA_RATE-1]);
  377. tcf_tree_lock(tp);
  378. police = xchg(&f->police, police);
  379. tcf_tree_unlock(tp);
  380. tcf_police_release(police);
  381. }
  382. #endif
  383. return 0;
  384. }
  385. /* Now more serious part... */
  386. if (handle)
  387. return -EINVAL;
  388. if (tb[TCA_RSVP_DST-1] == NULL)
  389. return -EINVAL;
  390. f = kmalloc(sizeof(struct rsvp_filter), GFP_KERNEL);
  391. if (f == NULL)
  392. return -ENOBUFS;
  393. memset(f, 0, sizeof(*f));
  394. h2 = 16;
  395. if (tb[TCA_RSVP_SRC-1]) {
  396. err = -EINVAL;
  397. if (RTA_PAYLOAD(tb[TCA_RSVP_SRC-1]) != sizeof(f->src))
  398. goto errout;
  399. memcpy(f->src, RTA_DATA(tb[TCA_RSVP_SRC-1]), sizeof(f->src));
  400. h2 = hash_src(f->src);
  401. }
  402. if (tb[TCA_RSVP_PINFO-1]) {
  403. err = -EINVAL;
  404. if (RTA_PAYLOAD(tb[TCA_RSVP_PINFO-1]) < sizeof(struct tc_rsvp_pinfo))
  405. goto errout;
  406. pinfo = RTA_DATA(tb[TCA_RSVP_PINFO-1]);
  407. f->spi = pinfo->spi;
  408. f->tunnelhdr = pinfo->tunnelhdr;
  409. }
  410. if (tb[TCA_RSVP_CLASSID-1]) {
  411. err = -EINVAL;
  412. if (RTA_PAYLOAD(tb[TCA_RSVP_CLASSID-1]) != 4)
  413. goto errout;
  414. f->res.classid = *(u32*)RTA_DATA(tb[TCA_RSVP_CLASSID-1]);
  415. }
  416. err = -EINVAL;
  417. if (RTA_PAYLOAD(tb[TCA_RSVP_DST-1]) != sizeof(f->src))
  418. goto errout;
  419. dst = RTA_DATA(tb[TCA_RSVP_DST-1]);
  420. h1 = hash_dst(dst, pinfo ? pinfo->protocol : 0, pinfo ? pinfo->tunnelid : 0);
  421. err = -ENOMEM;
  422. if ((f->handle = gen_handle(tp, h1 | (h2<<8))) == 0)
  423. goto errout;
  424. if (f->tunnelhdr) {
  425. err = -EINVAL;
  426. if (f->res.classid > 255)
  427. goto errout;
  428. err = -ENOMEM;
  429. if (f->res.classid == 0 &&
  430.     (f->res.classid = gen_tunnel(data)) == 0)
  431. goto errout;
  432. }
  433. for (sp = &data->ht[h1]; (s=*sp) != NULL; sp = &s->next) {
  434. if (dst[RSVP_DST_LEN-1] == s->dst[RSVP_DST_LEN-1] &&
  435.     pinfo->protocol == s->protocol &&
  436.     memcmp(&pinfo->dpi, &s->dpi, sizeof(s->dpi)) == 0
  437. #if RSVP_DST_LEN == 4
  438.     && dst[0] == s->dst[0]
  439.     && dst[1] == s->dst[1]
  440.     && dst[2] == s->dst[2]
  441. #endif
  442.     && pinfo->tunnelid == s->tunnelid) {
  443. insert:
  444. /* OK, we found appropriate session */
  445. fp = &s->ht[h2];
  446. f->sess = s;
  447. if (f->tunnelhdr == 0)
  448. cls_set_class(tp, &f->res.class, tp->q->ops->cl_ops->bind_tcf(tp->q, base, f->res.classid));
  449. #ifdef CONFIG_NET_CLS_POLICE
  450. if (tb[TCA_RSVP_POLICE-1])
  451. f->police = tcf_police_locate(tb[TCA_RSVP_POLICE-1], tca[TCA_RATE-1]);
  452. #endif
  453. for (fp = &s->ht[h2]; *fp; fp = &(*fp)->next)
  454. if (((*fp)->spi.mask&f->spi.mask) != f->spi.mask)
  455. break;
  456. f->next = *fp;
  457. wmb();
  458. *fp = f;
  459. *arg = (unsigned long)f;
  460. return 0;
  461. }
  462. }
  463. /* No session found. Create new one. */
  464. err = -ENOBUFS;
  465. s = kmalloc(sizeof(struct rsvp_session), GFP_KERNEL);
  466. if (s == NULL)
  467. goto errout;
  468. memset(s, 0, sizeof(*s));
  469. memcpy(s->dst, dst, sizeof(s->dst));
  470. s->dpi = pinfo->dpi;
  471. s->protocol = pinfo->protocol;
  472. s->tunnelid = pinfo->tunnelid;
  473. for (sp = &data->ht[h1]; *sp; sp = &(*sp)->next) {
  474. if (((*sp)->dpi.mask&s->dpi.mask) != s->dpi.mask)
  475. break;
  476. }
  477. s->next = *sp;
  478. wmb();
  479. *sp = s;
  480. goto insert;
  481. errout:
  482. if (f)
  483. kfree(f);
  484. return err;
  485. }
  486. static void rsvp_walk(struct tcf_proto *tp, struct tcf_walker *arg)
  487. {
  488. struct rsvp_head *head = tp->root;
  489. unsigned h, h1;
  490. if (arg->stop)
  491. return;
  492. for (h = 0; h < 256; h++) {
  493. struct rsvp_session *s;
  494. for (s = head->ht[h]; s; s = s->next) {
  495. for (h1 = 0; h1 <= 16; h1++) {
  496. struct rsvp_filter *f;
  497. for (f = s->ht[h1]; f; f = f->next) {
  498. if (arg->count < arg->skip) {
  499. arg->count++;
  500. continue;
  501. }
  502. if (arg->fn(tp, (unsigned long)f, arg) < 0) {
  503. arg->stop = 1;
  504. break;
  505. }
  506. arg->count++;
  507. }
  508. }
  509. }
  510. }
  511. }
  512. static int rsvp_dump(struct tcf_proto *tp, unsigned long fh,
  513.      struct sk_buff *skb, struct tcmsg *t)
  514. {
  515. struct rsvp_filter *f = (struct rsvp_filter*)fh;
  516. struct rsvp_session *s;
  517. unsigned char  *b = skb->tail;
  518. struct rtattr *rta;
  519. struct tc_rsvp_pinfo pinfo;
  520. if (f == NULL)
  521. return skb->len;
  522. s = f->sess;
  523. t->tcm_handle = f->handle;
  524. rta = (struct rtattr*)b;
  525. RTA_PUT(skb, TCA_OPTIONS, 0, NULL);
  526. RTA_PUT(skb, TCA_RSVP_DST, sizeof(s->dst), &s->dst);
  527. pinfo.dpi = s->dpi;
  528. pinfo.spi = f->spi;
  529. pinfo.protocol = s->protocol;
  530. pinfo.tunnelid = s->tunnelid;
  531. pinfo.tunnelhdr = f->tunnelhdr;
  532. RTA_PUT(skb, TCA_RSVP_PINFO, sizeof(pinfo), &pinfo);
  533. if (f->res.classid)
  534. RTA_PUT(skb, TCA_RSVP_CLASSID, 4, &f->res.classid);
  535. if (((f->handle>>8)&0xFF) != 16)
  536. RTA_PUT(skb, TCA_RSVP_SRC, sizeof(f->src), f->src);
  537. #ifdef CONFIG_NET_CLS_POLICE
  538. if (f->police) {
  539. struct rtattr * p_rta = (struct rtattr*)skb->tail;
  540. RTA_PUT(skb, TCA_RSVP_POLICE, 0, NULL);
  541. if (tcf_police_dump(skb, f->police) < 0)
  542. goto rtattr_failure;
  543. p_rta->rta_len = skb->tail - (u8*)p_rta;
  544. }
  545. #endif
  546. rta->rta_len = skb->tail - b;
  547. #ifdef CONFIG_NET_CLS_POLICE
  548. if (f->police) {
  549. if (qdisc_copy_stats(skb, &f->police->stats))
  550. goto rtattr_failure;
  551. }
  552. #endif
  553. return skb->len;
  554. rtattr_failure:
  555. skb_trim(skb, b - skb->data);
  556. return -1;
  557. }
  558. struct tcf_proto_ops RSVP_OPS = {
  559. NULL,
  560. RSVP_ID,
  561. rsvp_classify,
  562. rsvp_init,
  563. rsvp_destroy,
  564. rsvp_get,
  565. rsvp_put,
  566. rsvp_change,
  567. rsvp_delete,
  568. rsvp_walk,
  569. rsvp_dump
  570. };
  571. #ifdef MODULE
  572. int init_module(void)
  573. {
  574. return register_tcf_proto_ops(&RSVP_OPS);
  575. }
  576. void cleanup_module(void) 
  577. {
  578. unregister_tcf_proto_ops(&RSVP_OPS);
  579. }
  580. #endif