All of lore.kernel.org
 help / color / mirror / Atom feed
* Writing Queue-Modul in Pascal
@ 2005-11-19 23:02 sven
  2005-11-20  9:01 ` Martijn Lievaart
  0 siblings, 1 reply; 5+ messages in thread
From: sven @ 2005-11-19 23:02 UTC (permalink / raw)
  To: netfilter-devel

Hi!
I am trying to write an application for the queue-target.
Unfortunately all examples and source code itself are written in C++.
http://www.die.net/doc/linux/man/man3/libipq.3.html

I like to use Pascal (freepascal or so...) but I need nessesary units 
(called header files in C++?)

Is there any change to use Pascal?


Greetings Sven

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Writing Queue-Modul in Pascal
  2005-11-19 23:02 Writing Queue-Modul in Pascal sven
@ 2005-11-20  9:01 ` Martijn Lievaart
  2005-11-20 12:24   ` sven
  0 siblings, 1 reply; 5+ messages in thread
From: Martijn Lievaart @ 2005-11-20  9:01 UTC (permalink / raw)
  To: sven; +Cc: netfilter-devel

sven@hin.de wrote:

> Hi!
> I am trying to write an application for the queue-target.
> Unfortunately all examples and source code itself are written in C++.
> http://www.die.net/doc/linux/man/man3/libipq.3.html
>
> I like to use Pascal (freepascal or so...) but I need nessesary units 
> (called header files in C++?)
>
> Is there any change to use Pascal?


The examples are in C, not C++. Using Pascal should be relatively 
straightforward if you can somehow translate the C headerfiles.

M$

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Writing Queue-Modul in Pascal
  2005-11-20  9:01 ` Martijn Lievaart
@ 2005-11-20 12:24   ` sven
  2005-11-20 13:02     ` Martijn Lievaart
  0 siblings, 1 reply; 5+ messages in thread
From: sven @ 2005-11-20 12:24 UTC (permalink / raw)
  To: Martijn Lievaart; +Cc: netfilter-devel

Martijn Lievaart schrieb:
> 
> The examples are in C, not C++. Using Pascal should be relatively 
> straightforward if you can somehow translate the C headerfiles.
> 
> M$

I thought, m is an object (m->packet_id).
I take a look in these headerfiles.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Writing Queue-Modul in Pascal
  2005-11-20 12:24   ` sven
@ 2005-11-20 13:02     ` Martijn Lievaart
  2005-11-20 15:17       ` sven
  0 siblings, 1 reply; 5+ messages in thread
From: Martijn Lievaart @ 2005-11-20 13:02 UTC (permalink / raw)
  To: sven; +Cc: netfilter-devel

sven@hin.de wrote:

> Martijn Lievaart schrieb:
>
>>
>> The examples are in C, not C++. Using Pascal should be relatively 
>> straightforward if you can somehow translate the C headerfiles.
>>
>> M$
>
>
> I thought, m is an object (m->packet_id).
> I take a look in these headerfiles.
>
Ah, no, that is C-ish for accessing a field of a struct (record) through 
a pointer. It is equivalent to (IIRC) to (^m).packet_id in Pascal (or 
was it (m^).packet_id? Well something like that).

M4

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Writing Queue-Modul in Pascal
  2005-11-20 13:02     ` Martijn Lievaart
@ 2005-11-20 15:17       ` sven
  0 siblings, 0 replies; 5+ messages in thread
From: sven @ 2005-11-20 15:17 UTC (permalink / raw)
  To: Martijn Lievaart; +Cc: netfilter-devel

Martijn Lievaart schrieb:
> Ah, no, that is C-ish for accessing a field of a struct (record) through 
> a pointer. It is equivalent to (IIRC) to (^m).packet_id in Pascal (or 
> was it (m^).packet_id? Well something like that).
> 
> M4

I wanted to search the ip-packet for hex-values and then decide to drop 
or accept the paket.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-11-20 15:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-19 23:02 Writing Queue-Modul in Pascal sven
2005-11-20  9:01 ` Martijn Lievaart
2005-11-20 12:24   ` sven
2005-11-20 13:02     ` Martijn Lievaart
2005-11-20 15:17       ` sven

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.