Re: Developing New Socket Option on 4.10



Haisang Wu wrote:
> I am writing for help on my freebsd kernel hacking. I am working on 4.10,
> and intend to introduct a new socket option (say, SO_TAG_PAK)
> for my own kernel. When sending out a packet, if this option is set, the
> socket layer will produce a 20-byte tag, and finally this tag will be
> prepended before IP header (may be done in ip_output() ). This is somewhat
> like MPLS's shim layer, but this special packet with the tag will only be
> sent over a logical tunnel to another system. When receiving a packet, the
> IP layer will check whether the packet has this tag (through the
> first integer of the tag), and pass the tag up (to applications).

If you want to write your own protocol which wraps IP, OK, but there are easier
ways of passing out-of-band data to the application layer.

Consider either setting up a new IP-layer option, a new TCP-layer option, or
just using TCP's urgent pointer to send OOB data. Twenty bytes would fit just
fine inside the existing protocols, and you would be able to take advantage of
hardware support for Rx and Tx checksums, etc, etc.

--
-Chuck
_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Developing New Socket Option on 4.10
    ... OOB information increases. ... When sending out a packet, if this option is set, the ... >> socket layer will produce a 20-byte tag, and finally this tag will be ... >> like MPLS's shim layer, but this special packet with the tag will only ...
    (freebsd-net)
  • Developing New Socket Option on 4.10
    ... I am writing for help on my freebsd kernel hacking. ... and intend to introduct a new socket option ... When sending out a packet, if this option is set, the ... socket layer will produce a 20-byte tag, and finally this tag will be ...
    (freebsd-net)
  • Re: [patch] ipfw packet tagging
    ... behaviour in in odd situations (e.g. what happens when we try to tag ... logging is done after all other packet matching conditions ... +When a packet matches a rule with the ... +.It Cm untag Ar number ...
    (freebsd-net)
  • Re: position layers in tables
    ... "Murray" wrote: ... > The language attribute is not a valid attribute for the body tag. ... > nested layers) and the closer layer from their table cells, ...
    (microsoft.public.frontpage.programming)
  • Re: Mutli-Page Form Format
    ... There are some newsgroups (not Microsoft) where top ... except when I move from layer to layer ... Remove all margin information from the tag. ... Remove the empty paragraphs at the bottom of each layer - some ...
    (microsoft.public.frontpage.programming)